ContRap-Libraries
Public Member Functions | Data Fields

crp::GLMeshTriangle Class Reference

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

Detailed Description

Class GLMeshTriangle is a specialized class to represent mesh triangles.


Constructor & Destructor Documentation

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.

Parameters:
aIndex of a triangle point
bIndex of a triangle point
cIndex of a triangle point
tIndex of a texture or a negative value
maIndex of a material of the point a
mbIndex of a material of the point b
mcIndex of a material of the point c

Field Documentation

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.


The documentation for this class was generated from the following file: