ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Formats::Texture Class Reference

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

#include <tm.h>

Inheritance diagram for Stark::Formats::Texture:
Collaboration diagram for Stark::Formats::Texture:

List of all members.

Public Member Functions

 Texture ()
 ~Texture () override
Common::String getName () const
Gfx::TextureacquireTexturePointer ()
 Return a pointer to a texture ready for rendering.
Graphics::SurfacegetSurface () const
 Return a RGBA copy of the pixel data.
void readData (ArchiveReadStream *stream, uint32 dataLength) override
 Used to read the object data from the stream.

Static Public Attributes

static const uint32 TYPE = kTextureSetTexture

Private Attributes

Common::String _name
Gfx::Texture_texture
Graphics::Surface _surface
byte _u

Detailed Description

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

Textures have mipmaps.

Definition at line 72 of file tm.h.


Constructor & Destructor Documentation

Stark::Formats::Texture::Texture (  ) 

Definition at line 71 of file tm.cpp.

Stark::Formats::Texture::~Texture (  )  [override]

Definition at line 78 of file tm.cpp.


Member Function Documentation

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.

Definition at line 114 of file tm.cpp.

Common::String Stark::Formats::Texture::getName (  )  const [inline]

Definition at line 79 of file tm.h.

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

Return a RGBA copy of the pixel data.

Definition at line 121 of file tm.cpp.

void Stark::Formats::Texture::readData ( ArchiveReadStream stream,
uint32  dataLength 
) [override, virtual]

Used to read the object data from the stream.

Implements Stark::Formats::BiffObject.

Definition at line 83 of file tm.cpp.


Member Data Documentation

Definition at line 99 of file tm.h.

Definition at line 101 of file tm.h.

Definition at line 100 of file tm.h.

Definition at line 102 of file tm.h.

const uint32 Stark::Formats::Texture::TYPE = kTextureSetTexture [static]

Definition at line 74 of file tm.h.


The documentation for this class was generated from the following files:
  • engines/stark/formats/tm.h
  • engines/stark/formats/tm.cpp


Generated on Sat Nov 16 2019 05:03:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge