Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Scenes Class Reference

#include <Scene.hpp>

Public Member Functions

 Scenes (Application *app)
 
Sceneget (string const &name)
 
void drawAll (DrawArgs &args)
 

Private Types

typedef map< string,
unique_ptr< Scene > > 
mesh_map
 

Private Attributes

mesh_map m_scenes
 
Applicationm_app
 
Shaderm_shader
 

Detailed Description

Scenes is a collection of Scene-objects. They can be accessed by name, where two scenes having the same name are guaranteed to be loaded only once.

Definition at line 392 of file Scene.hpp.

Member Typedef Documentation

typedef map<string,unique_ptr<Scene> > mesh_map
private

Definition at line 394 of file Scene.hpp.

Constructor & Destructor Documentation

Scenes ( Application app)

Constructs a Scenes-object

Parameters
appThe global application

Definition at line 814 of file Scene.cpp.

Member Function Documentation

void drawAll ( DrawArgs args)

Draws all Scene-instances hosted by this object.

Parameters
argsThe DrawArgs that should be used for this rendering

Definition at line 842 of file Scene.cpp.

Scene * get ( string const &  name)

Returns the scene-object with the given (file-)name. If the object was not loaded jet, it will be loaded and then returned.

Parameters
nameThe (file-)name of the scene
Returns
The requested scene

Definition at line 829 of file Scene.cpp.

Member Data Documentation

Application* m_app
private

The global application

Definition at line 397 of file Scene.hpp.

mesh_map m_scenes
private

A map of scenes by their names

Definition at line 396 of file Scene.hpp.

Shader* m_shader
private

The shader that is used to render all scene-objects

Definition at line 398 of file Scene.hpp.


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