8 #ifndef RENDERINTERFACES_HPP_
9 #define RENDERINTERFACES_HPP_
28 virtual void load(
const std::string &filename) = 0;
33 template <
typename T,
template <
typename>
class M>
60 template <
class T,
template <
typename>
class rectT>
77 template <
typename MusicType>
88 virtual void load(
const std::string &filename) = 0;
97 template <
class T,
class TextuT,
template <
typename>
class rectT>
150 template <
class T,
class Vt,
class Et,
class D>
164 virtual void draw(
const D &drawable) = 0;
188 virtual void create(
int width,
int height,
const std::string &title) = 0;
192 virtual void initDebug() = 0;
193 virtual void shutdownDebug() = 0;
194 virtual void drawDebug() = 0;
Interface for clock.
Definition: RenderInterfaces.hpp:48
~IClock()=default
Destructor.
virtual T & getClock()=0
Get the clock stored.
Interface for event.
Definition: RenderInterfaces.hpp:122
virtual T & getEvent()=0
Get the event stored.
Interfaces for the text font.
Definition: RenderInterfaces.hpp:19
~IFont()=default
Destructor.
virtual void load(const std::string &filename)=0
Load the font.
virtual const T & getFont() const =0
Get the font that will be stored.
interface for music handling
Definition: RenderInterfaces.hpp:79
virtual void play()=0
play the loaded music
virtual void load(const std::string &filename)=0
Load music from a file.
virtual const MusicType & getMusic() const =0
Get the wrapped music instance.
~IMusic()=default
destructor
Interface for rectangle.
Definition: RenderInterfaces.hpp:35
~IRect()=default
Destructor.
virtual const M< T > getBaseRect() const =0
Get the rectangle stored.
Interface for sprite.
Definition: RenderInterfaces.hpp:99
virtual const T & getSprite() const =0
Get the sprite stored.
virtual void setPosition(const Vector2< float > position)=0
set the position of the sprite
virtual void setTextureRect(const IRect< int, rectT > &newRect)=0
set a new rect forof the sprite
~ISprite()=default
Destructor.
virtual void load(const ITexture< TextuT, rectT > &texture, bool resetRect=false)=0
load the sprite
Interface for texture.
Definition: RenderInterfaces.hpp:62
virtual const T & getTexture() const =0
Get the texture stored.
~ITexture()=default
Destructor.
virtual void load(const std::string &filename, const IRect< int, rectT > &area)=0
load the texture
Interface for view.
Definition: RenderInterfaces.hpp:133
virtual const T & getBaseView() const =0
Get the view stored.
virtual void setCenter(const Vector2< float > ¢er)=0
~IView()=default
Destructor.
virtual Vector2< float > getCenter() const =0
virtual void setViewPort(const Vector2< float > &startingPoint, float width, float height)=0
Interface for the window.
Definition: RenderInterfaces.hpp:152
virtual ~IWindow()=default
Destructor.
virtual void display()=0
display everything that has been drawn
virtual bool isOpen() const =0
check if the window is open
virtual void setFramerateLimit(const float rate)=0
Set the maximum framerate of the window.
virtual const T & getWindow() const =0
Get the window.
virtual void draw(const D &drawable)=0
draw a drawable on the window
virtual void setView(const IView< Vt > &view)=0
set a new view in the window
virtual bool pollEvent(IEvent< Et > &event)=0
pop the event on top of the event queue, if any, and return it.
virtual void create(int width, int height, const std::string &title)=0
create a new window
virtual T & getWindow()=0
Get the window.
virtual void close()=0
close the window
virtual void clear()=0
clear the window
Definition: AssetManager.hpp:15