52 e.
add(
"Failed reading XEOSITEX file");
69 if ((pixelFormat != 3) && (pixelFormat != 4))
72 if (pixelFormat == 3) {
77 }
else if (pixelFormat == 4) {
98 for (
size_t i = 0; i <
_mipMaps.size(); i++) {
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
void add(const char *s,...) GCC_PRINTF(2
static const uint32 kITEXID
uint32 readUint32LE()
Read an unsigned 32-bit word stored in little endian (LSB first) order from the stream and return it...
XEOSITEX(Common::SeekableReadStream &xeositex)
static const uint32 kXEOSID
void resize(typename std::vector< T *>::size_type n, typename std::vector< T *>::value_type val=typename std::vector< T *>::value_type())
void load(Common::SeekableReadStream &xeositex)
Utility templates and functions for working with strings and streams.
Exception that provides a stack of explanations.
Basic exceptions to throw.
Utility templates and functions.
void readMipMaps(Common::SeekableReadStream &xeositex)
PixelFormatRaw _formatRaw
virtual size_t read(void *dataPtr, size_t dataSize)=0
Read data from the stream.
const Exception kReadError("Read error")
Exception when reading from a stream failed.
Our very own intermediate texture format.
Basic reading stream interfaces.
uint32 readUint32BE()
Read an unsigned 32-bit word stored in big endian (MSB first) order from the stream and return it...
UString debugTag(uint32 tag, bool trim)
Create an elaborate string from an integer tag, for debugging purposes.
void readHeader(Common::SeekableReadStream &xeositex)
const Features & getFeatures() const
Interface for a seekable & readable data stream.
byte readByte()
Read an unsigned byte from the stream and return it.