Microsoft.Xna.Framework.Graphics
Class DepthStencilState

java.lang.Object
  extended by Microsoft.Xna.Framework.Graphics.GraphicsResource
      extended by Microsoft.Xna.Framework.Graphics.DepthStencilState
All Implemented Interfaces:
IDisposable

public class DepthStencilState
extends GraphicsResource

Contains depth-stencil state for the device.

Author:
Halofreak1990

Field Summary
static DepthStencilState Default
          A built-in state object with default settings for using a depth stencil buffer.
static DepthStencilState DepthRead
          A built-in state object with settings for enabling a read-only depth stencil buffer.
static DepthStencilState None
          A built-in state object with settings for not using a depth stencil buffer.
 
Fields inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource
_parent, Disposing, Name, Tag
 
Constructor Summary
DepthStencilState()
          Creates an instance of DepthStencilState with default values.
 
Method Summary
 boolean getDepthBufferEnable()
           
 void setDepthBufferEnable(boolean value)
          Enables or disables depth buffering.
 
Methods inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource
Dispose, Dispose, finalize, GraphicsDevice, IsDisposed, raise_disposing, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Default

public static final DepthStencilState Default
A built-in state object with default settings for using a depth stencil buffer.


DepthRead

public static final DepthStencilState DepthRead
A built-in state object with settings for enabling a read-only depth stencil buffer.


None

public static final DepthStencilState None
A built-in state object with settings for not using a depth stencil buffer.

Constructor Detail

DepthStencilState

public DepthStencilState()
Creates an instance of DepthStencilState with default values.

Method Detail

getDepthBufferEnable

public boolean getDepthBufferEnable()

setDepthBufferEnable

public void setDepthBufferEnable(boolean value)
Enables or disables depth buffering. The default is true.