Skip to content

Commit

Permalink
Commented out the #define TEXTURE_USE_DEPRECATED_API from includ/osg/…
Browse files Browse the repository at this point in the history
…Texture

which forces the use of a typedef Texture2D Texture; in place of the orignal
texure implementation.
  • Loading branch information
robertosfield committed Aug 27, 2002
1 parent 7e1e8db commit 111f052
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
2 changes: 1 addition & 1 deletion include/osg/Texture
Expand Up @@ -4,7 +4,7 @@

// -*-c++-*-

#define TEXTURE_USE_DEPRECATED_API
//#define TEXTURE_USE_DEPRECATED_API
#ifdef TEXTURE_USE_DEPRECATED_API

#ifndef OSG_TEXTURE
Expand Down
22 changes: 0 additions & 22 deletions src/osgPlugins/osg/Texture.cpp
Expand Up @@ -318,26 +318,4 @@ const char* Texture_getSubloadModeStr(Texture::SubloadMode value)
}
return NULL;
}
#else

#include "osg/Texture2D"

#include "osgDB/Registry"
#include "osgDB/Input"
#include "osgDB/Output"

using namespace osg;
using namespace osgDB;

RegisterDotOsgWrapperProxy g_TextureProxy
(
osgNew osg::Texture2D,
"Texture",
"Object StateAttribute Texture2D TextureBase",
0,
0
);


#endif

15 changes: 14 additions & 1 deletion src/osgPlugins/osg/Texture2D.cpp
Expand Up @@ -20,6 +20,20 @@ const char* Texture2D_getInternalFormatModeStr(Texture2D::InternalFormatMode mod
bool Texture2D_matchInternalFormatStr(const char* str,int& value);
const char* Texture2D_getInternalFormatStr(int value);



#include "osg/Texture"
#ifndef TEXTURE_USE_DEPRECATED_API
RegisterDotOsgWrapperProxy g_TextureProxy
(
osgNew osg::Texture2D,
"Texture",
"Object StateAttribute Texture2D TextureBase",
0,
0
);
#endif

// register the read and write functions with the osgDB::Registry.
RegisterDotOsgWrapperProxy g_Texture2DProxy
(
Expand All @@ -30,7 +44,6 @@ RegisterDotOsgWrapperProxy g_Texture2DProxy
&Texture2D_writeLocalData
);


bool Texture2D_readLocalData(Object& obj, Input& fr)
{
bool iteratorAdvanced = false;
Expand Down

0 comments on commit 111f052

Please sign in to comment.