GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaterialLoader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_MATERIAL_LOADER_HPP
2 #define RADIX_MATERIAL_LOADER_HPP
3 
4 #include <string>
5 #include <map>
6 
8 
9 namespace radix {
10 
12 public:
13  static const Material loadFromXML(const std::string &path);
14  static const Material& getMaterial(const std::string &name);
15  static const Material& fromTexture(const std::string &name);
16 private:
17  static std::map<std::string, Material> materialCache;
18 };
19 
20 } /* namespace radix */
21 
22 #endif /* RADIX_MATERIAL_LOADER_HPP */
Definition: GameController.hpp:7
static const Material loadFromXML(const std::string &path)
Definition: MaterialLoader.cpp:15
Definition: MaterialLoader.hpp:11
static const Material & getMaterial(const std::string &name)
Definition: MaterialLoader.cpp:111
static const Material & fromTexture(const std::string &name)
Definition: MaterialLoader.cpp:123
static std::map< std::string, Material > materialCache
Definition: MaterialLoader.hpp:17
Definition: Material.hpp:11