Added .ive support for osg::Texture SourceFormat and SourceType
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user