Animation class final

Constructors, destructors, conversion operators

Animation(const std::string& texture_id, const int width, const int height, const int num_frames = 1, const bool is_loop = true)

Public functions

void draw(const b2Vec2& position, const float angle = 0, const bool is_flip = false, const int zoom = 1) const
void update()
void start()
void restart()
void stop()
auto isRunning() const -> bool
auto isFinished() const -> bool
auto getWidth() const -> int
auto getHeight() const -> int