#include <sglStatelet.hpp>
Inheritance diagram for sglAlphaTest::
Public Types | |
enum | AlphaFuncEnum { 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 | |
sglAlphaTest (AlphaFuncEnum func=eALWAYS, float ref=0.0f) | |
virtual | ~sglAlphaTest () |
void | setAlphaFunc (AlphaFuncEnum func, float ref) |
void | getAlphaFunc (AlphaFuncEnum &func, float &ref) const |
void | apply (sglCurrState *curr_state) const |
virtual bool | getSorted () const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Example:
sglAlphaTest *statelet = new sglAlphaTest; // default eALWAYS statelet->setAlphaFunc(sglAlphaTest::eLEQUAL, 0.5f);
Definition at line 391 of file sglStatelet.hpp.
|
The list of possible alpha functions. Definition at line 395 of file sglStatelet.hpp. |
|
Constructor (also default constructor).
Definition at line 413 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 420 of file sglStatelet.hpp. |
|
Set the alpha test function and reference value.
Referenced by sglAlphaTest(). |
|
Query the current alpha test function and reference value.
Definition at line 435 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state.
Reimplemented from sglStatelet. |
|
Query the sorting mode for this statelet.
Reimplemented from sglStatelet. Definition at line 442 of file sglStatelet.hpp. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglStatelet. |