ClearBuffers Data Member Function

Clears the color and/or depth buffer of the rendering device before rendering traversal.

Prototype

int32 ClearBuffers( int32 BufferFlags, Color ClearColor, double Depth )

Parameters

Parameter Type Parameter Name Documentation
int32BufferFlagsFlags indicating which buffer(s) to clear.
<Color>ClearColorA color to use as the background for the color buffer, if the color buffer flag is set.
doubleDepthThe reciprocal (1.0/w) depth value to clear the depth buffer to. A value of 0.0 indicates maximum depth, while 1.0 indicates the closest depth.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.