OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions | Protected Attributes
osg::ColorMaski Class Reference

Encapsulates glColorMaski function : the index version of glColorMask for multiple render target. More...

Inheritance diagram for osg::ColorMaski:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ColorMaski ()
 ColorMaski (unsigned int buf, bool red, bool green, bool blue, bool alpha)
 ColorMaski (const ColorMaski &cm, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, ColorMaski, COLORMASK)
virtual int compare (const StateAttribute &sa) const
 Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual unsigned int getMember () const
 Return the buffer index as the member identifier.
void setIndex (unsigned int buf)
 Set the renderbuffer index of the ColorMaski.
unsigned int getIndex () const
 Get the renderbuffer index of the ColorMaski.
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~ColorMaski ()

Protected Attributes

unsigned int _index

Detailed Description

Encapsulates glColorMaski function : the index version of glColorMask for multiple render target.


Constructor & Destructor Documentation

osg::ColorMaski::ColorMaski ( unsigned int  buf,
bool  red,
bool  green,
bool  blue,
bool  alpha 
) [inline]
osg::ColorMaski::ColorMaski ( const ColorMaski cm,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::ColorMaski::~ColorMaski ( ) [protected, virtual]

Member Function Documentation

virtual void osg::ColorMaski::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::ColorMask.

virtual int osg::ColorMaski::compare ( const StateAttribute sa) const [inline, virtual]

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Reimplemented from osg::ColorMask.

References osg::ColorMask::compare(), COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.

unsigned int osg::ColorMaski::getIndex ( ) const [inline]

Get the renderbuffer index of the ColorMaski.

virtual unsigned int osg::ColorMaski::getMember ( ) const [inline, virtual]

Return the buffer index as the member identifier.

Reimplemented from osg::StateAttribute.

void osg::ColorMaski::setIndex ( unsigned int  buf) [inline]

Set the renderbuffer index of the ColorMaski.


Member Data Documentation

unsigned int osg::ColorMaski::_index [protected]

The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:16:41 for the OpenSceneGraph by doxygen 1.7.6.1.