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

osg::PrimitiveRestartIndex does nothing if OpenGL 3.1 is not available. More...

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

List of all members.

Public Member Functions

 PrimitiveRestartIndex ()
 PrimitiveRestartIndex (unsigned int restartIndex)
 PrimitiveRestartIndex (const PrimitiveRestartIndex &primitiveRestartIndex, const CopyOp &copyop=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

Detailed Description

osg::PrimitiveRestartIndex does nothing if OpenGL 3.1 is not available.


Constructor & Destructor Documentation

osg::PrimitiveRestartIndex::PrimitiveRestartIndex ( unsigned int  restartIndex)

Copy constructor using CopyOp to manage deep vs shallow copy.

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

Member Function Documentation

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]

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

void osg::PrimitiveRestartIndex::setRestartIndex ( unsigned int  restartIndex) [inline]

Member Data Documentation


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

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