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::glfDepthBufferMode Class Reference

Defines the usage of the depth buffer. More...

#include <OpenGLFramework/Base/glfDepthBufferMode.hh>

+ Inheritance diagram for BIAS::glfDepthBufferMode:
+ Collaboration diagram for BIAS::glfDepthBufferMode:

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

Detailed Description

Defines the usage of the depth buffer.

Author
jkollmann
Examples:
ExampleRenderingContext.cpp.

Definition at line 37 of file glfDepthBufferMode.hh.

Constructor & Destructor Documentation

glfDepthBufferMode::glfDepthBufferMode ( )

Definition at line 32 of file glfDepthBufferMode.cpp.

virtual BIAS::glfDepthBufferMode::~glfDepthBufferMode ( )
inlinevirtual

Definition at line 41 of file glfDepthBufferMode.hh.

Member Function Documentation

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.

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
static

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 files: