21 #ifndef HX3D_GRAPHICS_ANIMATION 22 #define HX3D_GRAPHICS_ANIMATION 24 #include "hx3d/graphics/sprite.hpp" 25 #include "hx3d/graphics/texture_atlas.hpp" 70 std::vector<std::string> _frames;
void initialize(Ptr< TextureAtlas > atlas, std::vector< std::string > frames, float speed)
Initialize an animation with an atlas, frames and a speed.
void update(float delta)
Update the animation.
Animation()
Create an uninitialized animation.
Animated texture-atlas based sprite.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.