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

osg::SampleMaski does nothing if OpenGL 3.2 or ARB_texture_multisample are not available. More...

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

List of all members.

Public Member Functions

 SampleMaski ()
 SampleMaski (const SampleMaski &sampleMaski, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, SampleMaski, SAMPLEMASKI) virtual int compare(const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
void setMask (unsigned int mask, unsigned int maskNumber=0u)
unsigned int getMask (unsigned int maskNumber=0u) const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~SampleMaski ()

Protected Attributes

unsigned int _sampleMask [2]

Detailed Description

osg::SampleMaski does nothing if OpenGL 3.2 or ARB_texture_multisample are not available.


Constructor & Destructor Documentation

osg::SampleMaski::SampleMaski ( const SampleMaski sampleMaski,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

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

Member Function Documentation

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

unsigned int osg::SampleMaski::getMask ( unsigned int  maskNumber = 0u) const [inline]

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

void osg::SampleMaski::setMask ( unsigned int  mask,
unsigned int  maskNumber = 0u 
) [inline]

Member Data Documentation

unsigned int osg::SampleMaski::_sampleMask[2] [protected]

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

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