Texture Atlas

namespace tnt
class TextureAtlas

Public Functions

TextureAtlas(Window const &win, std::string_view file_, Rectangle const &area) noexcept
void Draw(Window const &win, Vector const &pos, Vector const &scale = {1.f, 1.f}, float angle = 0.f) noexcept

Private Members

const char *filename
Rectangle clip