26 #if ! defined (octave_qopengl_functions_h)
27 #define octave_qopengl_functions_h 1
31 #if defined (HAVE_QOPENGLFUNCTIONS_1_1)
32 # include <QOpenGLFunctions_1_1>
46 #if defined (HAVE_QOPENGLFUNCTIONS_1_1)
59 #if defined (HAVE_QOPENGLFUNCTIONS_1_1)
60 m_glfcns.initializeOpenGLFunctions ();
64 #if defined (HAVE_QOPENGLFUNCTIONS_1_1)
66 void glAlphaFunc (GLenum fcn, GLclampf ref)
68 m_glfcns.glAlphaFunc (fcn, ref);
71 void glBegin (GLenum mode)
73 m_glfcns.glBegin (mode);
76 void glBindTexture (GLenum target, GLuint texture)
78 m_glfcns.glBindTexture (target, texture);
81 void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig,
82 GLfloat xmove, GLfloat ymove,
const GLubyte *bitmap)
84 m_glfcns.glBitmap (width, height, xorig, yorig, xmove, ymove, bitmap);
87 void glBlendFunc (GLenum sfactor, GLenum dfactor)
89 m_glfcns.glBlendFunc (sfactor, dfactor);
92 void glCallList (GLuint list)
94 m_glfcns.glCallList (list);
97 void glClearColor (GLclampf red, GLclampf green, GLclampf blue,
100 m_glfcns.glClearColor (red, green, blue, alpha);
103 void glClear (GLbitfield mask)
105 m_glfcns.glClear (mask);
108 void glClipPlane (GLenum plane,
const GLdouble *equation)
110 m_glfcns.glClipPlane (plane, equation);
113 void glColor3dv (
const GLdouble *v)
115 m_glfcns.glColor3dv (v);
118 void glColor3f (GLfloat red, GLfloat green, GLfloat blue)
120 m_glfcns.glColor3f (red, green, blue);
123 void glColor3fv (
const GLfloat *v)
125 m_glfcns.glColor3fv (v);
128 void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
130 m_glfcns.glColor4d (red, green, blue, alpha);
133 void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
135 m_glfcns.glColor4f (red, green, blue, alpha);
138 void glColor4fv (
const GLfloat *v)
140 m_glfcns.glColor4fv (v);
143 void glDeleteLists (GLuint list, GLsizei
range)
145 m_glfcns.glDeleteLists (list,
range);
148 void glDeleteTextures (GLsizei
n,
const GLuint *textures)
150 m_glfcns.glDeleteTextures (
n, textures);
153 void glDepthFunc (GLenum fcn)
155 m_glfcns.glDepthFunc (fcn);
158 void glDisable (GLenum cap)
160 m_glfcns.glDisable (cap);
163 void glDrawPixels (GLsizei width, GLsizei height, GLenum
format,
164 GLenum type,
const GLvoid *pixels)
166 m_glfcns.glDrawPixels (width, height,
format, type, pixels);
169 void glEdgeFlag (GLboolean flag)
171 m_glfcns.glEdgeFlag (flag);
174 void glEnable (GLenum cap)
176 m_glfcns.glEnable (cap);
179 void glEndList (
void)
181 m_glfcns.glEndList ();
191 m_glfcns.glFinish ();
194 GLuint glGenLists (GLsizei
range)
196 return m_glfcns.glGenLists (
range);
199 void glGenTextures (GLsizei
n, GLuint *textures)
201 m_glfcns.glGenTextures (
n, textures);
204 void glGetBooleanv (GLenum pname, GLboolean *data)
206 m_glfcns.glGetBooleanv (pname, data);
209 void glGetDoublev (GLenum pname, GLdouble *data)
211 m_glfcns.glGetDoublev (pname, data);
214 GLenum glGetError (
void)
216 return m_glfcns.glGetError ();
219 void glGetFloatv (GLenum pname, GLfloat *data)
221 m_glfcns.glGetFloatv (pname, data);
224 void glGetIntegerv (GLenum pname, GLint *data)
226 m_glfcns.glGetIntegerv (pname, data);
229 const GLubyte * glGetString (GLenum name)
231 return m_glfcns.glGetString (name);
234 void glHint (GLenum target, GLenum mode)
236 m_glfcns.glHint (target, mode);
239 void glInitNames (
void)
241 m_glfcns.glInitNames ();
244 GLboolean glIsEnabled (GLenum cap)
246 return m_glfcns.glIsEnabled (cap);
249 void glLightfv (GLenum light, GLenum pname,
const GLfloat *params)
251 m_glfcns.glLightfv (light, pname, params);
254 void glLineStipple (GLint factor, GLushort pattern)
256 m_glfcns.glLineStipple (factor, pattern);
259 void glLineWidth (GLfloat width)
261 m_glfcns.glLineWidth (width);
264 void glLoadIdentity (
void)
266 m_glfcns.glLoadIdentity ();
269 void glMaterialf (GLenum face, GLenum pname, GLfloat param)
271 m_glfcns.glMaterialf (face, pname, param);
274 void glMaterialfv (GLenum face, GLenum pname,
const GLfloat *params)
276 m_glfcns.glMaterialfv (face, pname, params);
279 void glMatrixMode (GLenum mode)
281 m_glfcns.glMatrixMode (mode);
284 void glMultMatrixd (
const GLdouble *
m)
286 m_glfcns.glMultMatrixd (
m);
289 void glNewList (GLuint list, GLenum mode)
291 m_glfcns.glNewList (list, mode);
294 void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz)
296 m_glfcns.glNormal3d (nx, ny, nz);
299 void glNormal3dv (
const GLdouble *v)
301 m_glfcns.glNormal3dv (v);
304 void glOrtho (GLdouble
left, GLdouble right, GLdouble bottom, GLdouble top,
305 GLdouble near_val, GLdouble far_val)
307 m_glfcns.glOrtho (
left, right, bottom, top, near_val, far_val);
310 void glPixelStorei (GLenum pname, GLint param)
312 m_glfcns.glPixelStorei (pname, param);
315 void glPixelZoom (GLfloat xfactor, GLfloat yfactor)
317 m_glfcns.glPixelZoom (xfactor, yfactor);
320 void glPolygonMode (GLenum face, GLenum mode)
322 m_glfcns.glPolygonMode (face, mode);
325 void glPolygonOffset (GLfloat factor, GLfloat units)
327 m_glfcns.glPolygonOffset (factor, units);
330 void glPopAttrib (
void)
332 m_glfcns.glPopAttrib ();
335 void glPopMatrix (
void)
337 m_glfcns.glPopMatrix ();
340 void glPopName (
void)
342 m_glfcns.glPopName ();
345 void glPushAttrib (GLbitfield mask)
347 m_glfcns.glPushAttrib (mask);
350 void glPushMatrix (
void)
352 m_glfcns.glPushMatrix ();
355 void glPushName (GLuint name)
357 m_glfcns.glPushName (name);
360 void glRasterPos3d (GLdouble
x, GLdouble y, GLdouble z)
362 m_glfcns.glRasterPos3d (
x, y, z);
365 void glReadPixels (GLint
x, GLint y, GLsizei width, GLsizei height,
366 GLenum
format, GLenum type, GLvoid *pixels)
368 m_glfcns.glReadPixels (
x, y, width, height,
format, type, pixels);
371 GLint glRenderMode (GLenum mode)
373 return m_glfcns.glRenderMode (mode);
376 void glRotated (GLdouble angle, GLdouble
x, GLdouble y, GLdouble z)
378 m_glfcns.glRotated (angle,
x, y, z);
381 void glScaled (GLdouble
x, GLdouble y, GLdouble z)
383 m_glfcns.glScaled (
x, y, z);
386 void glScalef (GLfloat
x, GLfloat y, GLfloat z)
388 m_glfcns.glScalef (
x, y, z);
391 void glSelectBuffer (GLsizei size, GLuint *buffer)
393 m_glfcns.glSelectBuffer (size, buffer);
396 void glShadeModel (GLenum mode)
398 m_glfcns.glShadeModel (mode);
401 void glTexCoord2d (GLdouble s, GLdouble t)
403 m_glfcns.glTexCoord2d (s, t);
406 void glTexImage2D (GLenum target, GLint level, GLint internalFormat,
407 GLsizei width, GLsizei height, GLint border,
408 GLenum
format, GLenum type,
const GLvoid *pixels)
410 m_glfcns.glTexImage2D (target, level, internalFormat, width, height,
411 border,
format, type, pixels);
414 void glTexParameteri (GLenum target, GLenum pname, GLint param)
416 m_glfcns.glTexParameteri (target, pname, param);
419 void glTranslated (GLdouble
x, GLdouble y, GLdouble z)
421 m_glfcns.glTranslated (
x, y, z);
424 void glTranslatef (GLfloat
x, GLfloat y, GLfloat z)
426 m_glfcns.glTranslatef (
x, y, z);
429 void glVertex2d (GLdouble
x, GLdouble y)
431 m_glfcns.glVertex2d (
x, y);
434 void glVertex3d (GLdouble
x, GLdouble y, GLdouble z)
436 m_glfcns.glVertex3d (
x, y, z);
439 void glVertex3dv (
const GLdouble *v)
441 m_glfcns.glVertex3dv (v);
444 void glViewport (GLint
x, GLint y, GLsizei width, GLsizei height)
446 m_glfcns.glViewport (
x, y, width, height);
451 QOpenGLFunctions_1_1 m_glfcns;
~qopengl_functions(void)=default
qopengl_functions(const qopengl_functions &)=default
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE * x
std::size_t format(std::ostream &os, const char *fmt,...)