OpenSceneGraph
3.4.0
|
Multisample - encapsulates the OpenGL Multisample state. More...
Public Types | |
enum | Mode { FASTEST = GL_FASTEST, NICEST = GL_NICEST, DONT_CARE = GL_DONT_CARE } |
Public Member Functions | |
Multisample () | |
Multisample (const Multisample &trans, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, Multisample, MULTISAMPLE) | |
virtual int | compare (const StateAttribute &sa) const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
void | setSampleCoverage (float coverage, bool invert) |
void | setCoverage (float coverage) |
float | getCoverage () const |
void | setInvert (bool invert) |
bool | getInvert () const |
void | setHint (Mode mode) |
Mode | getHint () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~Multisample () |
Protected Attributes | |
float | _coverage |
bool | _invert |
Mode | _mode |
Multisample - encapsulates the OpenGL Multisample state.
osg::Multisample::Multisample | ( | const Multisample & | trans, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::Multisample::~Multisample | ( | ) | [protected, virtual] |
virtual void osg::Multisample::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::Multisample::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_Parameter, and COMPARE_StateAttribute_Types.
float osg::Multisample::getCoverage | ( | ) | const [inline] |
Mode osg::Multisample::getHint | ( | ) | const [inline] |
bool osg::Multisample::getInvert | ( | ) | const [inline] |
void osg::Multisample::setCoverage | ( | float | coverage | ) | [inline] |
void osg::Multisample::setHint | ( | Mode | mode | ) | [inline] |
void osg::Multisample::setInvert | ( | bool | invert | ) | [inline] |
void osg::Multisample::setSampleCoverage | ( | float | coverage, |
bool | invert | ||
) | [inline] |
float osg::Multisample::_coverage [protected] |
bool osg::Multisample::_invert [protected] |
Mode osg::Multisample::_mode [protected] |
![]() | Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1. |