OpenSceneGraph 3.6.5
AttributeDispatchers File Reference
#include <osg/ref_ptr>
#include <osg/Array>
#include <osg/Matrixd>

Go to the source code of this file.

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

namespace  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); \
} \
}
@ BIND_OVERALL
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

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.