GraphicsDevice.ScissorRectangle Property

Gets or sets the rectangle used for scissor testing. By default, the size matches the render target size.

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

Syntax

public Rectangle ScissorRectangle { get; set; }

Property Value

If scissor testing is enabled, the rendering area within the render target is defined.

Remarks

The scissor rectangle is used as a rectangular clipping region. Use ScissorTestEnable to enable scissor testing.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP