void removeTexture(Texture *texture)
Remove texture.
unordered_map< Texture *, int > textureReferenceCounter
vector< int > freeTextureIds
unordered_map< Texture *, int > textureToAtlasTextureIdxMapping
int addTexture(Texture *texture)
Add texture.
static constexpr int ATLAS_TEXTURE_SIZE
int getTextureIdx(Texture *texture)
Returns specific atlas texture index within atlas.
static constexpr int TEXTURE_IDX_NONE
SimpleTextureAtlas(const string &id)
Public constructor.
static constexpr int ATLAS_TEXTURE_BORDER
unordered_map< int, Texture * > atlasTextureIdxToTextureMapping
Texture * getAtlasTexture()