7 #ifndef __SCV_GLSLSHADER_H__
8 #define __SCV_GLSLSHADER_H__
38 return _shaderReady && _initialized;
42 static bool _initialized;
43 static bool _shaderReady;
44 GLuint _program, _frag, _vert;
45 std::map<std::string, GLuint> _uniformLocations,_attribLocations;
46 void setShaders(
char *vert,
char *frag);
47 char *textFileRead(
char *fn);
48 int printOglError(
char *file,
int line);
49 void printProgramInfoLog(GLuint obj);
50 void printShaderInfoLog(GLuint obj);
55 #endif // __SCV_GLSLSHADER_H__