Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Attributes | List of all members
BIAS::glfPassiveDepthBufferMode Class Reference

This class allows to use the currently set viewport in the global opengl state! More...

#include <OpenGLFramework/Passive/glfPassiveDepthBufferMode.hh>

+ Inheritance diagram for BIAS::glfPassiveDepthBufferMode:
+ Collaboration diagram for BIAS::glfPassiveDepthBufferMode:

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...
 

Detailed Description

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.

Author
bartczak 02/2008

Definition at line 47 of file glfPassiveDepthBufferMode.hh.

Member Function Documentation

virtual void BIAS::glfPassiveDepthBufferMode::Bind ( ) const
inlinevirtual

Definition at line 50 of file glfPassiveDepthBufferMode.hh.

void glfDepthBufferMode::SetDepthFunc ( GLenum  depthFunc)
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().

void glfDepthBufferMode::SetDepthMask ( bool  flag)
inherited

Sets whether to write to the depth buffer.

Definition at line 46 of file glfDepthBufferMode.cpp.

void glfDepthBufferMode::SetDepthRange ( double  nearVal,
double  farVal 
)
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.

void glfDepthBufferMode::SetDepthTest ( bool  enable)
inherited

Sets whether to use depth buffer tests.

Note
: This must be enabled, even you only want to write to the depth buffer. Use the depth func GL_ALWAYS to use the depth buffer write-only.
Examples:
ExampleRenderingContext.cpp.

Definition at line 41 of file glfDepthBufferMode.cpp.

Referenced by BIAS::SeparableBilateralFilter::Init(), BIAS::DistortionRendering::Init(), and BIAS::TemplateSpecializedBatch::InitPerFragmentOperations_().

Member Data Documentation

const glfDepthBufferMode glfDepthBufferMode::DEFAULT
staticinherited

The default depth buffer mode.

Definition at line 77 of file glfDepthBufferMode.hh.

Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfBatch::SetDefaultRenderStates().


The documentation for this class was generated from the following file: