#include <Scene.hpp>
Public Member Functions | |
virtual void | update (float dt)=0 |
virtual void | draw (float in)=0 |
virtual void | handleInput ()=0 |
virtual void | init (sf::RenderWindow *window, sf::Vector2i dims)=0 |
The abstract scene class, defining update and draw behaviour. This class uses SFML bindings to draw to the render window.
|
pure virtual |
Update once per frame. This allows efficiently rendering to the window.
in | an interpolation factor |
Implemented in Geno3D::ObjScene.
|
pure virtual |
Handle input events such as closing the window. This function is called every frame.
Implemented in Geno3D::ObjScene.
|
pure virtual |
Set up the scene with information about the render window. This is called internally by the Engine class.
Implemented in Geno3D::ObjScene.
|
pure virtual |
Update at a "fixed-time" interval. This allows an update which is independent of framerate.
dt | the time between consecutive calls of this function |
Implemented in Geno3D::ObjScene.