Partager via


RasterizerState Members

The following tables list the members exposed by the RasterizerState type.

Public Constructors

Name Description
Public Method RasterizerState Initializes a new instance of the rasterizer class.

Public Fields

Name Description
Public Field Static CullClockwise A built-in state object with settings for culling primitives with clockwise winding order.
Public Field Static CullCounterClockwise A built-in state object with settings for culling primitives with counter-clockwise winding order.
Public Field Static CullNone A built-in state object with settings for not culling any primitives.

Public Properties

Name Description
Public Property CullMode Specifies the conditions for culling or removing triangles. The default value is CullMode.CounterClockwise.
Public Property DepthBias Sets or retrieves the depth bias for polygons, which is the amount of bias to apply to the depth of a primitive to alleviate depth testing problems for primitives of similar depth. The default value is 0.
Public Property FillMode The fill mode, which defines how a triangle is filled during rendering. The default is FillMode.Solid.
Public Property GraphicsDevice (Inherited from GraphicsResource.)
Public Property IsDisposed (Inherited from GraphicsResource.)
Public Property MultiSampleAntiAlias Enables or disables multisample antialiasing. The default is true.
Public Property Name (Inherited from GraphicsResource.)
Public Property ScissorTestEnable Enables or disables scissor testing. The default is false.
Public Property SlopeScaleDepthBias Gets or sets a bias value that takes into account the slope of a polygon. This bias value is applied to coplanar primitives to reduce aliasing and other rendering artifacts caused by z-fighting. The default is 0.
Public Property Tag (Inherited from GraphicsResource.)

Public Methods

Name Description
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from GraphicsResource.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from GraphicsResource.)
Protected Method MemberwiseClone (Inherited from Object.)

Public Events

Name Description
Public Event Disposing (Inherited from GraphicsResource.)

See Also

Reference

RasterizerState Class
Microsoft.Xna.Framework.Graphics Namespace