Modifies the depth function. More...
#include <Depth.hpp>
Public Member Functions | |
Depth (const Tag &tag) | |
virtual void | apply () |
virtual void | remove () |
virtual string | toString () const |
Private Attributes | |
GLenum | mode |
float | clear |
Modifies the depth function.
XML Name
XML attributes
mode | Comparison to determine if incoming fragment passes depth test. |
mode values
OpenGL Functions
Example
<depth mode="gequal"> <cube /> </depth>
Initializes mode and clear.
NodeException | if value for mode unrecognized. |
void apply | ( | ) | [virtual] |
Changes the depth function to mode and clears the depth buffer.
Implements Applicable.
void remove | ( | ) | [virtual] |
Restores the default depth function.
Implements Applicable.
string toString | ( | ) | const [virtual] |
Adds mode to the node description.
Reimplemented from Node.