Initializes the geometry with the geometry type, point count, color alignment and flags of using colors and normals.
Syntax
Parameters
- geometryType
- Type of the geometry primitives. See enumeration ImGearVectGeometryType enumeration for possible values.
- pointCount
- Count of vertices in the geometry.
Point, normal and color arrays must have the same amount of elements in case of usage.
- colorAlignment
- Color alignment in the color array. Has effect only if
useColors
is true. - useNormals
- If true than the normals are taken into account when
displaying the geometry. Normals must be set before displaying in this case.
- useColors
- If true then the local colors are taken into account when
displaying the geometry. Colors must be set before displaying in this case.
See Also