ScummVM API documentation
Stark::Formats::Texture Class Reference

#include <tm.h>

Inheritance diagram for Stark::Formats::Texture:
Stark::Formats::BiffObject

Public Member Functions

Common::String getName () const
 
Gfx::TextureacquireTexturePointer ()
 
Graphics::SurfacegetSurface () 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
 

Detailed Description

A texture contained in a '.tm' texture set archive

Textures have mipmaps.

Member Function Documentation

◆ acquireTexturePointer()

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.

◆ getSurface()

Graphics::Surface* Stark::Formats::Texture::getSurface ( ) const

Return a RGBA copy of the pixel data

◆ readData()

void Stark::Formats::Texture::readData ( ArchiveReadStream stream,
uint32  dataLength 
)
overridevirtual

Used to read the object data from the stream

Implements Stark::Formats::BiffObject.


The documentation for this class was generated from the following file: