26 #ifndef _TGUI_ANIMATED_PICTURE_INCLUDED_
27 #define _TGUI_ANIMATED_PICTURE_INCLUDED_
47 AnimatedPicture(
const AnimatedPicture& copy);
53 virtual ~AnimatedPicture();
59 AnimatedPicture& operator= (
const AnimatedPicture& right);
65 virtual AnimatedPicture* clone();
83 virtual unsigned int addFrame(
const std::string& filename, sf::Time frameDurarion = sf::Time());
95 virtual void setSize(
float width,
float height);
101 virtual Vector2u getSize()
const;
107 virtual Vector2f getScaledSize()
const;
127 virtual void pause();
147 virtual void setFrame(
unsigned int frame);
155 virtual unsigned int getCurrentFrame()
const;
168 virtual void setFrameDuration(
unsigned int frame, sf::Time frameDuration = sf::Time());
176 virtual sf::Time getCurrentFrameDuration()
const;
182 virtual unsigned int getFrames()
const;
190 virtual std::vector<std::string> getLoadedFilenames()
const;
201 virtual void removeFrame(
unsigned int frame);
209 virtual void removeAllFrames();
215 virtual bool mouseOnObject(
float x,
float y);
224 virtual void update();
231 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
245 std::vector<sf::Texture*> m_Textures;
246 std::vector<sf::Sprite> m_Sprites;
247 std::vector<std::string> m_LoadedFilenames;
248 std::vector<sf::Time> m_FrameDuration;
250 unsigned int m_CurrentFrame;
260 #endif //_TGUI_ANIMATED_PICTURE_INCLUDED_
Load multiple images and add then behind each other to create a simple animation or even a movie...
Definition: AnimatedPicture.hpp:36
The parent struct for every object.
Definition: Objects.hpp:36
Parent object for all objects that need to access the internal clock of the window.
Definition: Objects.hpp:338