![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <SimpleMesh.hpp>
Public Member Functions | |
| SimpleMeshes (Application *app) | |
| template<typename t_fnc > | |
| SimpleMesh * | create (string const &name, t_fnc fnc) |
| SimpleMesh * | get (string const &name) |
| void | drawAll (DrawArgs &args) |
Private Types | |
| typedef map< string, unique_ptr< SimpleMesh > > | mesh_map |
Private Attributes | |
| mesh_map | m_meshes |
| Application * | m_app |
| Shader * | m_shader |
SimpleMeshes is a collection of SimpleMesh-instances. It manages the creation, accessing, destruction and rendering of these.
Definition at line 147 of file SimpleMesh.hpp.
|
private |
Definition at line 149 of file SimpleMesh.hpp.
| SimpleMeshes | ( | Application * | app | ) |
Constructs a SimpleMeshes instance.
| app | The global application |
Definition at line 157 of file SimpleMesh.cpp.
|
inline |
Creates a new SimpleMesh and returns it.
| name | The name of the mesh |
| fnc | A function that takes pointers to a vector of positions, normals, uvs and indicses and fills them |
Definition at line 169 of file SimpleMesh.hpp.
| void drawAll | ( | DrawArgs & | args | ) |
Draws all SimpleMesh-instances hosted by this object.
| args | The DrawArgs that should be used for this rendering |
Definition at line 186 of file SimpleMesh.cpp.
| SimpleMesh * get | ( | string const & | name | ) |
Accesses an existing SimpleMesh and returns it.
| name | The name of the mesh |
Definition at line 176 of file SimpleMesh.cpp.
|
private |
The global application
Definition at line 152 of file SimpleMesh.hpp.
|
private |
A map of meshes indiced by their name
Definition at line 151 of file SimpleMesh.hpp.
|
private |
The shader which is used to render all SimpleMesh objects
Definition at line 153 of file SimpleMesh.hpp.
1.8.7