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 Attributes | List of all members
Shaders Class Reference

#include <Shader.hpp>

Public Member Functions

Shaderget (string const &name)
 

Private Attributes

map< string, unique_ptr< Shader > > m_shaders
 

Detailed Description

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.

Member Function Documentation

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.

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

Definition at line 139 of file Shader.cpp.

Member Data Documentation

map<string,unique_ptr<Shader> > m_shaders
private

A map of shaders by their names

Definition at line 136 of file Shader.hpp.


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