From Farshid Lashkari, bumped IVE version number to 9, and added support in Texture for
_borderWidth _useHardwareMipMapGeneration _unrefImageDataAfterApply _clientStorageHint _resizeNonPowerOfTwoHint
This commit is contained in:
parent
d70657b18f
commit
aa61f87abe
@ -17,9 +17,9 @@
|
||||
#define VERSION_0007 7
|
||||
|
||||
#define VERSION_0008 8
|
||||
#define VERSION_0009 9
|
||||
|
||||
|
||||
#define VERSION VERSION_0008
|
||||
#define VERSION VERSION_0009
|
||||
|
||||
|
||||
/* The BYTE_SEX tag is used to check the endian
|
||||
|
@ -47,6 +47,15 @@ void Texture::write(DataOutputStream* out){
|
||||
{
|
||||
out->writeInt(_internalFormat);
|
||||
}
|
||||
|
||||
if ( out->getVersion() >= VERSION_0009 )
|
||||
{
|
||||
out->writeInt(_borderWidth);
|
||||
out->writeBool(_useHardwareMipMapGeneration);
|
||||
out->writeBool(_unrefImageDataAfterApply);
|
||||
out->writeBool(_clientStorageHint);
|
||||
out->writeBool(_resizeNonPowerOfTwoHint);
|
||||
}
|
||||
}
|
||||
|
||||
void Texture::read(DataInputStream* in)
|
||||
@ -83,6 +92,15 @@ void Texture::read(DataInputStream* in)
|
||||
_internalFormat = in->readInt();
|
||||
}
|
||||
|
||||
if ( in->getVersion() >= VERSION_0009 )
|
||||
{
|
||||
_borderWidth = in->readInt();
|
||||
_useHardwareMipMapGeneration = in->readBool();
|
||||
_unrefImageDataAfterApply = in->readBool();
|
||||
_clientStorageHint = in->readBool();
|
||||
_resizeNonPowerOfTwoHint = in->readBool();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user