Can now apply a shader using the animation's timer but not sure if there should be shaders on animations or outside or both.
This commit is contained in:
parent
0d481a5ab7
commit
80f100f223
5 changed files with 29 additions and 10 deletions
|
|
@ -18,6 +18,7 @@ namespace animator {
|
|||
PLAY_STOP=__LINE__,
|
||||
NEXT_FORM=__LINE__,
|
||||
PREV_FORM=__LINE__,
|
||||
TEST_SHADER=__LINE__,
|
||||
RELOAD=__LINE__,
|
||||
};
|
||||
|
||||
|
|
@ -26,6 +27,8 @@ namespace animator {
|
|||
struct UI {
|
||||
guecs::UI $ui;
|
||||
guecs::UI $overlay;
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
std::shared_ptr<sf::Shader> effect = nullptr;
|
||||
bool $initialized_this_sucks_ass = false;
|
||||
|
||||
void button(const std::string& name, std::function<void(guecs::Modifiers mods)> cb);
|
||||
|
|
@ -44,7 +47,6 @@ namespace animator {
|
|||
sf::RenderWindow $window;
|
||||
sf::Vector2f $pos{0,0};
|
||||
sf::Vector2f $scale{0,0};
|
||||
std::shared_ptr<sf::Sprite> $sprite = nullptr;
|
||||
animate2::Animate2 $anim;
|
||||
std::string $sprite_name="";
|
||||
std::string $anim_name="";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue