C:/Projekte/C++/FlowVIS_107/src/Shader.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "common.h"
00004 
00005 class Shader
00006 {
00007 public:
00008   // Default
00009   Shader(void);
00010 
00011   // Load shader at instantiation 
00012   Shader(const char* in_vert, const char* in_frag);
00013 
00014   // Delete shader
00015   ~Shader(void);
00016 
00017   // Load Shader later
00018   bool Load(const char* in_vert, const char* in_frag);
00019 
00020   void Bind();
00021   void Unbind();
00022   GLuint GetProgram();
00023 
00024 private:
00025   char* ReadFromFile(const char* shaderFile);
00026   void ProgramLog(GLuint obj);
00027   void ShaderLog(GLuint obj);
00028 
00029   GLuint m_program, m_vertex, m_fragment;
00030 
00031 };

Generated on Mon Jan 21 14:50:12 2008 for VisLU by  doxygen 1.5.4