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:
Robert Osfield 2005-05-10 10:01:13 +00:00
parent d70657b18f
commit aa61f87abe
2 changed files with 20 additions and 2 deletions

View File

@ -17,9 +17,9 @@
#define VERSION_0007 7 #define VERSION_0007 7
#define VERSION_0008 8 #define VERSION_0008 8
#define VERSION_0009 9
#define VERSION VERSION_0009
#define VERSION VERSION_0008
/* The BYTE_SEX tag is used to check the endian /* The BYTE_SEX tag is used to check the endian

View File

@ -47,6 +47,15 @@ void Texture::write(DataOutputStream* out){
{ {
out->writeInt(_internalFormat); 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) void Texture::read(DataInputStream* in)
@ -83,6 +92,15 @@ void Texture::read(DataInputStream* in)
_internalFormat = in->readInt(); _internalFormat = in->readInt();
} }
if ( in->getVersion() >= VERSION_0009 )
{
_borderWidth = in->readInt();
_useHardwareMipMapGeneration = in->readBool();
_unrefImageDataAfterApply = in->readBool();
_clientStorageHint = in->readBool();
_resizeNonPowerOfTwoHint = in->readBool();
}
} }
else else
{ {