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
Shader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_SHADER_HPP
2 #define RADIX_SHADER_HPP
3 
4 #include <string>
5 #include <map>
6 
7 namespace radix {
8 
9 class Shader {
10 public:
11  enum Type {
15  };
16 
17  Shader(unsigned int handle) : handle(handle) { }
18  void bind() const;
19  void release() const;
20 
21  unsigned int handle;
22 
23  int uni(const std::string&);
24  int att(const std::string&);
25 private:
26 
27  std::map<std::string, int> locationMap;
28 };
29 
30 } /* namespace radix */
31 
32 #endif /* RADIX_SHADER_HPP */
Type
Definition: Shader.hpp:11
Definition: GameController.hpp:7
Shader(unsigned int handle)
Definition: Shader.hpp:17
void bind() const
Definition: Shader.cpp:7
unsigned int handle
Definition: Shader.hpp:21
Definition: Shader.hpp:14
void release() const
Definition: Shader.cpp:11
Definition: Shader.hpp:12
int uni(const std::string &)
Definition: Shader.cpp:15
Definition: Shader.hpp:9
int att(const std::string &)
Definition: Shader.cpp:29
Definition: Shader.hpp:13
std::map< std::string, int > locationMap
Definition: Shader.hpp:27