diff --git a/VisualStudio/osg/osg.dsp b/VisualStudio/osg/osg.dsp
index 871b436b1..defaaa2d1 100755
--- a/VisualStudio/osg/osg.dsp
+++ b/VisualStudio/osg/osg.dsp
@@ -381,10 +381,6 @@ SOURCE=..\..\src\osg\Texture.cpp
# End Source File
# Begin Source File
-SOURCE=..\..\src\osg\TextureBase.cpp
-# End Source File
-# Begin Source File
-
SOURCE=..\..\src\osg\Texture1D.cpp
# End Source File
# Begin Source File
@@ -533,10 +529,6 @@ SOURCE=..\..\include\osg\ClearNode
# End Source File
# Begin Source File
-SOURCE=..\..\include\osg\EarthSky
-# End Source File
-# Begin Source File
-
SOURCE=..\..\Include\Osg\Export
# End Source File
# Begin Source File
@@ -777,10 +769,6 @@ SOURCE=..\..\Include\Osg\Texture
# End Source File
# Begin Source File
-SOURCE=..\..\Include\Osg\TextureBase
-# End Source File
-# Begin Source File
-
SOURCE=..\..\Include\Osg\Texture1D
# End Source File
# Begin Source File
diff --git a/VisualStudio/osgPlugins/osg/dot_osg.dsp b/VisualStudio/osgPlugins/osg/dot_osg.dsp
index ce7c897a1..b5201e708 100755
--- a/VisualStudio/osgPlugins/osg/dot_osg.dsp
+++ b/VisualStudio/osgPlugins/osg/dot_osg.dsp
@@ -278,7 +278,7 @@ SOURCE=..\..\..\src\osgPlugins\osg\Texture.cpp
# End Source File
# Begin Source File
-SOURCE=..\..\..\src\osgPlugins\osg\TextureBase.cpp
+SOURCE=..\..\..\src\osgPlugins\osg\Texture1D.cpp
# End Source File
# Begin Source File
@@ -286,6 +286,10 @@ SOURCE=..\..\..\src\osgPlugins\osg\Texture2D.cpp
# End Source File
# Begin Source File
+SOURCE=..\..\..\src\osgPlugins\osg\Texture3D.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\..\src\osgPlugins\osg\TextureCubeMap.cpp
# End Source File
# Begin Source File
diff --git a/doc/data.html b/doc/data.html
index 7e9ec4ad9..2b5bcb78b 100644
--- a/doc/data.html
+++ b/doc/data.html
@@ -30,7 +30,7 @@
- Open scene graph .osg demo data set can downloaded here:
-http://www.openscenegraph.org/downloads/osg_data-0.8-45.tar.gz
+http://www.openscenegraph.org/download/data/OpenSceneGraphData-0.9.1.tar.gz
diff --git a/include/osg/BoundingBox b/include/osg/BoundingBox
index edf56629e..02ef47946 100644
--- a/include/osg/BoundingBox
+++ b/include/osg/BoundingBox
@@ -49,12 +49,7 @@ class SG_EXPORT BoundingBox
_min.set(FLT_MAX,FLT_MAX,FLT_MAX);
_max.set(-FLT_MAX,-FLT_MAX,-FLT_MAX);
}
-
-#ifdef USE_DEPRECATED_API
- /** deprecated, use valid() instead.*/
- inline const bool isValid() const { return _max.x()>=_min.x(); }
-#endif
-
+
inline const bool valid() const
{
return _max.x()>=_min.x();
diff --git a/include/osg/BoundingSphere b/include/osg/BoundingSphere
index e7076a49c..e8133b642 100644
--- a/include/osg/BoundingSphere
+++ b/include/osg/BoundingSphere
@@ -38,10 +38,6 @@ class SG_EXPORT BoundingSphere
_radius = -1.0f;
}
-#ifdef USE_DEPRECATED_API
- /** deprecated, use valid() instead.*/
- inline const bool isValid() const { return _radius>=0.0f; }
-#endif
/** return true if the bounding sphere contains valid values,
false if the bounding sphere is effectively unset.*/
inline const bool valid() const { return _radius>=0.0f; }
diff --git a/include/osg/CopyOp b/include/osg/CopyOp
index e2702a3d9..0b48e694f 100644
--- a/include/osg/CopyOp
+++ b/include/osg/CopyOp
@@ -13,7 +13,7 @@ class Referenced;
class Object;
class Image;
//class Texture;
-class TextureBase;
+class Texture;
class StateSet;
class StateAttribute;
class Node;
@@ -54,8 +54,7 @@ class SG_EXPORT CopyOp
virtual Drawable* operator() (const Drawable* drawable) const;
virtual StateSet* operator() (const StateSet* stateset) const;
virtual StateAttribute* operator() (const StateAttribute* attr) const;
-// virtual Texture* operator() (const Texture* text) const;
- virtual TextureBase* operator() (const TextureBase* text) const;
+ virtual Texture* operator() (const Texture* text) const;
virtual Image* operator() (const Image* image) const;
virtual Array* operator() (const Array* image) const;
virtual Primitive* operator() (const Primitive* image) const;
diff --git a/include/osg/EarthSky b/include/osg/EarthSky
deleted file mode 100644
index 17e3e354b..000000000
--- a/include/osg/EarthSky
+++ /dev/null
@@ -1,18 +0,0 @@
-//C++ header - Open Scene Graph - Copyright (C) 1998-2002 Robert Osfield
-//Distributed under the terms of the GNU Library General Public License (LGPL)
-//as published by the Free Software Foundation.
-
-#ifndef OSG_EARTHSKY
-#define OSG_EARTHSKY 1
-
-#include
-
-namespace osg {
-
-#ifdef USE_DEPRECATED_API
-typedef ClearNode EarthSky;
-#endif
-
-}
-
-#endif
diff --git a/include/osg/Matrix b/include/osg/Matrix
index 5ff9af97f..7fe53ba12 100644
--- a/include/osg/Matrix
+++ b/include/osg/Matrix
@@ -167,17 +167,6 @@ class SG_EXPORT Matrix : public Object
inline static Matrix lookAt(const Vec3& eye,const Vec3& center,const Vec3& up);
-#ifdef USE_DEPRECATED_API
- /** make a rotation Matrix from euler angles.
- * assume Z up, Y north, X east and euler convention
- * as per Open Flight & Performer.
- * Applies a positive rotation about Y axis for roll,
- * then applies a positive roation about X for pitch,
- * and finally a negative rotation about the Z axis.*/
- void makeRotate( float heading, float pitch, float roll); //Euler angles
-
- inline static Matrix rotate( float heading, float pitch, float roll);
-#endif
inline Vec3 preMult( const Vec3& v ) const;
@@ -299,14 +288,6 @@ inline Matrix Matrix::rotate(float angle, const Vec3& axis )
m.makeRotate(angle,axis);
return m;
}
-#ifdef USE_DEPRECATED_API
-inline Matrix Matrix::rotate(float heading, float pitch, float roll)
-{
- Matrix m;
- m.makeRotate(heading,pitch,roll);
- return m;
-}
-#endif
inline Matrix Matrix::rotate( float angle1, const Vec3& axis1,
float angle2, const Vec3& axis2,
float angle3, const Vec3& axis3)
diff --git a/include/osg/Quat b/include/osg/Quat
index 929bc52d6..651066cbe 100644
--- a/include/osg/Quat
+++ b/include/osg/Quat
@@ -225,18 +225,8 @@ class SG_EXPORT Quat
Watch out for the two special cases of when the vectors
are co-incident or opposite in direction.*/
void makeRotate( const Vec3& vec1, const Vec3& vec2 );
-
-#ifdef USE_DEPRECATED_API
- /** make a rotation Quat from euler angles.
- * assume Z up, Y north, X east and euler convention
- * as per Open Flight & Performer.
- * Applies a positive rotation about Y axis for roll,
- * then applies a positive roation about X for pitch,
- * and finally a negative rotation about the Z axis.*/
- void makeRotate( float heading, float pitch, float roll);
-#endif
- /** Return the angle and vector components represented by the quaternion.*/
+ /** Return the angle and vector components represented by the quaternion.*/
void getRotate ( float& angle, float& x, float& y, float& z ) const;
/** Return the angle and vector represented by the quaternion.*/
void getRotate ( float& angle, Vec3& vec ) const;
diff --git a/include/osg/StateAttribute b/include/osg/StateAttribute
index 0e7b793be..8dab1fc3f 100644
--- a/include/osg/StateAttribute
+++ b/include/osg/StateAttribute
@@ -82,12 +82,6 @@ class SG_EXPORT StateAttribute : public Object
OVERRIDE = 0x2,
/** Protecting of GLMode's os StateAttributes is enabled, so that state from above connot override this and below state.*/
PROTECTED = 0x4,
-#ifdef USE_DEPRECATED_API
- /** Equivilant to OFF | OVERRIDE.*/
- OVERRIDE_OFF = 0x2,
- /** Equivilant to ON | OVERRIDE.*/
- OVERRIDE_ON = 0x3,
-#endif
/** means that GLMode or StateAttribute should in inherited from above.*/
INHERIT = 0x8
};
diff --git a/include/osg/Texture b/include/osg/Texture
index 8027e1696..8575f3c2f 100644
--- a/include/osg/Texture
+++ b/include/osg/Texture
@@ -2,216 +2,282 @@
//Distributed under the terms of the GNU Library General Public License (LGPL)
//as published by the Free Software Foundation.
-// -*-c++-*-
-
-//#define TEXTURE_USE_DEPRECATED_API
-#ifdef TEXTURE_USE_DEPRECATED_API
-
#ifndef OSG_TEXTURE
#define OSG_TEXTURE 1
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include