C4 Engine
C4 Engine API Documentation

Renderable::GetRenderState

Defined in:  C4Renderable.h
Returns the render state flags that pertain to rendering.
Prototype

uint32 GetRenderState(voidconst;

Description
The GetRenderState function returns the light-independent rendering state, which can be a combination (through logical OR) of the following bit flags.
kRenderDepthTest The depth test is enabled. If the depth test is disabled, then depth is also not written.
kRenderColorInhibit Writes to the color buffer are disabled.
kRenderDepthInhibit Writes to the depth buffer are disabled.
kRenderDepthOffset Apply depth offset in the projection matrix. See the Renderable::SetDepthOffset function.
kRenderPolygonOffset Apply minimal viewport-space polygon offset using the graphics hardware.
kRenderClippingPlanes A set of four user clipping planes is applied.
kRenderLinePolygon Render edges instead of filled polygons.
kRenderRectPolygon Render filled rectangles instead of polygons.
See Also

Renderable::SetRenderState