GraphicsDevice.Clear Method (ClearOptions, Color, Single, Int32)

Clears resource buffers.

Syntax

'Declaration
Public Sub Clear ( _
         options As ClearOptions, _
         color As Color, _
         depth As Single, _
         stencil As Integer _
)
public void Clear (
         ClearOptions options,
         Color color,
         float depth,
         int stencil
)
public:
void Clear(
         ClearOptions options,
         Color color,
         float depth,
         int stencil
)

Parameters

  • options
    Type: ClearOptions
    Options for clearing a buffer.
  • color
    Type: Color
    Set this color value in the buffer.
  • depth
    Type: Single
    Set this depth value in the buffer.
  • stencil
    Type: Int32
    Set this stencil value in the buffer.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone