67 return depthStencilState;
78 struct hash<
Cogs::DepthStencilState>
90 struct equal_to<
Cogs::DepthStencilState>
Contains all Cogs related functionality.
Encapsulates state for depth buffer usage and stencil buffer usage in a state object.
DepthFunction
Depth functions to apply when determining object visibility based on its depth test.
@ Never
Never evaluates to true. When using this, all objects will fail depth testing.
@ GreaterOrEqual
Greater or equal depth.
@ NotEqual
Depth not equal evaluates to true.
@ Always
Always evaluates to true.
@ LessOrEqual
Less or equal depth.
bool depthEnabled
If depth testing is enabled/disabled. Default is true.
DepthFunction depthFunction
The depth function to use for depth testing.
static DepthStencilState DefaultState()
Constructs a depth stencil state object initialized with the default values.
bool writeEnabled
If writes to the depth buffer are enabled/disabled. Default is true.