Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
Shader.hpp
Go to the documentation of this file.
1 
7 #ifndef SHADER_HPP
8 #define SHADER_HPP
9 
10 #include <string>
11 #include <GL/glew.h>
12 
13 class Shader
14 {
15 public:
19  Shader();
20 
24  ~Shader();
25 
31  GLuint Init(std::string fName);
32 
33 private:
34 
42  GLuint compile(GLuint type, const GLchar* source, std::string &fName);
43  GLuint m_progId;
44 };
45 
46 #endif
47 
48 
49 
Shader()
Default constructor.
Definition: Shader.cpp:28
~Shader()
Destructor.
Definition: Shader.cpp:34
Definition: Shader.hpp:13
GLuint Init(std::string fName)
A member function to initialize a shader.
Definition: Shader.cpp:38