hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::TextureAtlas Class Reference

Multi-elements texture atlas. More...

#include <texture_atlas.hpp>

Public Member Functions

 TextureAtlas (std::string pathToAtlas)
 Load an atlas from a path. More...
 
TextureRegiongetRegion (std::string name)
 Get a region following a name. More...
 

Detailed Description

Multi-elements texture atlas.

One texture in memory, multiple objects !

Definition at line 39 of file texture_atlas.hpp.

Constructor & Destructor Documentation

hx3d::graphics::TextureAtlas::TextureAtlas ( std::string  pathToAtlas)

Load an atlas from a path.

Parameters
pathToAtlasPath to atlas

Definition at line 31 of file texture_atlas.cpp.

Member Function Documentation

TextureRegion & hx3d::graphics::TextureAtlas::getRegion ( std::string  name)

Get a region following a name.

Parameters
nameRegion name
Returns
TextureRegion

Definition at line 35 of file texture_atlas.cpp.


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