#include <tm.h>
Public Member Functions | |
Common::String | getName () const |
Gfx::Texture * | acquireTexturePointer () |
Graphics::Surface * | getSurface () const |
void | readData (ArchiveReadStream *stream, uint32 dataLength) override |
Public Member Functions inherited from Stark::Formats::BiffObject | |
uint32 | getType () const |
template<class T > | |
Common::Array< T * > | listChildrenRecursive () |
void | addChild (BiffObject *child) |
Static Public Attributes | |
static const uint32 | TYPE = kTextureSetTexture |
Additional Inherited Members | |
Protected Attributes inherited from Stark::Formats::BiffObject | |
uint32 | _type |
uint32 | _u3 |
uint32 | _version |
BiffObject * | _parent |
Common::Array< BiffObject * > | _children |
A texture contained in a '.tm' texture set archive
Textures have mipmaps.
Gfx::Texture* Stark::Formats::Texture::acquireTexturePointer | ( | ) |
Return a pointer to a texture ready for rendering
The caller takes ownership of the texture. This method can only be called successfully once per texture. Subsequent calls return a null pointer.
Graphics::Surface* Stark::Formats::Texture::getSurface | ( | ) | const |
Return a RGBA copy of the pixel data
|
overridevirtual |
Used to read the object data from the stream
Implements Stark::Formats::BiffObject.