14#ifndef OSG_VERTEXATTRIBDIVISOR
15#define OSG_VERTEXATTRIBDIVISOR 1
42 virtual const char*
className()
const {
return "VertexAttribDivisor"; }
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
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
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Type
Type identifier to differentiate between different state types.
Definition StateAttribute:124
@ VERTEX_ATTRIB_DIVISOR
Definition StateAttribute:201
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition VertexAttribDivisor:46
virtual unsigned int getMember() const
Return the member identifier within the attribute's class type.
Definition VertexAttribDivisor:59
void setDivisor(unsigned int divisor)
Set the vertex attrib divisor.
Definition VertexAttribDivisor:69
virtual osg::Object * clone(const osg::CopyOp ©op) const
Clone an attribute, with Object* return type.
Definition VertexAttribDivisor:39
unsigned int getIndex() const
Get the vertex attrib index.
Definition VertexAttribDivisor:66
VertexAttribDivisor(const VertexAttribDivisor &vad, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition VertexAttribDivisor:33
virtual Type getType() const
Return the Type identifier of the attribute's class type.
Definition VertexAttribDivisor:43
unsigned int getDivisor() const
Get the vertex attrib divisor.
Definition VertexAttribDivisor:72
virtual osg::Object * cloneType() const
Clone the type of an attribute, with Object* return type.
Definition VertexAttribDivisor:38
VertexAttribDivisor(unsigned int index, unsigned int divisor)
void setIndex(unsigned int index)
Set the vertex attrib index - the vertex attribute slot that the divisor should apply to.
Definition VertexAttribDivisor:63
virtual const char * className() const
Return the name of the attribute's class type.
Definition VertexAttribDivisor:42
unsigned int _divisor
Definition VertexAttribDivisor:82
unsigned int _index
Definition VertexAttribDivisor:81
virtual ~VertexAttribDivisor()
virtual void apply(State &state) const
Apply to the OpenGL state machine.
virtual bool isSameKindAs(const osg::Object *obj) const
Return true if this and obj are of the same kind of object.
Definition VertexAttribDivisor:40
virtual const char * libraryName() const
Return the name of the attribute's library.
Definition VertexAttribDivisor:41
#define NULL
Definition Export:55
#define OSG_EXPORT
Definition Export:39