30 #ifndef EVOLVE_GLSL_SHADERS_H
31 #define EVOLVE_GLSL_SHADERS_H
40 GLSLShaders(): _program( 0 ), _shadersLoaded(
false ), _glewContext( 0 )
43 bool loadShaders(
const std::string &vShader,
44 const std::string &fShader,
45 const GLEWContext* glewContext );
49 GLhandleARB getProgram()
const {
return _program; }
50 const GLEWContext* glewGetContext()
const {
return _glewContext; }
55 const GLEWContext* _glewContext;
57 GLhandleARB _loadShader(
const std::string &shader, GLenum shaderType );
58 void _printLog( GLhandleARB shader,
const std::string &type );
60 bool _cleanupOnError( GLhandleARB vShader=0, GLhandleARB fShader=0 );
64 #endif // EVOLVE_GLSL_SHADERS_H