Renamed ArrayDispatchers to AttributeDispatchers to better reflect it's role

This commit is contained in:
Robert Osfield
2016-10-11 15:14:14 +01:00
parent e14ee80282
commit 38ff11f8c5
7 changed files with 40 additions and 40 deletions

View File

@@ -11,8 +11,8 @@
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_ArrayDispatchers
#define OSG_ArrayDispatchers 1
#ifndef OSG_ATTRIBUTEDISPATCHERS
#define OSG_ATTRIBUTEDISPATCHERS 1
#include <osg/ref_ptr>
#include <osg/Array>
@@ -31,12 +31,12 @@ struct AttributeDispatch : public osg::Referenced
};
/** Helper class for managing the dispatch to OpenGL of various attribute arrays such as stored in osg::Geometry.*/
class OSG_EXPORT ArrayDispatchers : public osg::Referenced
class OSG_EXPORT AttributeDispatchers : public osg::Referenced
{
public:
ArrayDispatchers();
~ArrayDispatchers();
AttributeDispatchers();
~AttributeDispatchers();
void setState(osg::State* state);

View File

@@ -29,7 +29,7 @@
#include <osg/DisplaySettings>
#include <osg/Polytope>
#include <osg/Viewport>
#include <osg/ArrayDispatchers>
#include <osg/AttributeDispatchers>
#include <osg/GraphicsCostEstimator>
#include <iosfwd>
@@ -877,7 +877,7 @@ class OSG_EXPORT State : public Referenced
void initializeExtensionProcs();
/** Get the helper class for dispatching osg::Arrays as OpenGL attribute data.*/
inline ArrayDispatchers& getArrayDispatchers() { return _arrayDispatchers; }
inline AttributeDispatchers& getAttributeDispatchers() { return _arrayDispatchers; }
/** Set the helper class that provides applications with estimate on how much different graphics operations will cost.*/
@@ -1341,7 +1341,7 @@ class OSG_EXPORT State : public Referenced
unsigned int _dynamicObjectCount;
osg::ref_ptr<DynamicObjectRenderingCompletedCallback> _completeDynamicObjectRenderingCallback;
ArrayDispatchers _arrayDispatchers;
AttributeDispatchers _arrayDispatchers;
osg::ref_ptr<GraphicsCostEstimator> _graphicsCostEstimator;

View File

@@ -17,7 +17,7 @@
#include <osg/Referenced>
#include <osg/GLExtensions>
#include <osg/Array>
#include <osg/ArrayDispatchers>
#include <osg/AttributeDispatchers>
namespace osg {