Descriptor for a depth-stencil operation.
This class encapsulates a depth-stencil operation descriptor. There are separate MStencilOpDesc stencil operation descriptors for front and back faces in the depth stencil state.
#include <MStateManager.h>
Public Member Functions |
|
MStencilOpDesc () | |
Constructor, builds a default stencil
operation state. |
|
~MStencilOpDesc () | |
Destructor. |
|
void | setDefaults () |
Set all values for the stencil operation
state to their default values. |
|
MStencilOpDesc (const MStencilOpDesc &rDesc) | |
NO SCRIPT SUPPORT. |
|
MStencilOpDesc & | operator= (const MStencilOpDesc &rDesc) |
NO SCRIPT SUPPORT. |
|
Static Public Member Functions |
|
static const char * | className () |
Returns the name of this class. |
|
Public Attributes |
|
MDepthStencilState::StencilOperation | stencilPassOp |
Stencil op to use when the fragment passes
the stencil test, default kKeepStencil. |
|
MDepthStencilState::StencilOperation | stencilFailOp |
Stencil op to use when the fragment fails
the stencil test, default kKeepStencil. |
|
MDepthStencilState::StencilOperation | stencilDepthFailOp |
Stencil op to use when the fragment passes
the depth test, default kKeepStencil. |
|
MStateManager::CompareMode | stencilFunc |
Sets the stencil buffer comparison function,
default kCompareAlways. |
MStencilOpDesc | ( | const MStencilOpDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Copy constructor.
[in] | rDesc | The descriptor to copy |
MStencilOpDesc & operator= | ( | const MStencilOpDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Assignment operator.
[in] | rDesc | The descriptor to copy |
const char * className | ( | ) | [static] |
Stencil op to use when the fragment passes the stencil test, default kKeepStencil.
Stencil op to use when the fragment fails the stencil test, default kKeepStencil.
Stencil op to use when the fragment passes the depth test, default kKeepStencil.
Sets the stencil buffer comparison function, default kCompareAlways.