Added .ive support for osg::Texture SourceFormat and SourceType

This commit is contained in:
Robert Osfield
2005-11-08 16:41:34 +00:00
parent da7f5e7e60
commit a70768b6e9
2 changed files with 13 additions and 1 deletions

View File

@@ -22,8 +22,9 @@
#define VERSION_0011 11
#define VERSION_0012 12
#define VERSION_0013 13
#define VERSION_0014 14
#define VERSION VERSION_0013
#define VERSION VERSION_0014
/* The BYTE_SEX tag is used to check the endian

View File

@@ -56,6 +56,12 @@ void Texture::write(DataOutputStream* out){
out->writeBool(_clientStorageHint);
out->writeBool(_resizeNonPowerOfTwoHint);
}
if ( out->getVersion() >= VERSION_0014 )
{
out->writeInt(_sourceFormat);
out->writeInt(_sourceType);
}
}
void Texture::read(DataInputStream* in)
@@ -101,6 +107,11 @@ void Texture::read(DataInputStream* in)
_resizeNonPowerOfTwoHint = in->readBool();
}
if ( in->getVersion() >= VERSION_0014 )
{
_sourceFormat = in->readInt();
_sourceType = in->readInt();
}
}
else
{