![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <Texture.hpp>
Public Member Functions | |
Textures () | |
virtual | ~Textures () |
Texture * | get (string const &name) |
Private Attributes | |
map< string, unique_ptr < Texture > > | m_textures |
Textures is a collection that manages Texture-objects. They can be accessed by name, where two texutres having the same name are guaranteed to be loaded only once.
Definition at line 54 of file Texture.hpp.
Textures | ( | ) |
Constructs a Textures-object
Definition at line 63 of file Texture.cpp.
|
virtual |
Destructs a Textures-object
Definition at line 67 of file Texture.cpp.
Texture * get | ( | string const & | name | ) |
Returns the texture-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 texture |
Definition at line 71 of file Texture.cpp.
|
private |
A map of textures by their names
Definition at line 56 of file Texture.hpp.