DX9ToolsR4 - Created by: X

DX9Graphics.Clear Method (Color, Single, Int32)

Clears the scene.

[Visual Basic]
Overloads Public Sub Clear( _
   ByVal Color As Color, _
   ByVal ZDepth As Single, _
   ByVal Stencil As Integer _
)
[C#]
public void Clear(
   Color Color,
   float ZDepth,
   int Stencil
);

Parameters

Color
The color to use to clear the scene.
ZDepth
New z value that this method stores in the depth buffer. This parameter can be in the range of 0.0 through 1.0 (for z-based or w-based depth buffers). A value of 0.0 represents the nearest distance to the viewer; a value of 1.0 represents the farthest distance.
Stencil
Integer value to store in each stencil-buffer entry. This parameter can be in the range of 0 through 2n-1, where n is the bit depth of the stencil buffer.

See Also

DX9Graphics Class | CBX.Libs.DX9ToolsR4 Namespace | DX9Graphics.Clear Overload List