This class defines the depth comparison mode used during rendering. More...
#include <Luminous/DepthMode.hpp>
Public Types | |
| enum | Function { NEVER = GL_NEVER, LESS = GL_LESS, EQUAL = GL_EQUAL, LESS_EQUAL = GL_LEQUAL, GREATER = GL_GREATER, NOT_EQUAL = GL_NOTEQUAL, GREATER_EQUAL = GL_GEQUAL, ALWAYS = GL_ALWAYS } |
| Specifies the value used for depth buffer comparisons. More... | |
Public Member Functions | |
| LUMINOUS_API | DepthMode (Function function=LESS_EQUAL, Nimble::Rangef range=Nimble::Rangef(0.f, 1.f)) |
| Construct a new depth mode. More... | |
| Function | function () const |
| Returns the function used in depth comparisons. More... | |
| const Nimble::Rangef & | range () const |
| Get the mapping of depth values. More... | |
| void | setFunction (Function function) |
| Set function for depth comparisons. More... | |
| void | setRange (const Nimble::Rangef &range) |
| Specify the mapping of depth values from normalized device coordinates to window coordinates. More... | |
Static Public Member Functions | |
| static DepthMode | Default () |
| Default depth mode. More... | |
This class defines the depth comparison mode used during rendering.
Specifies the value used for depth buffer comparisons.
See http://www.opengl.org/sdk/docs/man3/xhtml/glDepthFunc.xml for details.
| LUMINOUS_API Luminous::DepthMode::DepthMode | ( | Function | function = LESS_EQUAL, |
| Nimble::Rangef | range = Nimble::Rangef(0.f, 1.f) |
||
| ) |
Construct a new depth mode.
| function | depth test function |
| range | depth range |
|
inlinestatic |
Default depth mode.
|
inline |
Returns the function used in depth comparisons.
|
inline |
|
inline |
Set function for depth comparisons.
| function | Function to use in comparisons |
|
inline |
Specify the mapping of depth values from normalized device coordinates to window coordinates.
See http://www.opengl.org/sdk/docs/man3/xhtml/glDepthRange.xml for details.
| range | Depth range to use in window coordinates |