#include <MStateManager.h>
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.
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. More... | |
MStencilOpDesc & | operator= (const MStencilOpDesc &rDesc) |
NO SCRIPT SUPPORT. More... | |
Static Public Member Functions | |
static const char * | className () |
Returns the name of this class. More... | |
Public Attributes | |
MDepthStencilState::StencilOperation | stencilPassOp |
Stencil op to use when the fragment passes the stencil test, default kKeepStencil. More... | |
MDepthStencilState::StencilOperation | stencilFailOp |
Stencil op to use when the fragment fails the stencil test, default kKeepStencil. More... | |
MDepthStencilState::StencilOperation | stencilDepthFailOp |
Stencil op to use when the fragment passes the depth test, default kKeepStencil. More... | |
MStateManager::CompareMode | stencilFunc |
Sets the stencil buffer comparison function, default kCompareAlways. More... | |
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 |
|
static |
Returns the name of this class.
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.