26 #if ! defined (octave_oct_opengl_h)
27 #define octave_oct_opengl_h 1
29 #include "octave-config.h"
31 #if defined (HAVE_OPENGL)
33 # if defined (HAVE_GL_GL_H)
35 # elif defined (HAVE_OPENGL_GL_H) || defined (HAVE_FRAMEWORK_OPENGL)
36 # include <OpenGL/gl.h>
39 # if defined (HAVE_GL_GLU_H)
41 # elif defined (HAVE_OPENGL_GLU_H) || defined (HAVE_FRAMEWORK_OPENGL)
42 # include <OpenGL/glu.h>
45 # if defined (HAVE_GL_GLEXT_H)
46 # include <GL/glext.h>
47 # elif defined (HAVE_OPENGL_GLEXT_H) || defined (HAVE_FRAMEWORK_OPENGL)
48 # include <OpenGL/glext.h>
67 #if defined (HAVE_OPENGL)
88 virtual void glBitmap (GLsizei width, GLsizei height, GLfloat xorig,
89 GLfloat yorig, GLfloat xmove, GLfloat ymove,
90 const GLubyte *bitmap)
92 ::glBitmap (width, height, xorig, yorig, xmove, ymove, bitmap);
105 virtual void glClearColor (GLclampf red, GLclampf green, GLclampf blue,
126 virtual void glColor3f (GLfloat red, GLfloat green, GLfloat blue)
136 virtual void glColor4d (GLdouble red, GLdouble green, GLdouble blue,
142 virtual void glColor4f (GLfloat red, GLfloat green, GLfloat blue,
174 GLenum
type,
const GLvoid *pixels)
206 return ::glGenLists (range);
226 return ::glGetError ();
241 return ::glGetString (
name);
244 virtual void glHint (GLenum target, GLenum mode)
256 return ::glIsEnabled (cap);
279 virtual void glMaterialf (GLenum face, GLenum pname, GLfloat param)
284 virtual void glMaterialfv (GLenum face, GLenum pname,
const GLfloat *params)
304 virtual void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz)
314 virtual void glOrtho (GLdouble
left, GLdouble right, GLdouble bottom,
315 GLdouble top, GLdouble near_val, GLdouble far_val)
383 return ::glRenderMode (mode);
386 virtual void glRotated (GLdouble angle, GLdouble
x, GLdouble y, GLdouble z)
391 virtual void glScaled (GLdouble
x, GLdouble y, GLdouble z)
416 virtual void glTexImage2D (GLenum target, GLint level, GLint internalFormat,
417 GLsizei width, GLsizei height, GLint border,
418 GLenum
format, GLenum
type,
const GLvoid *pixels)
420 ::glTexImage2D (target, level, internalFormat, width, height, border,
454 virtual void glViewport (GLint
x, GLint y, GLsizei width, GLsizei height)
virtual void glBindTexture(GLenum target, GLuint texture)
virtual void glGetDoublev(GLenum pname, GLdouble *data)
virtual void glScalef(GLfloat x, GLfloat y, GLfloat z)
virtual void glPolygonMode(GLenum face, GLenum mode)
virtual void glMultMatrixd(const GLdouble *m)
virtual void glBegin(GLenum mode)
virtual void glDisable(GLenum cap)
virtual void glNormal3dv(const GLdouble *v)
virtual void glSelectBuffer(GLsizei size, GLuint *buffer)
virtual void glGenTextures(GLsizei n, GLuint *textures)
virtual void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
virtual void glPolygonOffset(GLfloat factor, GLfloat units)
virtual void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val)
virtual void glVertex2d(GLdouble x, GLdouble y)
virtual void glDepthFunc(GLenum func)
virtual void glPixelStorei(GLenum pname, GLint param)
virtual void glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
virtual void glColor3dv(const GLdouble *v)
virtual void glLineStipple(GLint factor, GLushort pattern)
virtual void glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
virtual void glShadeModel(GLenum mode)
virtual void glMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
virtual void glAlphaFunc(GLenum func, GLclampf ref)
virtual void glBlendFunc(GLenum sfactor, GLenum dfactor)
virtual void glGetIntegerv(GLenum pname, GLint *data)
virtual void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
virtual const GLubyte * glGetString(GLenum name)
virtual GLboolean glIsEnabled(GLenum cap)
virtual ~opengl_functions(void)=default
virtual void glDeleteTextures(GLsizei n, const GLuint *textures)
virtual void glClipPlane(GLenum plane, const GLdouble *equation)
virtual void glColor3f(GLfloat red, GLfloat green, GLfloat blue)
virtual GLint glRenderMode(GLenum mode)
virtual void glEdgeFlag(GLboolean flag)
virtual void glPixelZoom(GLfloat xfactor, GLfloat yfactor)
virtual void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
virtual void glPopMatrix(void)
opengl_functions & operator=(const opengl_functions &)=default
virtual void glScaled(GLdouble x, GLdouble y, GLdouble z)
virtual void glGetBooleanv(GLenum pname, GLboolean *data)
virtual void glLineWidth(GLfloat width)
virtual void glEnable(GLenum cap)
virtual void glPushAttrib(GLbitfield mask)
virtual void glInitNames(void)
virtual void glVertex3d(GLdouble x, GLdouble y, GLdouble z)
virtual void glDeleteLists(GLuint list, GLsizei range)
virtual void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
virtual void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
virtual void glCallList(GLuint list)
virtual GLuint glGenLists(GLsizei range)
virtual void glEndList(void)
virtual void glLoadIdentity(void)
virtual void glNewList(GLuint list, GLenum mode)
virtual void glTranslated(GLdouble x, GLdouble y, GLdouble z)
virtual void glFinish(void)
virtual void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
virtual void glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
virtual void glPopAttrib(void)
virtual void glGetFloatv(GLenum pname, GLfloat *data)
virtual GLenum glGetError(void)
virtual void glHint(GLenum target, GLenum mode)
virtual void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
virtual void glPopName(void)
virtual void glMaterialf(GLenum face, GLenum pname, GLfloat param)
virtual void glMatrixMode(GLenum mode)
virtual void glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
virtual void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
virtual void glColor3fv(const GLfloat *v)
virtual void glColor4fv(const GLfloat *v)
virtual void glPushMatrix(void)
virtual void glTexCoord2d(GLdouble s, GLdouble t)
virtual void glPushName(GLuint name)
virtual void glTexParameteri(GLenum target, GLenum pname, GLint param)
opengl_functions(const opengl_functions &)=default
virtual void glClear(GLbitfield mask)
virtual void glVertex3dv(const GLdouble *v)
virtual void glLightfv(GLenum light, GLenum pname, const GLfloat *params)
F77_RET_T const F77_DBLE * x
size_t format(std::ostream &os, const char *fmt,...)