C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

Renderable::GetRenderState

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

unsigned long 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. See the Renderable::SetDepthOffset function.
kRenderLineSmooth Line smoothing is enabled (only valid if rendering lines).
kRenderWireframe Render wireframe instead of filled polygons.
See Also

Renderable::SetRenderState