A SERVICE OF

logo

Creating csGeoSet Objects
19
csGeoSet Fields
The elds in a csGeoSet object can be grouped in the following manner:
The remainder of this section describes csGeoSet general settings. The other parts of this
chapter describe the attribute elds.
For more information about cull facing, see Face Culling on page 152.
Setting the Number of Primitives
The following csGeoSet methods affect all of the primitives in a csGeoSet object:
void setPrimCount(csInt primCount);
csInt getPrimCount();
To specify or retrieve the number of primitives in a csGeoSet, use the setPrimCount()
and getPrimCount() methods. Appendix B, Cosmo 3D Sample Application shows
how to retrieve the number of primitives in a csGeoSet.
Table 2-2 Fields in a csGeoSet
Field Default
General settings short cullFace
int primCount
BACK
0
Attribute specications Color colors
Normal normals
TexCoord texCoords
Coord coords
NULL
NULL
NULL
NULL
Attribute index specications Index colorIndices
Index normalIndices
Index texCoordIndices
Index coordIndices
NULL
NULL
NULL
NULL
Attribute binding specications char colorBind
char normalBind
char texCoordBind
OFF
OFF
OFF