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
46 if((error_code=glGetError())!=GL_NO_ERROR) {
48 LOG_VERBOSE(
"GL error in [" << m <<
"]: " << gluErrorString(error_code));
101 inline void glGetv(GLenum pname,
double* v){
102 glGetDoublev(pname, v);
105 inline void glGetv(GLenum pname,
float* v){
106 glGetFloatv(pname, v);
118 #if OST_SHADER_SUPPORT_ENABLED
120 inline void glLoadTransposeMatrix(
float* arr) {
121 glLoadTransposeMatrixf(arr);
124 inline void glLoadTransposeMatrix(
double* arr) {
125 glLoadTransposeMatrixd(arr);