|
R-Type
|
Interface for the window. More...
#include <RenderInterfaces.hpp>
Public Member Functions | |
| virtual | ~IWindow ()=default |
| Destructor. More... | |
| virtual const T & | getWindow () const =0 |
| Get the window. More... | |
| virtual T & | getWindow ()=0 |
| Get the window. More... | |
| virtual void | draw (const D &drawable)=0 |
| draw a drawable on the window More... | |
| virtual void | setView (const IView< Vt > &view)=0 |
| set a new view in the window More... | |
| virtual void | setFramerateLimit (const float rate)=0 |
| Set the maximum framerate of the window. More... | |
| virtual bool | isOpen () const =0 |
| check if the window is open More... | |
| virtual bool | pollEvent (IEvent< Et > &event)=0 |
| pop the event on top of the event queue, if any, and return it. More... | |
| virtual void | close ()=0 |
| close the window More... | |
| virtual void | display ()=0 |
| display everything that has been drawn More... | |
| virtual void | clear ()=0 |
| clear the window More... | |
| virtual void | create (int width, int height, const std::string &title)=0 |
| create a new window More... | |
Interface for the window.
| T | type of the window |
| Vt | type of view |
| Et | type of event |
| D | type of drawable |
|
virtualdefault |
Destructor.
|
pure virtual |
clear the window
Implemented in GameEngine::Window.
|
pure virtual |
close the window
Implemented in GameEngine::Window.
|
pure virtual |
create a new window
| width | width of the window |
| height | height of the window |
| title | title of the window |
Implemented in GameEngine::Window.
|
pure virtual |
display everything that has been drawn
Implemented in GameEngine::Window.
|
pure virtual |
draw a drawable on the window
| drawable | object that can be draw |
Implemented in GameEngine::Window.
|
pure virtual |
|
pure virtual |
|
pure virtual |
check if the window is open
Implemented in GameEngine::Window.
|
pure virtual |
pop the event on top of the event queue, if any, and return it.
| event | class that take the event |
Implemented in GameEngine::Window.
|
pure virtual |
Set the maximum framerate of the window.
| rate | the maximum framerate |
Implemented in GameEngine::Window.
|
pure virtual |