xoreos  0.0.5
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Aurora::TextureAtlasFile Class Reference

#include <textureatlasfile.h>

Collaboration diagram for Aurora::TextureAtlasFile:
Collaboration graph
[legend]

Classes

struct  AtlasTexture
 

Public Member Functions

 TextureAtlasFile (Common::SeekableReadStream &stream)
 
 TextureAtlasFile (Common::UString name)
 
bool isAtlasTexture (const Common::UString &texture) const
 
void getAtlasTexture (const Common::UString &texture, Common::UString &textureFile, float &x, float &y, float &w, float &h) const
 

Private Member Functions

void load (Common::SeekableReadStream &stream)
 

Private Attributes

std::map< Common::UString, AtlasTexture_atlasTextures
 

Detailed Description

Definition at line 33 of file textureatlasfile.h.

Constructor & Destructor Documentation

◆ TextureAtlasFile() [1/2]

Aurora::TextureAtlasFile::TextureAtlasFile ( Common::SeekableReadStream stream)

Definition at line 42 of file textureatlasfile.cpp.

References load().

Here is the call graph for this function:

◆ TextureAtlasFile() [2/2]

Aurora::TextureAtlasFile::TextureAtlasFile ( Common::UString  name)

Definition at line 37 of file textureatlasfile.cpp.

References Aurora::kFileTypeXML, load(), and ResMan.

Here is the call graph for this function:

Member Function Documentation

◆ getAtlasTexture()

void Aurora::TextureAtlasFile::getAtlasTexture ( const Common::UString texture,
Common::UString textureFile,
float &  x,
float &  y,
float &  w,
float &  h 
) const

◆ isAtlasTexture()

bool Aurora::TextureAtlasFile::isAtlasTexture ( const Common::UString texture) const

Definition at line 46 of file textureatlasfile.cpp.

References _atlasTextures.

◆ load()

void Aurora::TextureAtlasFile::load ( Common::SeekableReadStream stream)
private

Member Data Documentation

◆ _atlasTextures

std::map<Common::UString, AtlasTexture> Aurora::TextureAtlasFile::_atlasTextures
private

Definition at line 50 of file textureatlasfile.h.

Referenced by getAtlasTexture(), isAtlasTexture(), and load().


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