Removes back or front-facing polygons. More...
#include <Cull.hpp>
Public Member Functions | |
Cull (const Tag &tag) | |
void | apply () |
void | remove () |
string | toString () const |
Private Attributes | |
bool | enabled |
GLenum | faces |
string | facesString |
Removes back or front-facing polygons.
Creates a new Cull object from a tag.
tag | XML tag containing "faces" attribute. |
Exception | if faces attribute not supported. | |
NodeException | if value for faces attribute not supported. |
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.