Removed files as they all have the incorrectly have the execution bit enabled, will add back in with this fixed.

This commit is contained in:
Robert Osfield
2010-01-28 08:58:05 +00:00
parent db275d7c26
commit 91f8306d63
103 changed files with 0 additions and 3902 deletions

View File

@@ -1,44 +0,0 @@
#include <osg/Texture2DArray>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
static bool checkImages( const osg::Texture2DArray& tex )
{
return tex.getNumImages()>0;
}
static bool readImages( osgDB::InputStream& is, osg::Texture2DArray& tex )
{
unsigned int size = 0; is >> size >> osgDB::BEGIN_BRACKET;
for ( unsigned int i=0; i<size; ++i )
{
osg::Image* image = is.readImage();
if ( image ) tex.setImage( i, image );
}
is >> osgDB::END_BRACKET;
return true;
}
static bool writeImages( osgDB::OutputStream& os, const osg::Texture2DArray& tex )
{
unsigned int size = tex.getNumImages();
os << size << osgDB::BEGIN_BRACKET << std::endl;
for ( unsigned int i=0; i<size; ++i )
{
os << tex.getImage(i);
}
os << osgDB::END_BRACKET << std::endl;
return true;
}
REGISTER_OBJECT_WRAPPER( Texture2DArray,
new osg::Texture2DArray,
osg::Texture2DArray,
"osg::Object osg::StateAttribute osg::Texture osg::Texture2DArray" )
{
ADD_USER_SERIALIZER( Images ); // _images
ADD_INT_SERIALIZER( TextureWidth, 0 ); // _textureWidth
ADD_INT_SERIALIZER( TextureHeight, 0 ); // _textureHeight
ADD_INT_SERIALIZER( TextureDepth, 0 ); // _textureDepth
}