sftools  2.0 dev
Bunch of tools for SFML application development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
sftools::FrameStream Class Referenceabstract

Abstract class for animation frames stream management. More...

#include <FrameStream.hpp>

+ Collaboration diagram for sftools::FrameStream:

Public Member Functions

virtual Frame getFrameAt (sf::Time time) const =0
 Seek and fetch a frame at a given point in time.
 
virtual ~FrameStream ()
 Virtual destructor.
 

Detailed Description

Abstract class for animation frames stream management.

See Also
Frame
LoopFrameStream
Animation

Definition at line 51 of file FrameStream.hpp.

Constructor & Destructor Documentation

virtual sftools::FrameStream::~FrameStream ( )
inlinevirtual

Virtual destructor.

Does nothing special. It's here for inheritance purposes.

Definition at line 72 of file FrameStream.hpp.

Member Function Documentation

virtual Frame sftools::FrameStream::getFrameAt ( sf::Time  time) const
pure virtual

Seek and fetch a frame at a given point in time.

Subclasses must implement this function in order to provide the Animation class all the tools required to render the animation.

Parameters
timetime elapsed since the start of the animation
Returns
the frame for the given point in time
See Also
LoopFrameStream::getFrameAt

Implemented in sftools::LoopFrameStream.


The documentation for this class was generated from the following file: