Geno3D
A simple 3D visualisation library, using C++/SFML.
 All Classes Functions Variables
Public Member Functions | List of all members
Geno3D::Scene Class Referenceabstract

#include <Scene.hpp>

Inheritance diagram for Geno3D::Scene:
Geno3D::ObjScene

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
 

Detailed Description

The abstract scene class, defining update and draw behaviour. This class uses SFML bindings to draw to the render window.

Member Function Documentation

virtual void Geno3D::Scene::draw ( float  in)
pure virtual

Update once per frame. This allows efficiently rendering to the window.

Parameters
inan interpolation factor
See Also
update()
Engine::run()

Implemented in Geno3D::ObjScene.

virtual void Geno3D::Scene::handleInput ( )
pure virtual

Handle input events such as closing the window. This function is called every frame.

See Also
update()
draw()
Engine::run()

Implemented in Geno3D::ObjScene.

virtual void Geno3D::Scene::init ( sf::RenderWindow *  window,
sf::Vector2i  dims 
)
pure virtual

Set up the scene with information about the render window. This is called internally by the Engine class.

See Also
Engine

Implemented in Geno3D::ObjScene.

virtual void Geno3D::Scene::update ( float  dt)
pure virtual

Update at a "fixed-time" interval. This allows an update which is independent of framerate.

Parameters
dtthe time between consecutive calls of this function
See Also
draw()
Engine::run()

Implemented in Geno3D::ObjScene.


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