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
ShaderLoader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_SHADERLOADER_HPP
2 #define RADIX_SHADERLOADER_HPP
3 
4 #include <map>
5 #include <string>
6 
8 
9 namespace radix {
10 
11 class ShaderLoader {
12 public:
13  static Shader& getShader(const std::string &fragpath, const std::string &vertpath = "");
14  static unsigned int loadShader(const std::string &path, Shader::Type type);
15 private:
16  static std::map<std::pair<std::string, std::string>, Shader> shaderCache;
17 };
18 
19 } /* namespace radix */
20 
21 #endif /* RADIX_SHADERLOADER_HPP */
Type
Definition: Shader.hpp:11
Definition: GameController.hpp:7
static Shader & getShader(const std::string &fragpath, const std::string &vertpath="")
Definition: ShaderLoader.cpp:18
static unsigned int loadShader(const std::string &path, Shader::Type type)
Definition: ShaderLoader.cpp:94
Definition: Shader.hpp:9
static std::map< std::pair< std::string, std::string >, Shader > shaderCache
Definition: ShaderLoader.hpp:16
Definition: ShaderLoader.hpp:11