OpenSceneGraph
3.0.1
|
Encapsulates OpenGL glColorMaskFunc/Op/Mask functions. More...
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 |
Encapsulates OpenGL glColorMaskFunc/Op/Mask functions.
osg::ColorMask::ColorMask | ( | ) |
osg::ColorMask::ColorMask | ( | bool | red, |
bool | green, | ||
bool | blue, | ||
bool | alpha | ||
) | [inline] |
osg::ColorMask::ColorMask | ( | const ColorMask & | cm, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ColorMask::~ColorMask | ( | ) | [protected, virtual] |
virtual void osg::ColorMask::apply | ( | State & | ) | const [virtual] |
apply the OpenGL state attributes.
The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
virtual int osg::ColorMask::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
References COMPARE_StateAttribute_Types, and COMPARE_StateAttribute_Parameter.
bool osg::ColorMask::getAlphaMask | ( | ) | const [inline] |
bool osg::ColorMask::getBlueMask | ( | ) | const [inline] |
bool osg::ColorMask::getGreenMask | ( | ) | const [inline] |
bool osg::ColorMask::getRedMask | ( | ) | const [inline] |
osg::ColorMask::META_StateAttribute | ( | osg | , |
ColorMask | , | ||
COLORMASK | |||
) |
void osg::ColorMask::setAlphaMask | ( | bool | mask | ) | [inline] |
void osg::ColorMask::setBlueMask | ( | bool | mask | ) | [inline] |
void osg::ColorMask::setGreenMask | ( | bool | mask | ) | [inline] |
void osg::ColorMask::setMask | ( | bool | red, |
bool | green, | ||
bool | blue, | ||
bool | alpha | ||
) | [inline] |
void osg::ColorMask::setRedMask | ( | bool | mask | ) | [inline] |
bool osg::ColorMask::_alpha [protected] |
bool osg::ColorMask::_blue [protected] |
bool osg::ColorMask::_green [protected] |
bool osg::ColorMask::_red [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:41 for the OpenSceneGraph by doxygen 1.7.5. |