Frontend::Graphics::DepthStencilStateDescriptor Class Reference
Describes the settings desired for a DepthStencilState object. More...
#include <Frontend2Graphics.h>
Public Member Functions | |
| DepthStencilStateDescriptor () | |
| Initializes the descriptor with default values. | |
| bool | operator< (DepthStencilStateDescriptor &s) |
| Defines less-than relation between two descriptors. | |
| bool | operator== (DepthStencilStateDescriptor &s) |
| Compares two descriptors. | |
Public Attributes | |
| bool | DepthTestEnabled |
| Wether or not Z-testing should be enabled. | |
| CompareFunction | DepthFunction |
| Condition for a pixel passing the depth test. | |
| bool | DepthWriteMask |
| Wether on not to write the depth-value to the depth buffer if the depth test is passed. | |
| bool | StencilTestEnabled |
| Wether or not stencil testing should be enabled. | |
| CompareFunction | StencilFunction |
| Condition for a pixel passing the stencil test. | |
| int | StencilReferenceValue |
| Reference value for the stencil test. | |
| int | StencilOperandMask |
| A bitmask for the operands of the stencil test. | |
| int | StencilMask |
| A bitmask for writing to the stencil buffer. | |
| StencilOperation | StencilFailOperation |
| What to do in the stencil buffer if the stencil test fails for a pixel. | |
| StencilOperation | StencilDepthFailOperation |
| What to do in the stencil buffer if the depth test fails for pixel. | |
| StencilOperation | StencilDepthPassOperation |
| What to do in the stencil buffer if the depth test passes for a pixel. | |
Detailed Description
Describes the settings desired for a DepthStencilState object.
Constructor & Destructor Documentation
|
|
Initializes the descriptor with default values.
|
Member Function Documentation
|
|
Defines less-than relation between two descriptors. This allows this class to be used in binary search trees. |
|
|
Compares two descriptors. This allows this class to be used in maps. |
Member Data Documentation
|
|
Condition for a pixel passing the depth test. Only considered if DepthTestEnabled is true. The default value is CompareFunctionLess. |
|
|
Wether or not Z-testing should be enabled. The default value is false. |
|
|
Wether on not to write the depth-value to the depth buffer if the depth test is passed. Only considered if DepthTestEnabled is true. The default value is true. |
|
|
What to do in the stencil buffer if the depth test fails for pixel. Only considered if StencilTestEnabled is true. Only considered if DepthTestEnabled is true. The default value is StencilOperationKeep. |
|
|
What to do in the stencil buffer if the depth test passes for a pixel. Only considered if StencilTestEnabled is true. Only considered if DepthTestEnabled is true. The default value is StencilOperationKeep. |
|
|
What to do in the stencil buffer if the stencil test fails for a pixel. Only considered if StencilTestEnabled is true. The default value is StencilOperationKeep. |
|
|
Condition for a pixel passing the stencil test. Only considered if StencilTestEnabled is true. The default value is CompareFunctionLess. |
|
|
A bitmask for writing to the stencil buffer. Only considered if StencilTestEnabled is true. The default value is ~0. |
|
|
A bitmask for the operands of the stencil test. Only considered if StencilTestEnabled is true. The default value is ~0. |
|
|
Reference value for the stencil test. Only considered if StencilTestEnabled is true. The default value is 0. |
|
|
Wether or not stencil testing should be enabled. The default value is false. |
The documentation for this class was generated from the following file: