This documentation is archived and is not being maintained.

Device.Clear Method

Clears the viewport or a set of rectangles in the viewport to a specified RGBA color, clears the depth buffer, and erases the stencil buffer.

Name Description
Device.Clear (ClearFlags, Color, Single, Int32) Clears the viewport or a set of rectangles in the viewport to a specified RGBA color, clears the depth buffer, and erases the stencil buffer.

Supported by the .NET Compact Framework.

Device.Clear (ClearFlags, Int32, Single, Int32) Clears the viewport or a set of rectangles in the viewport to a specified RGBA color, clears the depth buffer, and erases the stencil buffer.

Supported by the .NET Compact Framework.

Device.Clear (ClearFlags, Color, Single, Int32, Rectangle[]) Clears the viewport or a set of rectangles in the viewport to a specified RGBA color, clears the depth buffer, and erases the stencil buffer.

Supported by the .NET Compact Framework.

Show: