Renderable::SetRenderState
Defined in:
Sets the render state flags that pertain to rendering.
C4Renderable.h
Prototype
void SetRenderState(uint32 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 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