Device.Clear Method
Include Protected Members
Include Inherited Members
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.
Overload List
Name | Description | |
---|---|---|
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. | |
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. | |
Clear(ClearFlags, Color, Single, Int32, array<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. |
Top
Exceptions
Exception | Condition |
---|---|
InvalidCallException | The method call is invalid. For example, a parameter might contain an invalid value. |