Cull Class Reference
[Advanced]

Removes back or front-facing polygons. More...

#include <Cull.hpp>

Inheritance diagram for Cull:
Node Applicable

List of all members.

Public Member Functions

 Cull (const Tag &tag)
void apply ()
void remove ()
string toString () const

Private Attributes

bool enabled
GLenum faces
string facesString

Detailed Description

Removes back or front-facing polygons.


Constructor & Destructor Documentation

Cull ( const Tag tag  ) 

Creates a new Cull object from a tag.

Parameters:
tag XML tag containing "faces" attribute.
Exceptions:
Exception if faces attribute not supported.
NodeException if value for faces attribute not supported.

Member Function Documentation

void apply (  )  [virtual]

Enables culling.

Implements Applicable.

void remove (  )  [virtual]

Restores backface culling.

Implements Applicable.

string toString (  )  const [virtual]

Forms a string from the object's attributes.

Reimplemented from Node.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:35 2010 for Gander by  doxygen 1.6.3