eo/include/engine/animation.hpp

29 lines
583 B
C++
Raw Permalink Normal View History

2024-11-15 00:12:51 +00:00
#ifndef ANIMATION_HPP
#define ANIMATION_HPP
#include <iostream>
#include <engine.hpp>
#include <engine/object.hpp>
class Animation {
public:
Animation(
Engine *ref,
std::string slide_texture,
int cell_width,
int cell_height,
int cell_num,
float speed
);
void Cycle(float time, EngineObject* o);
private:
Engine *ref;
bgfx::TextureHandle slide_texture;
int cell_width;
int cell_height;
int cell_num;
float speed;
};
#endif