void removeTexture(Texture *texture)
Remove texture.
unordered_map< Texture *, int > textureReferenceCounter
vector< int > freeTextureIds
const AtlasTexture * getAtlasTexture(int textureIdx)
Returns specific atlas texture information within atlas.
TextureAtlas(const string &id)
Public constructor.
unordered_map< Texture *, int > textureToAtlasTextureIdxMapping
unordered_map< int, AtlasTexture > atlasTextureIdxToAtlasTextureMapping
int addTexture(Texture *texture)
Add texture.
static constexpr bool VERBOSE
int getTextureIdx(Texture *texture)
Returns specific atlas texture index within atlas.
static constexpr int TEXTURE_IDX_NONE
Texture * getAtlasTexture()