#include <sglStatelet.hpp>
Inheritance diagram for sglDepthTest::
Public Types | |
enum | DepthFuncEnum { eLESS = GL_LESS, eALWAYS = GL_ALWAYS, eLEQUAL = GL_LEQUAL, eEQUAL = GL_EQUAL, eGEQUAL = GL_GEQUAL, eGREATER = GL_GREATER, eNOTEQUAL = GL_NOTEQUAL, eNEVER = GL_NEVER } |
Public Methods | |
sglDepthTest (DepthFuncEnum func=eLESS) | |
virtual | ~sglDepthTest () |
void | setDepthFunc (DepthFuncEnum func) |
DepthFuncEnum | getDepthFunc () const |
void | apply (sglCurrState *curr_state) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Example:
sglDepthTest *dtest = new sglDepthTest(sglDepthTest::eALWAYS); // disable dtest->setDepthFunc(sglDepthFunc::eLEQUAL);
Definition at line 968 of file sglStatelet.hpp.
|
The various depth functions.
Definition at line 972 of file sglStatelet.hpp. |
|
Constructor (also the default constructor).
Definition at line 996 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 1003 of file sglStatelet.hpp. |
|
Set a depth function.
|
|
Query the current depth function.
Definition at line 1013 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state.
Reimplemented from sglStatelet. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglStatelet. |