public

Inheritance Graph

graph BT
	DepthBufferParameters
	click DepthBufferParameters "classRendering_1_1DepthBufferParameters"

Description

Parameters of depth buffer.

Abstraction layer class for the depth buffer configuration. The OpenGL functions working with the depth buffer settings are encapsulated inside.

Author: Benjamin Eikel

Date: 2012-02-14

See also: glDepthFunc,glDepthMask, and constantGL_DEPTH_BUFFER_BITof functionglPushAttrib

Public Functions

   
   
  DepthBufferParameters()
Create DepthBufferParameters representing the default OpenGL state.
   
  DepthBufferParameters(bool testEnabled, bool writingEnabled, Comparison::function_t comparison)
Create DepthBufferParameters with the given values.
   
bool operator==(const DepthBufferParameters & other) const
Returntrueif the whole set of parameters isequalto theotherset.
   
bool operator!=(const DepthBufferParameters & other) const
Returntrueif the whole set of parameters isunequalto theotherset.
   
bool isTestEnabled() const
   
bool isWritingEnabled() const
   
Comparison::function_t getFunction() const

Documentation

function
Rendering::DepthBufferParameters::DepthBufferParameters

public inline explicit
   
   
DepthBufferParameters( )

Create DepthBufferParameters representing the default OpenGL state.

Defined in Rendering/RenderingContext/RenderingParameters.h:465


function
Rendering::DepthBufferParameters::DepthBufferParameters

public inline explicit
     
     
DepthBufferParameters( bool testEnabled,
  bool writingEnabled,
  Comparison::function_t comparison
)    

Create DepthBufferParameters with the given values.

Defined in Rendering/RenderingContext/RenderingParameters.h:469


function
Rendering::DepthBufferParameters::operator==

public const inline
     
     
bool operator==( const DepthBufferParameters & other ) const

Returntrueif the whole set of parameters isequalto theotherset.

Defined in Rendering/RenderingContext/RenderingParameters.h:474


function
Rendering::DepthBufferParameters::operator!=

public const inline
     
     
bool operator!=( const DepthBufferParameters & other ) const

Returntrueif the whole set of parameters isunequalto theotherset.

Defined in Rendering/RenderingContext/RenderingParameters.h:478


function
Rendering::DepthBufferParameters::isTestEnabled

public const inline
   
   
bool isTestEnabled( ) const

Defined in Rendering/RenderingContext/RenderingParameters.h:482


function
Rendering::DepthBufferParameters::isWritingEnabled

public const inline
   
   
bool isWritingEnabled( ) const

Defined in Rendering/RenderingContext/RenderingParameters.h:485


function
Rendering::DepthBufferParameters::getFunction

public const inline
   
   
Comparison::function_t getFunction( ) const

Defined in Rendering/RenderingContext/RenderingParameters.h:488