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
Textures Class Reference

#include <Texture.hpp>

Public Member Functions

 Textures ()
 
virtual ~Textures ()
 
Textureget (string const &name)
 

Private Attributes

map< string, unique_ptr
< Texture > > 
m_textures
 

Detailed Description

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.

Constructor & Destructor Documentation

Textures ( )

Constructs a Textures-object

Definition at line 63 of file Texture.cpp.

~Textures ( )
virtual

Destructs a Textures-object

Definition at line 67 of file Texture.cpp.

Member Function Documentation

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.

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

Definition at line 71 of file Texture.cpp.

Member Data Documentation

map<string, unique_ptr<Texture> > m_textures
private

A map of textures by their names

Definition at line 56 of file Texture.hpp.


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