This documentation is archived and is not being maintained.
Device.Clear Method
Visual Studio 2008
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.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the 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, 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. |
| Exception | Condition |
|---|---|
| InvalidCallException | The method call is invalid. For example, a parameter might contain an invalid value. |
Show: