23 #ifndef OST_GFX_GL_HELPER_HH
24 #define OST_GFX_GL_HELPER_HH
30 #ifdef OST_GFX_GLEXT_INCLUDE_HH
31 #error gl_helper.hh must be included before any occurence of glext_include.hh
33 #ifdef OST_GFX_GL_INCLUDE_HH
34 #error gl_helper.hh must be included before any occurence of gl_include.hh
45 if((error_code=glGetError())!=GL_NO_ERROR) {
46 LOG_VERBOSE(
"GL error: " << gluErrorString(error_code));
97 inline void glGetv(GLenum pname,
double* v){
98 glGetDoublev(pname, v);
101 inline void glGetv(GLenum pname,
float* v){
102 glGetFloatv(pname, v);
114 #if OST_SHADER_SUPPORT_ENABLED
116 inline void glLoadTransposeMatrix(
float* arr) {
117 glLoadTransposeMatrixf(arr);
120 inline void glLoadTransposeMatrix(
double* arr) {
121 glLoadTransposeMatrixd(arr);