Click or drag to resize
DigitalRuneDebugRendererAutoRenderStates Property
Gets or sets a value indicating whether the debug renderer automatically sets the required render states (depth-stencil, blend and rasterizer states required to render solid or wireframe, in or over scene, opaque or transparent).

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public bool AutoRenderStates { get; set; }

Property Value

Type: Boolean
if the debug renderer automatically sets the required render states; otherwise, to use the currently set depth-stencil, blend and rasterizer states. The default value is .
Remarks

To be able to render the different categories of primitives (solid/wireframe, in/over scene opaque/transparent) the debug renderer automatically sets the required render states. If this property is , the renderer uses the render states currently set in the graphics device. This can be used, for example, to use the debug renderer to render models with additive blending. However, all primitives (solid/wireframe, in/over scene, etc.) will use the user-defined render state and might not be rendered as expected; for example if the blend state is set to "opaque", transparent primitives will also appear opaque.

Note: Points, text and textures ignore this property and are always rendered with automatic render states.

See Also