Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::ColorMask Class Reference

Encapsulate OpenGL glColorMaskFunc/Op/Mask functions. More...

Inheritance diagram for osg::ColorMask:

Inheritance graph
[legend]
List of all members.

Public Methods

 ColorMask ()
 ColorMask (const ColorMask &cm, const CopyOp &copyop=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)
const bool getRedMask () const
const bool getGreenMask () const
const bool getBlueMask () const
const bool getAlphaMask () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.


Protected Methods

virtual ~ColorMask ()

Protected Attributes

bool _red
bool _green
bool _blue
bool _alpha

Detailed Description

Encapsulate OpenGL glColorMaskFunc/Op/Mask functions.


Constructor & Destructor Documentation

osg::ColorMask::ColorMask  
 

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]
 


Member Function Documentation

virtual void osg::ColorMask::apply State   state const [virtual]
 

apply the OpenGL state attributes.

The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Implements 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.

const bool osg::ColorMask::getAlphaMask   const [inline]
 

const bool osg::ColorMask::getBlueMask   const [inline]
 

const bool osg::ColorMask::getGreenMask   const [inline]
 

const bool osg::ColorMask::getRedMask   const [inline]
 

osg::ColorMask::META_StateAttribute osg   ,
ColorMask   ,
COLORMASK   
 

void osg::ColorMask::setMask bool    red,
bool    green,
bool    blue,
bool    alpha
[inline]
 


Member Data Documentation

bool osg::ColorMask::_alpha [protected]
 

bool osg::ColorMask::_blue [protected]
 

bool osg::ColorMask::_green [protected]
 

bool osg::ColorMask::_red [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:27 2002 for the Open Scene Graph by doxygen 1.2.16.