![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <Shader.hpp>
Public Member Functions | |
Shader * | get (string const &name) |
Private Attributes | |
map< string, unique_ptr< Shader > > | m_shaders |
Shaders is a collection that manages Shader-objects. They can be accessed by name, where two shaders having the same name are guaranteed to be loaded only once.
Definition at line 134 of file Shader.hpp.
Shader * get | ( | string const & | name | ) |
Returns the shader-object with the given (file-)name. If the object was not loaded jet, it will be loaded and then returned.
name | The (file-)name of the shader |
Definition at line 139 of file Shader.cpp.
|
private |
A map of shaders by their names
Definition at line 136 of file Shader.hpp.