14#ifndef OSG_PRIMITIVERESTARTINDEX
15#define OSG_PRIMITIVERESTARTINDEX 1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
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.
PrimitiveRestartIndex(unsigned int restartIndex)
virtual void apply(State &state) const
apply the OpenGL state attributes.
PrimitiveRestartIndex(const PrimitiveRestartIndex &primitiveRestartIndex, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
unsigned int getRestartIndex() const
Definition PrimitiveRestartIndex:41
void setRestartIndex(unsigned int restartIndex)
Definition PrimitiveRestartIndex:39
virtual ~PrimitiveRestartIndex()
unsigned int _restartIndex
Definition PrimitiveRestartIndex:49
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
virtual int compare(const StateAttribute &sa) const =0
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
@ PRIMITIVERESTARTINDEX
Definition StateAttribute:168
#define OSG_EXPORT
Definition Export:39