|
Public Member Functions |
| | ColorMask () |
| | ColorMask (bool red, bool green, bool blue, bool alpha) |
| | ColorMask (const ColorMask &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, ColorMask, COLORMASK) |
| virtual int | compare (const StateAttribute &sa) const |
| | Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
| void | setMask (bool red, bool green, bool blue, bool alpha) |
| void | setRedMask (bool mask) |
| bool | getRedMask () const |
| void | setGreenMask (bool mask) |
| bool | getGreenMask () const |
| void | setBlueMask (bool mask) |
| bool | getBlueMask () const |
| void | setAlphaMask (bool mask) |
| bool | getAlphaMask () const |
| virtual void | apply (State &state) const |
| | apply the OpenGL state attributes.
|
Protected Member Functions |
| virtual | ~ColorMask () |
Protected Attributes |
| bool | _red |
| bool | _green |
| bool | _blue |
| bool | _alpha |