Render3D.ClearBuffers

This page contains reference documentation for the ClearBuffers function. This function is used to clear the color and/or depth buffer of the rendering device before rendering traversal.

Prototype

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

Parameters

Function parameters are as follows:

  • BufferFlags: Flags indicating which buffer(s) to clear.
  • ClearColor: A color to use as the background for the color buffer, if the color buffer flag is set.
  • Depth: The 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.