Basic Image AlgorithmS Library
2.8.0
|
This class allows to use the currently set viewport in the global opengl state! More...
#include <OpenGLFramework/Passive/glfPassiveDepthBufferMode.hh>
Public Member Functions | |
virtual void | Bind () const |
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... | |
Static Public Attributes | |
static const glfDepthBufferMode | DEFAULT |
The default depth buffer mode. More... | |
This class allows to use the currently set viewport in the global opengl state!
It is not the intention of the OpenGLFramework to work on a global scope! Use this class with caution and seldom even if it is convenient! Your classes will develop difficult behavior and will not be transportable outside a well defined state context! Nevertheless it is usefull to use passive components for the integration of concepts from the OpenGLFramework into old software.
Definition at line 47 of file glfPassiveDepthBufferMode.hh.
|
inlinevirtual |
Definition at line 50 of file glfPassiveDepthBufferMode.hh.
|
inherited |
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().
|
inherited |
Sets whether to write to the depth buffer.
Definition at line 46 of file glfDepthBufferMode.cpp.
|
inherited |
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.
|
inherited |
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_().
|
staticinherited |
The default depth buffer mode.
Definition at line 77 of file glfDepthBufferMode.hh.
Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfBatch::SetDefaultRenderStates().