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
|
|
@ -3,6 +3,7 @@
|
|||
#include <chrono>
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/Shader.hpp>
|
||||
#include <SFML/System/Clock.hpp>
|
||||
#include <SFML/System/Time.hpp>
|
||||
#include <functional>
|
||||
|
|
@ -116,6 +117,7 @@ namespace animate2 {
|
|||
bool has_form(const std::string& as_form);
|
||||
void set_form(const std::string& form);
|
||||
void apply(sf::Sprite& sprite);
|
||||
void apply_effect(std::shared_ptr<sf::Shader> effect);
|
||||
void update_frame();
|
||||
void update();
|
||||
void motion(sf::Sprite& sprite, sf::Vector2f pos, sf::Vector2f scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue