Export (0) Print
Expand All

RasterizerState Class

Contains rasterizer state, which determines how to convert vector data (shapes) into raster data (pixels).

System.Object
  Microsoft.Xna.Framework.Graphics.GraphicsResource
    Microsoft.Xna.Framework.Graphics.RasterizerState

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

public class RasterizerState : GraphicsResource

The RasterizerState type exposes the following members.

  NameDescription
Public methodRasterizerStateInitializes a new instance of the RasterizerState class.
Top

  NameDescription
Public propertyCullModeGets or sets the conditions for culling or removing triangles.
Public propertyDepthBiasGets or sets 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 propertyFillModeGet or sets the fill mode, which defines how a triangle is filled during rendering. The default is Solid.
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from GraphicsResource.)
Public propertyMultiSampleAntiAliasGets or sets a value that indicates whether multisample antialiasing is enabled. The default is true.
Public propertyScissorTestEnableGet or sets a value that indicates whether scissor testing is enabled. The default is false.
Public propertySlopeScaleDepthBiasGets 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.
Top

  NameDescription
Public methodDispose()Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodDispose(Boolean)Immediately releases the unmanaged resources used by this object. (Inherited from GraphicsResource.)
Protected methodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from GraphicsResource.)
Top

  NameDescription
Public fieldStatic memberCullClockwiseA built-in state object with settings for culling primitives with clockwise winding order.
Public fieldStatic memberCullCounterClockwiseA built-in state object with settings for culling primitives with counter-clockwise winding order.
Public fieldStatic memberCullNoneA built-in state object with settings for not culling any primitives.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft