OpenSceneGraph
Classes | Namespaces | Macros
AttributeDispatchers File Reference
#include <osg/ref_ptr>
#include <osg/Array>
#include <osg/Matrixd>

Classes

struct  osg::AttributeDispatch
 
class  osg::AttributeDispatchers
 Helper class for managing the dispatch to OpenGL of various attribute arrays such as stored in osg::Geometry. More...
 

Namespaces

 osg
 The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes.
 

Macros

#define OSG_ATTRIBUTEDISPATCHERS   1
 
#define DISPATCH_OR_ACTIVATE(array, dispatcher)
 

Macro Definition Documentation

◆ DISPATCH_OR_ACTIVATE

#define DISPATCH_OR_ACTIVATE (   array,
  dispatcher 
)
Value:
if (array) { \
unsigned int binding = array->getBinding(); \
if (binding==osg::Array::BIND_OVERALL) \
{ \
AttributeDispatch* at = dispatcher; \
if (at) (*at)(0); \
} \
else if (binding==osg::Array:: BIND_PER_PRIMITIVE_SET) \
{ \
AttributeDispatch* at = dispatcher; \
if (at) _activeDispatchList.push_back(at); \
} \
}
Definition: Array:133

Referenced by osg::AttributeDispatchers::activateColorArray(), osg::AttributeDispatchers::activateFogCoordArray(), osg::AttributeDispatchers::activateNormalArray(), osg::AttributeDispatchers::activateSecondaryColorArray(), and osg::AttributeDispatchers::activateVertexAttribArray().

◆ OSG_ATTRIBUTEDISPATCHERS

#define OSG_ATTRIBUTEDISPATCHERS   1