Created a nice utility library for doing animations, and used it in the ritual crafting UI.
This commit is contained in:
parent
0a40135f5d
commit
1aa6674e42
14 changed files with 213 additions and 150 deletions
14
animation.hpp
Normal file
14
animation.hpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
#include "components.hpp"
|
||||
#include "textures.hpp"
|
||||
#include "easings.hpp"
|
||||
|
||||
namespace animation {
|
||||
struct AnimationManager {
|
||||
std::unordered_map<std::string, components::Animation> animations;
|
||||
};
|
||||
|
||||
bool apply(components::Animation& anim, textures::SpriteTexture& target);
|
||||
void init();
|
||||
components::Animation load(std::string name);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue