TextureManager class final

Public static functions

static auto Instance() -> TextureManager&

Constructors, destructors, conversion operators

TextureManager(TextureManager const&) deleted

Public functions

auto operator=(TextureManager const&) -> TextureManager& deleted
auto load(const std::string& path, const std::string& id) -> bool
void draw(const std::string& id, const b2Vec2& position, const int width, const int height, const bool is_flip = false, const int zoom = 1) const
void drawFrame(const std::string& id, const b2Vec2& position, const int width, const int height, const int row, const int frame, const float angle = 0, const bool is_flip = false, const int zoom = 1) const
void drawTile(const std::string& id, const int margin, const int spacing, const b2Vec2& position, const int width, const int height, const int row, const int frame, const int zoom = 1) const
void clean()