![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <Application.hpp>
Public Member Functions | |
| Configuration & | getConfig () |
| Window & | getWindow () |
| Textures & | getTextures () |
| Shaders & | getShaders () |
| SceneGraph & | getSceneGraph () |
| SceneFBO & | getSceneFBO () |
| SimpleMeshes & | getSimpleMeshes () |
| Scenes & | getScenes () |
| Camera & | getCamera () |
| SpriteRenderer & | getSprites () |
| TextRenderer & | getText () |
| Picker & | getPicker () |
| GameLogic & | getGameLogic () |
| OwnCursor & | getOwnCursor () |
| TaskManager & | getTasks () |
| vec4 const & | getBackColor () const |
| void | setBackColor (vec4 const &color) |
| Application () | |
| void | run () |
| void | onWindowSizeChanged (vec2 const &size) |
| void | onKeyStateChanged (int key, bool pressed) |
Private Member Functions | |
| void | render (double time, double timeDelta) |
| void | update (double time, double timeDelta) |
Application is the class that hosts the whole program. It may only be intanciated once.
Definition at line 10 of file Application.hpp.
| Application | ( | ) |
Constructs an Application object.
Definition at line 4 of file Application.cpp.
|
inline |
Accessor to the windows back color.
Definition at line 112 of file Application.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
Accessor to the own cursor implementation.
Definition at line 101 of file Application.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
Accessor to scenes-manager.
Definition at line 71 of file Application.hpp.
|
inline |
Accessor to the shader-manager.
Definition at line 51 of file Application.hpp.
|
inline |
Accessor to the simple-meshes-manager.
Definition at line 66 of file Application.hpp.
|
inline |
Accessor to the sprite-renderer.
Definition at line 81 of file Application.hpp.
|
inline |
Accessor to the task-manager for parallel tasks.
Definition at line 106 of file Application.hpp.
|
inline |
Accessor to the text-renderer.
Definition at line 86 of file Application.hpp.
|
inline |
Accessor to the texture-manager.
Definition at line 46 of file Application.hpp.
|
inline |
| void onKeyStateChanged | ( | int | key, |
| bool | pressed | ||
| ) |
Callback for key-state-changes. Distributes the callback to all modules that need it.
| key | The key |
| pressed | Wheter the key is pressed or released |
Definition at line 81 of file Application.cpp.
| void onWindowSizeChanged | ( | vec2 const & | size | ) |
Callback for window-size-changes. Distributes the callback to all modules that need it.
| size | The new window-size. |
Definition at line 75 of file Application.cpp.
|
private |
Renders a frame.
| time | The absolute frame time |
| timeDelta | The time since the last frame |
Definition at line 65 of file Application.cpp.
| void run | ( | ) |
Runs the program. This call is blocking until the appliation will be terminated.
Definition at line 23 of file Application.cpp.
|
inline |
Accessor to the windows back color.
| color | The new windows back color. |
Definition at line 118 of file Application.hpp.
|
private |
Updates all data-strutures.
| time | The absolute frame time |
| timeDelta | The time since the last frame |
Definition at line 48 of file Application.cpp.
|
private |
The windows back-color
Definition at line 26 of file Application.hpp.
|
private |
The camera
Definition at line 20 of file Application.hpp.
|
private |
The config-file
Definition at line 12 of file Application.hpp.
|
private |
The scene-FBO
Definition at line 16 of file Application.hpp.
|
private |
The game logic
Definition at line 25 of file Application.hpp.
|
private |
The HUD
Definition at line 24 of file Application.hpp.
|
private |
The own cursor implementation
Definition at line 27 of file Application.hpp.
|
private |
The picker
Definition at line 23 of file Application.hpp.
|
private |
The scene-graph
Definition at line 17 of file Application.hpp.
|
private |
The scene-manager
Definition at line 19 of file Application.hpp.
|
private |
Shader-manager
Definition at line 15 of file Application.hpp.
|
private |
The simple-meshes-manager
Definition at line 18 of file Application.hpp.
|
private |
The sprite-renderer
Definition at line 21 of file Application.hpp.
|
private |
The task-manager for parallel tasks
Definition at line 28 of file Application.hpp.
|
private |
The text-renderer
Definition at line 22 of file Application.hpp.
|
private |
Texture-manager
Definition at line 14 of file Application.hpp.
|
private |
The window
Definition at line 13 of file Application.hpp.
1.8.7