C4 Engine
C4 Engine API Documentation

Renderable::GetRenderType

Defined in:  C4Renderable.h
Returns the primitive render type.
Prototype

RenderType GetRenderType(voidconst;

Description
The GetRenderType function returns one of the following constants, representing the primitive render type of an object, 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

Renderable::SetRenderType