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);
void check_gl_error(const std::string &m="")
void glNormal3v(double *v)
void glTexCoord2v(float *v)
void glLoadMatrix(float *arr)
Three dimensional vector class, using Real precision.
void glMultMatrix(float *v)
void glGetv(GLenum pname, double *v)
void glVertex3v(double *v)
void glVertex3(const geom::Vec3 &v)