public

Inheritance Graph

graph BT
	CullFaceParameters
	click CullFaceParameters "classRendering_1_1CullFaceParameters"

Description

Parameters of front- or back-face culling.

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

Author: Ralf Petring, Benjamin Eikel

Date: 2012-02-21

See also: glCullFace, and constantGL_CULL_FACEof functionglEnable

Public Types

   
   
enum cullFaceMode_t {CULL_BACK, CULL_FRONT, CULL_FRONT_AND_BACK}

Public Functions

   
   
  CullFaceParameters()
Create CullFaceParameters representing the default OpenGL state.
   
  CullFaceParameters( cullFaceMode_t m)
Create CullFaceParameters with the given values.
   
bool operator!=(const CullFaceParameters & other) const
   
bool operator==(const CullFaceParameters & other) const
   
bool isEnabled() const
   
void enable()
   
void disable()
   
cullFaceMode_t getMode() const
   
void setMode( cullFaceMode_t _mode)

Documentation

enum
Rendering::CullFaceParameters::cullFaceMode_t

public
 
 
enum cullFaceMode_t
Enumerator   Description
Enumerator   Description
CULL_BACK    
CULL_FRONT    
CULL_FRONT_AND_BACK    

Defined in Rendering/RenderingContext/RenderingParameters.h:405


function
Rendering::CullFaceParameters::CullFaceParameters

public inline
   
   
CullFaceParameters( )

Create CullFaceParameters representing the default OpenGL state.

Defined in Rendering/RenderingContext/RenderingParameters.h:415


function
Rendering::CullFaceParameters::CullFaceParameters

public inline
     
     
CullFaceParameters( cullFaceMode_t m )

Create CullFaceParameters with the given values.

Defined in Rendering/RenderingContext/RenderingParameters.h:417


function
Rendering::CullFaceParameters::operator!=

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

Defined in Rendering/RenderingContext/RenderingParameters.h:418


function
Rendering::CullFaceParameters::operator==

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

Defined in Rendering/RenderingContext/RenderingParameters.h:421


function
Rendering::CullFaceParameters::isEnabled

public const inline
   
   
bool isEnabled( ) const

Defined in Rendering/RenderingContext/RenderingParameters.h:424


function
Rendering::CullFaceParameters::enable

public inline
   
   
void enable( )

Defined in Rendering/RenderingContext/RenderingParameters.h:427


function
Rendering::CullFaceParameters::disable

public inline
   
   
void disable( )

Defined in Rendering/RenderingContext/RenderingParameters.h:430


function
Rendering::CullFaceParameters::getMode

public const inline
   
   
cullFaceMode_t getMode( ) const

Defined in Rendering/RenderingContext/RenderingParameters.h:433


function
Rendering::CullFaceParameters::setMode

public inline
     
     
void setMode( cullFaceMode_t _mode )

Defined in Rendering/RenderingContext/RenderingParameters.h:436