Basic Image AlgorithmS Library
2.8.0
|
Defines the usage of the depth buffer. More...
#include <OpenGLFramework/Base/glfDepthBufferMode.hh>
Public Member Functions | |
void | Bind () const |
Binds the depth buffer mode. More... | |
glfDepthBufferMode () | |
void | SetDepthFunc (GLenum depthFunc) |
Sets the depth buffer comparison function. More... | |
void | SetDepthMask (bool flag) |
Sets whether to write to the depth buffer. More... | |
void | SetDepthRange (double nearVal, double farVal) |
Sets the mapping the used range of the depth buffer. More... | |
void | SetDepthTest (bool enable) |
Sets whether to use depth buffer tests. More... | |
virtual | ~glfDepthBufferMode () |
Static Public Attributes | |
static const glfDepthBufferMode | DEFAULT |
The default depth buffer mode. More... | |
Defines the usage of the depth buffer.
Definition at line 37 of file glfDepthBufferMode.hh.
glfDepthBufferMode::glfDepthBufferMode | ( | ) |
Definition at line 32 of file glfDepthBufferMode.cpp.
|
inlinevirtual |
Definition at line 41 of file glfDepthBufferMode.hh.
void glfDepthBufferMode::Bind | ( | ) | const |
Binds the depth buffer mode.
Definition at line 63 of file glfDepthBufferMode.cpp.
Referenced by BIAS::glfBatch::SetDefaultRenderStates().
void glfDepthBufferMode::SetDepthFunc | ( | GLenum | depthFunc | ) |
Sets the depth buffer comparison function.
Valid values are: GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, GL_ALWAYS.
Definition at line 51 of file glfDepthBufferMode.cpp.
Referenced by BIAS::DistortionRendering::Init().
void glfDepthBufferMode::SetDepthMask | ( | bool | flag | ) |
Sets whether to write to the depth buffer.
Definition at line 46 of file glfDepthBufferMode.cpp.
void glfDepthBufferMode::SetDepthRange | ( | double | nearVal, |
double | farVal | ||
) |
Sets the mapping the used range of the depth buffer.
The parameters nearVal and farVal must be in [0,1].
Definition at line 56 of file glfDepthBufferMode.cpp.
void glfDepthBufferMode::SetDepthTest | ( | bool | enable | ) |
Sets whether to use depth buffer tests.
Definition at line 41 of file glfDepthBufferMode.cpp.
Referenced by BIAS::SeparableBilateralFilter::Init(), BIAS::DistortionRendering::Init(), and BIAS::TemplateSpecializedBatch::InitPerFragmentOperations_().
|
static |
The default depth buffer mode.
Definition at line 77 of file glfDepthBufferMode.hh.
Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfBatch::SetDefaultRenderStates().