Renamed ArrayDispatchers to AttributeDispatchers to better reflect it's role
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <osg/Referenced>
|
||||
#include <osg/GLExtensions>
|
||||
#include <osg/Array>
|
||||
#include <osg/ArrayDispatchers>
|
||||
#include <osg/AttributeDispatchers>
|
||||
|
||||
namespace osg {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user