Renderable::SetRenderState
Defined in: C4Renderable.h
Sets the render state flags that pertain to rendering.
Prototype
void SetRenderState(unsigned long state);
Parameters
state |
The new render state flags.
|
Description
The SetRenderState function sets the light-independent render state flags. The state parameter may be any combination 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::GetRenderState
|