Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Culling Class Reference
[Scene Graph]

#include <lvt/State.h>

Inheritance diagram for Culling:

Inheritance graph
[legend]
List of all members.

Detailed Description

Controls backface culling.

The Culling class controls the orientation of front-facing polygons and which polygons (front, back, or both) are culled by OpenGL.


Public Member Functions

GLenum GetCullFace () const
 Returns which faces are culled by OpenGL.
GLenum GetFrontFace () const
 Returns the orientation of front-facing polygons.
virtual void Render ()
 Activates the State.
void SetCullFace (GLenum cullFace)
 Sets which faces are culled by OpenGL.
void SetFrontFace (GLenum frontFace)
 Sets the orientation of front-facing polygons.


Member Function Documentation

GLenum GetCullFace  )  const [inline]
 

Returns which faces are culled by OpenGL.

GLenum GetFrontFace  )  const [inline]
 

Returns the orientation of front-facing polygons.

virtual void Render  )  [virtual]
 

Activates the State.

If the State is enabled, the corresponding piece of OpenGL state is enabled and its value is set, if appropriate. If the State object is disabled, the corresponding piece of OpenGL state is disabled.

Implements State.

void SetCullFace GLenum  cullFace  )  [inline]
 

Sets which faces are culled by OpenGL.

Parameters:
cullFace One of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
The default is GL_BACK.

void SetFrontFace GLenum  frontFace  )  [inline]
 

Sets the orientation of front-facing polygons.

Parameters:
frontFace Either GL_CW (clockwise) or GL_CCW (counter-clockwise).
The default is GL_CCW.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1