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

Clears resource buffers.

Syntax

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

Parameters

  • options
    Type: ClearOptions
    Options for clearing a buffer.
  • color
    Type: Vector4
    Set this four-component 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