#include <sglStatelet.hpp>
Inheritance diagram for sglLogicOp::
Public Types | |
enum | LogicOpEnum { eCOPY = GL_COPY, eCLEAR = GL_CLEAR, eSET = GL_SET, eCOPY_INVERTED = GL_COPY_INVERTED, eNOOP = GL_NOOP, eINVERT = GL_INVERT, eAND = GL_AND, eNAND = GL_NAND, eOR = GL_OR, eNOR = GL_NOR, eXOR = GL_XOR, eEQUIV = GL_EQUIV, eAND_REVERSE = GL_AND_REVERSE, eAND_INVERTED = GL_AND_INVERTED, eOR_REVERSE = GL_OR_REVERSE, eOR_INVERTED = GL_OR_INVERTED } |
Public Methods | |
sglLogicOp (LogicOpEnum op=eCOPY) | |
virtual | ~sglLogicOp () |
void | setLogicOp (LogicOpEnum op) |
LogicOpEnum | getLogicOp () const |
void | apply (sglCurrState *curr_state) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Attributes | |
LogicOpEnum | m_logic_op |
Example:
sglLogicOp *logic_op = new sglLogicOp; // defaults to eCOPY logic_op->setLogicOp(sglLogicOp::eEQUIV); // ~(source XOR dest)
Definition at line 1377 of file sglStatelet.hpp.
|
The list of valid logic op tokens.
Definition at line 1381 of file sglStatelet.hpp. |
|
Constructor (also the default constructor).
Definition at line 1422 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 1426 of file sglStatelet.hpp. |
|
Set the logical operation.
Definition at line 1431 of file sglStatelet.hpp. |
|
Query the current logical operation.
Definition at line 1437 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. |