Moved GL2Extensions functionality into the include/osg/GLExtensions header and new GLExtensions object.
Moved the #defines into new include/osg/GLDefines Converted all GL2Extensions usage to GLExtensions usage git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14593 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#define OSG_STATE 1
|
||||
|
||||
#include <osg/Export>
|
||||
#include <osg/GL2Extensions>
|
||||
#include <osg/GLExtensions>
|
||||
#include <osg/StateSet>
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Uniform>
|
||||
@@ -1941,7 +1941,7 @@ class OSG_EXPORT State : public Referenced
|
||||
DrawArraysInstancedProc _glDrawArraysInstanced;
|
||||
DrawElementsInstancedProc _glDrawElementsInstanced;
|
||||
|
||||
osg::ref_ptr<GL2Extensions> _gl2Extentsions;
|
||||
osg::ref_ptr<GLExtensions> _glExtensions;
|
||||
|
||||
unsigned int _dynamicObjectCount;
|
||||
osg::ref_ptr<DynamicObjectRenderingCompletedCallback> _completeDynamicObjectRenderingCallback;
|
||||
@@ -2777,8 +2777,8 @@ inline bool State::setActiveTextureUnit( unsigned int unit )
|
||||
}
|
||||
|
||||
// forward declare speciailization of State::get() method
|
||||
template<> inline GL2Extensions* State::get<GL2Extensions>() { return _gl2Extentsions.get(); }
|
||||
template<> inline const GL2Extensions* State::get<GL2Extensions>() const { return _gl2Extentsions.get(); }
|
||||
template<> inline GLExtensions* State::get<GLExtensions>() { return _glExtensions.get(); }
|
||||
template<> inline const GLExtensions* State::get<GLExtensions>() const { return _glExtensions.get(); }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user