This class can be used to construct objects which use a single index for vertex.
normal, color and texel lists, from objects that don't.
Constructor & Destructor Documentation
csSingleIndexVertexSet::csSingleIndexVertexSet (
bool ver = true,
bool nrm = true,
bool col = true,
bool tex = true )
Create a new set.
You can chosse which lists to use. For example, if you choose not to use a color list then colors will not be used when searching for a vertex, and calls to GetColor() are not allowed.
csSingleIndexVertexSet::csSingleIndexVertexSet (
csIntArray * Vertices,
csIntArray * Normals,
csIntArray * Colors,
csIntArray * Texels,
bool DeleteLists )
Create a set from existing lists.
If NULL is passed for a list then that list will not be used. Note that this is different from adding all elements of the given lists because the lists will be kept and modified every time a vertex is added to the set.
Member Function Documentation
int csSingleIndexVertexSet::Add (
int Vertex,
int Normal,
int Color,
int Texel )
Add a vertex to the set.
This function accepts the four separate indices and returns the single index. Certain elements are ignored if no lists exist for them (if demanded so at construction of the set).
The documentation for this class was generated from the following file: