Camera is now using animate2 but isn't actually using it yet. Just converted.
This commit is contained in:
parent
7bf7b25a10
commit
46cc21ec7b
8 changed files with 111 additions and 90 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/Shader.hpp>
|
||||
#include <SFML/Graphics/View.hpp>
|
||||
#include <SFML/System/Clock.hpp>
|
||||
#include <SFML/System/Time.hpp>
|
||||
#include <functional>
|
||||
|
|
@ -117,6 +118,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(sf::View& view_out, sf::Vector2f pos, sf::Vector2f size);
|
||||
void apply_effect(std::shared_ptr<sf::Shader> effect);
|
||||
void update();
|
||||
void motion(sf::Sprite& sprite, sf::Vector2f pos, sf::Vector2f scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue