hx3d
1
2D/3D Simple Game Framework
|
Multi-elements texture atlas. More...
#include <texture_atlas.hpp>
Public Member Functions | |
TextureAtlas (std::string pathToAtlas) | |
Load an atlas from a path. More... | |
TextureRegion & | getRegion (std::string name) |
Get a region following a name. More... | |
Multi-elements texture atlas.
One texture in memory, multiple objects !
Definition at line 39 of file texture_atlas.hpp.
hx3d::graphics::TextureAtlas::TextureAtlas | ( | std::string | pathToAtlas | ) |
Load an atlas from a path.
pathToAtlas | Path to atlas |
Definition at line 31 of file texture_atlas.cpp.
TextureRegion & hx3d::graphics::TextureAtlas::getRegion | ( | std::string | name | ) |
Get a region following a name.
name | Region name |
Definition at line 35 of file texture_atlas.cpp.