共用方式為


RasterizerState.ScissorTestEnable Property

Enables or disables scissor testing. The default is false.

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

Syntax

public bool ScissorTestEnable { get; set; }

Property Value

true to enable scissor testing; false otherwise.

Remarks

Scissor testing can improve drawing performance by only drawing triangles (or parts of triangles) that are contained within a ScissorRectangle.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP