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

Clears resource buffers.

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

public void Clear (
         ClearOptions options,
         Vector4 color,
         float depth,
         int stencil
)

Parameters

options
Options for clearing a buffer.
color
Set this four-component color value in the buffer.
depth
Set this depth value in the buffer.
stencil
Set this stencil value in the buffer.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show: