ContRap-Libraries
|
Class GLMeshTriangle is a specialized class to represent mesh triangles. More...
#include <glmesh.h>
Public Member Functions | |
GLMeshTriangle (int a=0, int b=0, int c=0, int t=-1, int ma=0, int mb=0, int mc=0) | |
Creates a mesh triangle from its components. | |
Data Fields | |
int | a |
Indices of the mesh points. | |
int | b |
int | c |
int | t |
Index of the texture of the triangle. | |
int | ma |
Indices of the texture coordinates, or colors if no texture is specified. | |
int | mb |
int | mc |
Class GLMeshTriangle is a specialized class to represent mesh triangles.
crp::GLMeshTriangle::GLMeshTriangle | ( | int | a = 0 , |
int | b = 0 , |
||
int | c = 0 , |
||
int | t = -1 , |
||
int | ma = 0 , |
||
int | mb = 0 , |
||
int | mc = 0 |
||
) | [inline] |
Creates a mesh triangle from its components.
a | Index of a triangle point |
b | Index of a triangle point |
c | Index of a triangle point |
t | Index of a texture or a negative value |
ma | Index of a material of the point a |
mb | Index of a material of the point b |
mc | Index of a material of the point c |
Indices of the mesh points.
Indices of the texture coordinates, or colors if no texture is specified.
Index of the texture of the triangle.
If this variable is set to a negative value, it is assumed that there is no texture.