Renderable::SetRenderType
Defined in:
Sets the primitive render type.
C4Renderable.h
Prototype
void SetRenderType(RenderType type);
Parameters
type |
The primitive type of the renderable object. See below for possible values. |
Description
The SetRenderType
function sets the primitive render type of an object. The type
parameter may be one of the following constants, where n represents the number of vertices.
kRenderPointList |
A set of n points to be amplified in a geometry shader. |
kRenderLineList |
A set of n / 2 unconnected line segments. |
kRenderLineStrip |
A set of n − 1 connected line segments. |
kRenderLineListIndex16 |
A set of line segments with 16-bit indexed vertices. |
kRenderTriangleList |
A set of n / 3 unconnected triangles. |
kRenderTriangleStrip |
A set of n − 2 triangles connected as a strip. |
kRenderTriangleListIndex16 |
A set of triangles with 16-bit indexed vertices. |
kRenderTriangleListIndex32 |
A set of triangles with 32-bit indexed vertices. |
kRenderQuadList |
A set of n / 4 unconnected quads. |
See Also