VisLU Flow 0.1

src/Shader.h

00001 #ifndef SHADER_HPP
00002 #define SHADER_HPP
00003 
00004 #include "GL/glew.h"
00005 
00006 #include <string>
00007 
00008 class Shader {
00009 private:
00010         GLuint m_program;
00011         GLuint m_vertex;
00012         GLuint m_fragment;
00013 
00014         std::string m_filename;
00015 
00016         void compileSource(void);
00017         void linkProgram(void);
00018 public:
00019         Shader(std::string p_filename);
00020         ~Shader(void);
00021 
00022         GLint getUniformLocation(const std::string &p_location);
00023 
00024         void bind(void);
00025         void unbind(void);
00026 };
00027 
00028 #endif
 All Classes Functions Variables