OpenSceneGraph
3.4.0
|
osg::SampleMaski does nothing if OpenGL 3.2 or ARB_texture_multisample are not available. More...
Public Member Functions | |
SampleMaski () | |
SampleMaski (const SampleMaski &sampleMaski, const CopyOp ©op=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] |
osg::SampleMaski does nothing if OpenGL 3.2 or ARB_texture_multisample are not available.
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] |
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] |
osg::SampleMaski::META_StateAttribute | ( | osg | , |
SampleMaski | , | ||
SAMPLEMASKI | |||
) | const |
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] |
unsigned int osg::SampleMaski::_sampleMask[2] [protected] |
![]() | Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1. |