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

A texture resource. More...

#include <textureset.h>

Inheritance diagram for Stark::Resources::TextureSet:
Collaboration diagram for Stark::Resources::TextureSet:

List of all members.

Public Types

enum  SubType { kTextureNormal = 1, kTextureFace = 2 }

Public Member Functions

 TextureSet (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~TextureSet ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void onPostRead () override
 Called when the node's initialization is complete.
Gfx::TextureSetgetTexture ()
 Obtain the texture to be rendered.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kTextureSet

Protected Member Functions

void printData () override

Protected Attributes

Common::String _filename
Common::String _archiveName
Gfx::TextureSet_textureSet

Detailed Description

A texture resource.

Used by items to provide textures to meshes

Definition at line 47 of file textureset.h.


Member Enumeration Documentation

Enumerator:
kTextureNormal 
kTextureFace 

Definition at line 51 of file textureset.h.


Constructor & Destructor Documentation

Stark::Resources::TextureSet::TextureSet ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 38 of file textureset.cpp.

Stark::Resources::TextureSet::~TextureSet (  )  [virtual]

Definition at line 34 of file textureset.cpp.


Member Function Documentation

Gfx::TextureSet * Stark::Resources::TextureSet::getTexture (  ) 

Obtain the texture to be rendered.

Definition at line 44 of file textureset.cpp.

void Stark::Resources::TextureSet::onPostRead (  )  [override, virtual]

Called when the node's initialization is complete.

Allows to load additional data from file.

Reimplemented from Stark::Resources::Object.

Definition at line 53 of file textureset.cpp.

void Stark::Resources::TextureSet::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Definition at line 61 of file textureset.cpp.

void Stark::Resources::TextureSet::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 48 of file textureset.cpp.


Member Data Documentation

Definition at line 69 of file textureset.h.

const Type::ResourceType Stark::Resources::TextureSet::TYPE = Type::kTextureSet [static]

Definition at line 49 of file textureset.h.


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


Generated on Sat Mar 16 2019 05:07:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge