OpenSceneGraph
3.4.0
|
osg::PrimitiveRestartIndex does nothing if OpenGL 3.1 is not available. More...
Public Member Functions | |
PrimitiveRestartIndex () | |
PrimitiveRestartIndex (unsigned int restartIndex) | |
PrimitiveRestartIndex (const PrimitiveRestartIndex &primitiveRestartIndex, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, PrimitiveRestartIndex, PRIMITIVERESTARTINDEX) virtual int compare(const StateAttribute &sa) const | |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
void | setRestartIndex (unsigned int restartIndex) |
unsigned int | getRestartIndex () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~PrimitiveRestartIndex () |
Protected Attributes | |
unsigned int | _restartIndex |
osg::PrimitiveRestartIndex does nothing if OpenGL 3.1 is not available.
osg::PrimitiveRestartIndex::PrimitiveRestartIndex | ( | unsigned int | restartIndex | ) |
osg::PrimitiveRestartIndex::PrimitiveRestartIndex | ( | const PrimitiveRestartIndex & | primitiveRestartIndex, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::PrimitiveRestartIndex::~PrimitiveRestartIndex | ( | ) | [protected, virtual] |
virtual void osg::PrimitiveRestartIndex::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::PrimitiveRestartIndex::getRestartIndex | ( | ) | const [inline] |
osg::PrimitiveRestartIndex::META_StateAttribute | ( | osg | , |
PrimitiveRestartIndex | , | ||
PRIMITIVERESTARTINDEX | |||
) | const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
void osg::PrimitiveRestartIndex::setRestartIndex | ( | unsigned int | restartIndex | ) | [inline] |
unsigned int osg::PrimitiveRestartIndex::_restartIndex [protected] |
![]() | Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1. |