MDepthStencilStateDesc Class Reference

#include <MStateManager.h>

Class Description

Descriptor for a complete depth-stencil state.

This class encapsulates a complete depth-stencil state, like z buffer enable, z write enable, z comparison function, stencil enable, stencil masks and reference values. It also contains MStencilOpDesc stencil operation descriptors for front and back faces.

+ Examples:

Public Member Functions

 MDepthStencilStateDesc ()
 Constructor, builds a default depth stencil state.
 
 ~MDepthStencilStateDesc ()
 Destructor.
 
void setDefaults ()
 Set all values for the depth stencil state to their default values.
 
 MDepthStencilStateDesc (const MDepthStencilStateDesc &rDesc)
 NO SCRIPT SUPPORT. More...
 
MDepthStencilStateDescoperator= (const MDepthStencilStateDesc &rDesc)
 NO SCRIPT SUPPORT. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

Public Attributes

bool depthEnable
 Enables depth buffer reads and compares, default true. More...
 
bool depthWriteEnable
 Enables depth buffer writes, default true. More...
 
MStateManager::CompareMode depthFunc
 Sets the depth buffer comparison function, default less than. More...
 
bool stencilEnable
 Enables stencil buffer operation. More...
 
unsigned char stencilReadMask
 Sets a bitwise stencil buffer read mask, default 0xff. More...
 
unsigned char stencilWriteMask
 Sets a bitwise stencil buffer write mask, default 0xff. More...
 
int stencilReferenceVal
 Sets the stencil reference value. More...
 
MStencilOpDesc frontFace
 Sets the stencil op for the front facing fragments. More...
 
MStencilOpDesc backFace
 Sets the stencil op for the back facing fragments. More...
 

Constructor & Destructor Documentation

NO SCRIPT SUPPORT.

Copy constructor.

Parameters
[in]rDescThe descriptor to copy

Member Function Documentation

MDepthStencilStateDesc & operator= ( const MDepthStencilStateDesc rDesc)

NO SCRIPT SUPPORT.

Assignment operator.

Parameters
[in]rDescThe descriptor to copy
Returns
Reference to this descriptor
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

Member Data Documentation

bool depthEnable

Enables depth buffer reads and compares, default true.

+ Examples:
bool depthWriteEnable

Sets the depth buffer comparison function, default less than.

+ Examples:
bool stencilEnable

Enables stencil buffer operation.

+ Examples:
unsigned char stencilReadMask

Sets a bitwise stencil buffer read mask, default 0xff.

+ Examples:
unsigned char stencilWriteMask

Sets a bitwise stencil buffer write mask, default 0xff.

+ Examples:
int stencilReferenceVal

Sets the stencil reference value.

+ Examples:
MStencilOpDesc frontFace

Sets the stencil op for the front facing fragments.

+ Examples:
MStencilOpDesc backFace

Sets the stencil op for the back facing fragments.

+ Examples:

The documentation for this class was generated from the following files:
  • MStateManager.h
  • MStateManager.cpp