mirror of
https://github.com/id-Software/Wolf3D-iOS.git
synced 2024-11-10 07:22:02 +00:00
872 lines
41 KiB
C
872 lines
41 KiB
C
/*
|
|
|
|
Copyright (C) 2005 Michael Liebscher
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
/*
|
|
* MyOpenGL.h: OpenGL Interface
|
|
*
|
|
* Author: Michael Liebscher <johnnycanuck@users.sourceforge.net>
|
|
*
|
|
*/
|
|
|
|
/*
|
|
Notes:
|
|
|
|
This module is implemented by opengl_win.c.
|
|
|
|
*/
|
|
|
|
#ifndef __MYOPENGL_H__
|
|
#define __MYOPENGL_H__
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define WIN32_LEAN_AND_MEAN 1
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
#ifdef IPHONE
|
|
#include <OpenGLES/ES1/gl.h>
|
|
#include <OpenGLES/ES1/glext.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
|
|
#ifdef __unix__
|
|
|
|
#include <GL/glx.h>
|
|
|
|
#endif
|
|
|
|
|
|
extern int OpenGL_Init( const char *dllname );
|
|
extern void OpenGL_Shutdown( void );
|
|
|
|
|
|
|
|
#ifndef APIENTRY
|
|
|
|
#define APIENTRY
|
|
|
|
#endif
|
|
|
|
#ifndef APIENTRYP
|
|
|
|
#define APIENTRYP APIENTRY *
|
|
|
|
#endif
|
|
|
|
|
|
typedef GLvoid ( APIENTRYP GLACCUM )(GLenum op, GLfloat value);
|
|
typedef GLvoid ( APIENTRYP GLALPHAFUNC )(GLenum func, GLclampf ref);
|
|
typedef GLboolean ( APIENTRYP GLARETEXTURESRESIDENT )(GLsizei n, const GLuint *textures, GLboolean *residences);
|
|
typedef GLvoid ( APIENTRYP GLARRAYELEMENT )(GLint i);
|
|
typedef GLvoid ( APIENTRYP GLBEGIN )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLBINDTEXTURE )(GLenum target, GLuint texture);
|
|
typedef GLvoid ( APIENTRYP GLBITMAP )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
|
|
typedef GLvoid ( APIENTRYP GLBLENDFUNC )(GLenum sfactor, GLenum dfactor);
|
|
typedef GLvoid ( APIENTRYP GLCALLLIST )(GLuint list);
|
|
typedef GLvoid ( APIENTRYP GLCALLLISTS )(GLsizei n, GLenum type, const GLvoid *lists);
|
|
typedef GLvoid ( APIENTRYP GLCLEAR )(GLbitfield mask);
|
|
typedef GLvoid ( APIENTRYP GLCLEARACCUM )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
|
typedef GLvoid ( APIENTRYP GLCLEARCOLOR )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
|
typedef GLvoid ( APIENTRYP GLCLEARDEPTH )(GLclampd depth);
|
|
typedef GLvoid ( APIENTRYP GLCLEARINDEX )(GLfloat c);
|
|
typedef GLvoid ( APIENTRYP GLCLEARSTENCIL )(GLint s);
|
|
typedef GLvoid ( APIENTRYP GLCLIPPLANE )(GLenum plane, const GLdouble *equation);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3B )(GLbyte red, GLbyte green, GLbyte blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3BV )(const GLbyte *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3D )(GLdouble red, GLdouble green, GLdouble blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3F )(GLfloat red, GLfloat green, GLfloat blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3I )(GLint red, GLint green, GLint blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3S )(GLshort red, GLshort green, GLshort blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3UB )(GLubyte red, GLubyte green, GLubyte blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3UBV )(const GLubyte *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3UI )(GLuint red, GLuint green, GLuint blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3UIV )(const GLuint *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3US )(GLushort red, GLushort green, GLushort blue);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR3USV )(const GLushort *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4B )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4BV )(const GLbyte *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4D )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4F )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4I )(GLint red, GLint green, GLint blue, GLint alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4S )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4UB )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4UBV )(const GLubyte *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4UI )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4UIV )(const GLuint *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4US )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLOR4USV )(const GLushort *v);
|
|
typedef GLvoid ( APIENTRYP GLCOLORMASK )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
|
typedef GLvoid ( APIENTRYP GLCOLORMATERIAL )(GLenum face, GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLCOLORPOINTER )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLCOPYPIXELS )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
|
|
typedef GLvoid ( APIENTRYP GLCOPYTEXIMAGE1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
|
|
typedef GLvoid ( APIENTRYP GLCOPYTEXIMAGE2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
|
typedef GLvoid ( APIENTRYP GLCOPYTEXSUBIMAGE1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
|
|
typedef GLvoid ( APIENTRYP GLCOPYTEXSUBIMAGE2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
|
typedef GLvoid ( APIENTRYP GLCULLFACE )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLDELETELISTS )(GLuint list, GLsizei range);
|
|
typedef GLvoid ( APIENTRYP GLDELETETEXTURES )(GLsizei n, const GLuint *textures);
|
|
typedef GLvoid ( APIENTRYP GLDEPTHFUNC )(GLenum func);
|
|
typedef GLvoid ( APIENTRYP GLDEPTHMASK )(GLboolean flag);
|
|
typedef GLvoid ( APIENTRYP GLDEPTHRANGE )(GLclampd zNear, GLclampd zFar);
|
|
typedef GLvoid ( APIENTRYP GLDISABLE )(GLenum cap);
|
|
typedef GLvoid ( APIENTRYP GLDISABLECLIENTSTATE )(GLenum array);
|
|
typedef GLvoid ( APIENTRYP GLDRAWARRAYS )(GLenum mode, GLint first, GLsizei count);
|
|
typedef GLvoid ( APIENTRYP GLDRAWBUFFER )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLDRAWELEMENTS )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
|
|
typedef GLvoid ( APIENTRYP GLDRAWPIXELS )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLEDGEFLAG )(GLboolean flag);
|
|
typedef GLvoid ( APIENTRYP GLEDGEFLAGPOINTER )(GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLEDGEFLAGV )(const GLboolean *flag);
|
|
typedef GLvoid ( APIENTRYP GLENABLE )(GLenum cap);
|
|
typedef GLvoid ( APIENTRYP GLENABLECLIENTSTATE )(GLenum array);
|
|
typedef GLvoid ( APIENTRYP GLEND )(void);
|
|
typedef GLvoid ( APIENTRYP GLENDLIST )(void);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD1D )(GLdouble u);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD1DV )(const GLdouble *u);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD1F )(GLfloat u);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD1FV )(const GLfloat *u);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD2D )(GLdouble u, GLdouble v);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD2DV )(const GLdouble *u);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD2F )(GLfloat u, GLfloat v);
|
|
typedef GLvoid ( APIENTRYP GLEVALCOORD2FV )(const GLfloat *u);
|
|
typedef GLvoid ( APIENTRYP GLEVALMESH1 )(GLenum mode, GLint i1, GLint i2);
|
|
typedef GLvoid ( APIENTRYP GLEVALMESH2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
|
|
typedef GLvoid ( APIENTRYP GLEVALPOINT1 )(GLint i);
|
|
typedef GLvoid ( APIENTRYP GLEVALPOINT2 )(GLint i, GLint j);
|
|
typedef GLvoid ( APIENTRYP GLFEEDBACKBUFFER )(GLsizei size, GLenum type, GLfloat *buffer);
|
|
typedef GLvoid ( APIENTRYP GLFINISH )(void);
|
|
typedef GLvoid ( APIENTRYP GLFLUSH )(void);
|
|
typedef GLvoid ( APIENTRYP GLFOGF )(GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLFOGFV )(GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLFOGI )(GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLFOGIV )(GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLFRONTFACE )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLFRUSTUM )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
|
|
typedef GLuint ( APIENTRYP GLGENLISTS )(GLsizei range);
|
|
typedef GLvoid ( APIENTRYP GLGENTEXTURES )(GLsizei n, GLuint *textures);
|
|
typedef GLvoid ( APIENTRYP GLGETBOOLEANV )(GLenum pname, GLboolean *params);
|
|
typedef GLvoid ( APIENTRYP GLGETCLIPPLANE )(GLenum plane, GLdouble *equation);
|
|
typedef GLvoid ( APIENTRYP GLGETDOUBLEV )(GLenum pname, GLdouble *params);
|
|
typedef GLenum ( APIENTRYP GLGETERROR )(void);
|
|
typedef GLvoid ( APIENTRYP GLGETFLOATV )(GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETINTEGERV )(GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLGETLIGHTFV )(GLenum light, GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETLIGHTIV )(GLenum light, GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLGETMAPDV )(GLenum target, GLenum query, GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLGETMAPFV )(GLenum target, GLenum query, GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLGETMAPIV )(GLenum target, GLenum query, GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLGETMATERIALFV )(GLenum face, GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETMATERIALIV )(GLenum face, GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLGETPIXELMAPFV )(GLenum map, GLfloat *values);
|
|
typedef GLvoid ( APIENTRYP GLGETPIXELMAPUIV )(GLenum map, GLuint *values);
|
|
typedef GLvoid ( APIENTRYP GLGETPIXELMAPUSV )(GLenum map, GLushort *values);
|
|
typedef GLvoid ( APIENTRYP GLGETPOINTERV )(GLenum pname, GLvoid* *params);
|
|
typedef GLvoid ( APIENTRYP GLGETPOLYGONSTIPPLE )(GLubyte *mask);
|
|
typedef const GLubyte * ( APIENTRYP GLGETSTRING )(GLenum name);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXENVFV )(GLenum target, GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXENVIV )(GLenum target, GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXGENDV )(GLenum coord, GLenum pname, GLdouble *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXGENFV )(GLenum coord, GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXGENIV )(GLenum coord, GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXIMAGE )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXPARAMETERFV )(GLenum target, GLenum pname, GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLGETTEXPARAMETERIV )(GLenum target, GLenum pname, GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLHINT )(GLenum target, GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLINDEXMASK )(GLuint mask);
|
|
typedef GLvoid ( APIENTRYP GLINDEXPOINTER )(GLenum type, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLINDEXD )(GLdouble c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXDV )(const GLdouble *c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXF )(GLfloat c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXFV )(const GLfloat *c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXI )(GLint c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXIV )(const GLint *c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXS )(GLshort c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXSV )(const GLshort *c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXUB )(GLubyte c);
|
|
typedef GLvoid ( APIENTRYP GLINDEXUBV )(const GLubyte *c);
|
|
typedef GLvoid ( APIENTRYP GLINITNAMES )(void);
|
|
typedef GLvoid ( APIENTRYP GLINTERLEAVEDARRAYS )(GLenum format, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLboolean ( APIENTRYP GLISENABLED )(GLenum cap);
|
|
typedef GLboolean ( APIENTRYP GLISLIST )(GLuint list);
|
|
typedef GLboolean ( APIENTRYP GLISTEXTURE )(GLuint texture);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTMODELF )(GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTMODELFV )(GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTMODELI )(GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTMODELIV )(GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTF )(GLenum light, GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTFV )(GLenum light, GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTI )(GLenum light, GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLLIGHTIV )(GLenum light, GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLLINESTIPPLE )(GLint factor, GLushort pattern);
|
|
typedef GLvoid ( APIENTRYP GLLINEWIDTH )(GLfloat width);
|
|
typedef GLvoid ( APIENTRYP GLLISTBASE )(GLuint base);
|
|
typedef GLvoid ( APIENTRYP GLLOADIDENTITY )(void);
|
|
typedef GLvoid ( APIENTRYP GLLOADMATRIXD )(const GLdouble *m);
|
|
typedef GLvoid ( APIENTRYP GLLOADMATRIXF )(const GLfloat *m);
|
|
typedef GLvoid ( APIENTRYP GLLOADNAME )(GLuint name);
|
|
typedef GLvoid ( APIENTRYP GLLOGICOP )(GLenum opcode);
|
|
typedef GLvoid ( APIENTRYP GLMAP1D )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
|
|
typedef GLvoid ( APIENTRYP GLMAP1F )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
|
|
typedef GLvoid ( APIENTRYP GLMAP2D )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
|
|
typedef GLvoid ( APIENTRYP GLMAP2F )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
|
|
typedef GLvoid ( APIENTRYP GLMAPGRID1D )(GLint un, GLdouble u1, GLdouble u2);
|
|
typedef GLvoid ( APIENTRYP GLMAPGRID1F )(GLint un, GLfloat u1, GLfloat u2);
|
|
typedef GLvoid ( APIENTRYP GLMAPGRID2D )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
|
|
typedef GLvoid ( APIENTRYP GLMAPGRID2F )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
|
|
typedef GLvoid ( APIENTRYP GLMATERIALF )(GLenum face, GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLMATERIALFV )(GLenum face, GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLMATERIALI )(GLenum face, GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLMATERIALIV )(GLenum face, GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLMATRIXMODE )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLMULTMATRIXD )(const GLdouble *m);
|
|
typedef GLvoid ( APIENTRYP GLMULTMATRIXF )(const GLfloat *m);
|
|
typedef GLvoid ( APIENTRYP GLNEWLIST )(GLuint list, GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3B )(GLbyte nx, GLbyte ny, GLbyte nz);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3BV )(const GLbyte *v);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3D )(GLdouble nx, GLdouble ny, GLdouble nz);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3F )(GLfloat nx, GLfloat ny, GLfloat nz);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3I )(GLint nx, GLint ny, GLint nz);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3S )(GLshort nx, GLshort ny, GLshort nz);
|
|
typedef GLvoid ( APIENTRYP GLNORMAL3SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLNORMALPOINTER )(GLenum type, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLORTHO )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
|
|
typedef GLvoid ( APIENTRYP GLPASSTHROUGH )(GLfloat token);
|
|
typedef GLvoid ( APIENTRYP GLPIXELMAPFV )(GLenum map, GLsizei mapsize, const GLfloat *values);
|
|
typedef GLvoid ( APIENTRYP GLPIXELMAPUIV )(GLenum map, GLsizei mapsize, const GLuint *values);
|
|
typedef GLvoid ( APIENTRYP GLPIXELMAPUSV )(GLenum map, GLsizei mapsize, const GLushort *values);
|
|
typedef GLvoid ( APIENTRYP GLPIXELSTOREF )(GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLPIXELSTOREI )(GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLPIXELTRANSFERF )(GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLPIXELTRANSFERI )(GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLPIXELZOOM )(GLfloat xfactor, GLfloat yfactor);
|
|
typedef GLvoid ( APIENTRYP GLPOINTSIZE )(GLfloat size);
|
|
typedef GLvoid ( APIENTRYP GLPOLYGONMODE )(GLenum face, GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLPOLYGONOFFSET )(GLfloat factor, GLfloat units);
|
|
typedef GLvoid ( APIENTRYP GLPOLYGONSTIPPLE )(const GLubyte *mask);
|
|
typedef GLvoid ( APIENTRYP GLPOPATTRIB )(void);
|
|
typedef GLvoid ( APIENTRYP GLPOPCLIENTATTRIB )(void);
|
|
typedef GLvoid ( APIENTRYP GLPOPMATRIX )(void);
|
|
typedef GLvoid ( APIENTRYP GLPOPNAME )(void);
|
|
typedef GLvoid ( APIENTRYP GLPRIORITIZETEXTURES )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
|
|
typedef GLvoid ( APIENTRYP GLPUSHATTRIB )(GLbitfield mask);
|
|
typedef GLvoid ( APIENTRYP GLPUSHCLIENTATTRIB )(GLbitfield mask);
|
|
typedef GLvoid ( APIENTRYP GLPUSHMATRIX )(void);
|
|
typedef GLvoid ( APIENTRYP GLPUSHNAME )(GLuint name);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2D )(GLdouble x, GLdouble y);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2F )(GLfloat x, GLfloat y);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2I )(GLint x, GLint y);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2S )(GLshort x, GLshort y);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS2SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3D )(GLdouble x, GLdouble y, GLdouble z);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3F )(GLfloat x, GLfloat y, GLfloat z);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3I )(GLint x, GLint y, GLint z);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3S )(GLshort x, GLshort y, GLshort z);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS3SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4D )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4F )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4I )(GLint x, GLint y, GLint z, GLint w);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4S )(GLshort x, GLshort y, GLshort z, GLshort w);
|
|
typedef GLvoid ( APIENTRYP GLRASTERPOS4SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLREADBUFFER )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLREADPIXELS )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLRECTD )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
|
|
typedef GLvoid ( APIENTRYP GLRECTDV )(const GLdouble *v1, const GLdouble *v2);
|
|
typedef GLvoid ( APIENTRYP GLRECTF )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
|
|
typedef GLvoid ( APIENTRYP GLRECTFV )(const GLfloat *v1, const GLfloat *v2);
|
|
typedef GLvoid ( APIENTRYP GLRECTI )(GLint x1, GLint y1, GLint x2, GLint y2);
|
|
typedef GLvoid ( APIENTRYP GLRECTIV )(const GLint *v1, const GLint *v2);
|
|
typedef GLvoid ( APIENTRYP GLRECTS )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
|
|
typedef GLvoid ( APIENTRYP GLRECTSV )(const GLshort *v1, const GLshort *v2);
|
|
typedef GLint ( APIENTRYP GLRENDERMODE )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLROTATED )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
|
|
typedef GLvoid ( APIENTRYP GLROTATEF )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
|
|
typedef GLvoid ( APIENTRYP GLSCALED )(GLdouble x, GLdouble y, GLdouble z);
|
|
typedef GLvoid ( APIENTRYP GLSCALEF )(GLfloat x, GLfloat y, GLfloat z);
|
|
typedef GLvoid ( APIENTRYP GLSCISSOR )(GLint x, GLint y, GLsizei width, GLsizei height);
|
|
typedef GLvoid ( APIENTRYP GLSELECTBUFFER )(GLsizei size, GLuint *buffer);
|
|
typedef GLvoid ( APIENTRYP GLSHADEMODEL )(GLenum mode);
|
|
typedef GLvoid ( APIENTRYP GLSTENCILFUNC )(GLenum func, GLint ref, GLuint mask);
|
|
typedef GLvoid ( APIENTRYP GLSTENCILMASK )(GLuint mask);
|
|
typedef GLvoid ( APIENTRYP GLSTENCILOP )(GLenum fail, GLenum zfail, GLenum zpass);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1D )(GLdouble s);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1F )(GLfloat s);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1I )(GLint s);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1S )(GLshort s);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD1SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2D )(GLdouble s, GLdouble t);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2F )(GLfloat s, GLfloat t);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2I )(GLint s, GLint t);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2S )(GLshort s, GLshort t);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD2SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3D )(GLdouble s, GLdouble t, GLdouble r);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3F )(GLfloat s, GLfloat t, GLfloat r);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3I )(GLint s, GLint t, GLint r);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3S )(GLshort s, GLshort t, GLshort r);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD3SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4D )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4F )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4I )(GLint s, GLint t, GLint r, GLint q);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4S )(GLshort s, GLshort t, GLshort r, GLshort q);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORD4SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLTEXCOORDPOINTER )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLTEXENVF )(GLenum target, GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLTEXENVFV )(GLenum target, GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXENVI )(GLenum target, GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLTEXENVIV )(GLenum target, GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXGEND )(GLenum coord, GLenum pname, GLdouble param);
|
|
typedef GLvoid ( APIENTRYP GLTEXGENDV )(GLenum coord, GLenum pname, const GLdouble *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXGENF )(GLenum coord, GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLTEXGENFV )(GLenum coord, GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXGENI )(GLenum coord, GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLTEXGENIV )(GLenum coord, GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXIMAGE1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLTEXIMAGE2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLTEXPARAMETERF )(GLenum target, GLenum pname, GLfloat param);
|
|
typedef GLvoid ( APIENTRYP GLTEXPARAMETERFV )(GLenum target, GLenum pname, const GLfloat *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXPARAMETERI )(GLenum target, GLenum pname, GLint param);
|
|
typedef GLvoid ( APIENTRYP GLTEXPARAMETERIV )(GLenum target, GLenum pname, const GLint *params);
|
|
typedef GLvoid ( APIENTRYP GLTEXSUBIMAGE1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLTEXSUBIMAGE2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
|
typedef GLvoid ( APIENTRYP GLTRANSLATED )(GLdouble x, GLdouble y, GLdouble z);
|
|
typedef GLvoid ( APIENTRYP GLTRANSLATEF )(GLfloat x, GLfloat y, GLfloat z);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2D )(GLdouble x, GLdouble y);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2F )(GLfloat x, GLfloat y);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2I )(GLint x, GLint y);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2S )(GLshort x, GLshort y);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX2SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3D )(GLdouble x, GLdouble y, GLdouble z);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3F )(GLfloat x, GLfloat y, GLfloat z);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3I )(GLint x, GLint y, GLint z);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3S )(GLshort x, GLshort y, GLshort z);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX3SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4D )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4DV )(const GLdouble *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4F )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4FV )(const GLfloat *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4I )(GLint x, GLint y, GLint z, GLint w);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4IV )(const GLint *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4S )(GLshort x, GLshort y, GLshort z, GLshort w);
|
|
typedef GLvoid ( APIENTRYP GLVERTEX4SV )(const GLshort *v);
|
|
typedef GLvoid ( APIENTRYP GLVERTEXPOINTER )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
|
|
typedef GLvoid ( APIENTRYP GLVIEWPORT )(GLint x, GLint y, GLsizei width, GLsizei height);
|
|
|
|
|
|
//GLACCUM pfglAccum;
|
|
GLALPHAFUNC pfglAlphaFunc;
|
|
GLARETEXTURESRESIDENT pfglAreTexturesResident;
|
|
//GLARRAYELEMENT pfglArrayElement;
|
|
GLBEGIN pfglBegin;
|
|
GLBINDTEXTURE pfglBindTexture;
|
|
//GLBITMAP pfglBitmap;
|
|
GLBLENDFUNC pfglBlendFunc;
|
|
GLCALLLIST pfglCallList;
|
|
GLCALLLISTS pfglCallLists;
|
|
GLCLEAR pfglClear;
|
|
//GLCLEARACCUM pfglClearAccum;
|
|
GLCLEARCOLOR pfglClearColor;
|
|
GLCLEARDEPTH pfglClearDepth;
|
|
//GLCLEARINDEX pfglClearIndex;
|
|
//GLCLEARSTENCIL pfglClearStencil;
|
|
//GLCLIPPLANE pfglClipPlane;
|
|
GLCOLOR3B pfglColor3b;
|
|
GLCOLOR3BV pfglColor3bv;
|
|
GLCOLOR3D pfglColor3d;
|
|
GLCOLOR3DV pfglColor3dv;
|
|
GLCOLOR3F pfglColor3f;
|
|
GLCOLOR3FV pfglColor3fv;
|
|
GLCOLOR3I pfglColor3i;
|
|
GLCOLOR3IV pfglColor3iv;
|
|
GLCOLOR3S pfglColor3s;
|
|
GLCOLOR3SV pfglColor3sv;
|
|
GLCOLOR3UB pfglColor3ub;
|
|
GLCOLOR3UBV pfglColor3ubv;
|
|
GLCOLOR3UI pfglColor3ui;
|
|
GLCOLOR3UIV pfglColor3uiv;
|
|
GLCOLOR3US pfglColor3us;
|
|
GLCOLOR3USV pfglColor3usv;
|
|
GLCOLOR4B pfglColor4b;
|
|
GLCOLOR4BV pfglColor4bv;
|
|
GLCOLOR4D pfglColor4d;
|
|
GLCOLOR4DV pfglColor4dv;
|
|
GLCOLOR4F pfglColor4f;
|
|
GLCOLOR4FV pfglColor4fv;
|
|
GLCOLOR4I pfglColor4i;
|
|
GLCOLOR4IV pfglColor4iv;
|
|
GLCOLOR4S pfglColor4s;
|
|
GLCOLOR4SV pfglColor4sv;
|
|
GLCOLOR4UB pfglColor4ub;
|
|
GLCOLOR4UBV pfglColor4ubv;
|
|
GLCOLOR4UI pfglColor4ui;
|
|
GLCOLOR4UIV pfglColor4uiv;
|
|
GLCOLOR4US pfglColor4us;
|
|
GLCOLOR4USV pfglColor4usv;
|
|
GLCOLORMASK pfglColorMask;
|
|
GLCOLORMATERIAL pfglColorMaterial;
|
|
GLCOLORPOINTER pfglColorPointer;
|
|
GLCOPYPIXELS pfglCopyPixels;
|
|
GLCOPYTEXIMAGE1D pfglCopyTexImage1D;
|
|
GLCOPYTEXIMAGE2D pfglCopyTexImage2D;
|
|
GLCOPYTEXSUBIMAGE1D pfglCopyTexSubImage1D;
|
|
GLCOPYTEXSUBIMAGE2D pfglCopyTexSubImage2D;
|
|
GLCULLFACE pfglCullFace;
|
|
GLDELETELISTS pfglDeleteLists;
|
|
GLDELETETEXTURES pfglDeleteTextures;
|
|
GLDEPTHFUNC pfglDepthFunc;
|
|
GLDEPTHMASK pfglDepthMask;
|
|
GLDEPTHRANGE pfglDepthRange;
|
|
GLDISABLE pfglDisable;
|
|
GLDISABLECLIENTSTATE pfglDisableClientState;
|
|
GLDRAWARRAYS pfglDrawArrays;
|
|
GLDRAWBUFFER pfglDrawBuffer;
|
|
GLDRAWELEMENTS pfglDrawElements;
|
|
GLDRAWPIXELS pfglDrawPixels;
|
|
GLEDGEFLAG pfglEdgeFlag;
|
|
GLEDGEFLAGPOINTER pfglEdgeFlagPointer;
|
|
GLEDGEFLAGV pfglEdgeFlagv;
|
|
GLENABLE pfglEnable;
|
|
GLENABLECLIENTSTATE pfglEnableClientState;
|
|
GLEND pfglEnd;
|
|
GLENDLIST pfglEndList;
|
|
GLEVALCOORD1D pfglEvalCoord1d;
|
|
GLEVALCOORD1DV pfglEvalCoord1dv;
|
|
GLEVALCOORD1F pfglEvalCoord1f;
|
|
GLEVALCOORD1FV pfglEvalCoord1fv;
|
|
GLEVALCOORD2D pfglEvalCoord2d;
|
|
GLEVALCOORD2DV pfglEvalCoord2dv;
|
|
GLEVALCOORD2F pfglEvalCoord2f;
|
|
GLEVALCOORD2FV pfglEvalCoord2fv;
|
|
GLEVALMESH1 pfglEvalMesh1;
|
|
GLEVALMESH2 pfglEvalMesh2;
|
|
GLEVALPOINT1 pfglEvalPoint1;
|
|
GLEVALPOINT2 pfglEvalPoint2;
|
|
GLFEEDBACKBUFFER pfglFeedbackBuffer;
|
|
GLFINISH pfglFinish;
|
|
GLFLUSH pfglFlush;
|
|
GLFOGF pfglFogf;
|
|
GLFOGFV pfglFogfv;
|
|
GLFOGI pfglFogi;
|
|
GLFOGIV pfglFogiv;
|
|
GLFRONTFACE pfglFrontFace;
|
|
GLFRUSTUM pfglFrustum;
|
|
GLGENLISTS pfglGenLists;
|
|
GLGENTEXTURES pfglGenTextures;
|
|
GLGETBOOLEANV pfglGetBooleanv;
|
|
GLGETCLIPPLANE pfglGetClipPlane;
|
|
GLGETDOUBLEV pfglGetDoublev;
|
|
GLGETERROR pfglGetError;
|
|
GLGETFLOATV pfglGetFloatv;
|
|
GLGETINTEGERV pfglGetIntegerv;
|
|
GLGETLIGHTFV pfglGetLightfv;
|
|
GLGETLIGHTIV pfglGetLightiv;
|
|
GLGETMAPDV pfglGetMapdv;
|
|
GLGETMAPFV pfglGetMapfv;
|
|
GLGETMAPIV pfglGetMapiv;
|
|
GLGETMATERIALFV pfglGetMaterialfv;
|
|
GLGETMATERIALIV pfglGetMaterialiv;
|
|
GLGETPIXELMAPFV pfglGetPixelMapfv;
|
|
GLGETPIXELMAPUIV pfglGetPixelMapuiv;
|
|
GLGETPIXELMAPUSV pfglGetPixelMapusv;
|
|
GLGETPOINTERV pfglGetPointerv;
|
|
GLGETPOLYGONSTIPPLE pfglGetPolygonStipple;
|
|
GLGETSTRING pfglGetString;
|
|
GLGETTEXENVFV pfglGetTexEnvfv;
|
|
GLGETTEXENVIV pfglGetTexEnviv;
|
|
GLGETTEXGENDV pfglGetTexGendv;
|
|
GLGETTEXGENFV pfglGetTexGenfv;
|
|
GLGETTEXGENIV pfglGetTexGeniv;
|
|
GLGETTEXIMAGE pfglGetTexImage;
|
|
GLGETTEXPARAMETERFV pfglGetTexParameterfv;
|
|
GLGETTEXPARAMETERIV pfglGetTexParameteriv;
|
|
GLHINT pfglHint;
|
|
GLINDEXMASK pfglIndexMask;
|
|
GLINDEXPOINTER pfglIndexPointer;
|
|
GLINDEXD pfglIndexd;
|
|
GLINDEXDV pfglIndexdv;
|
|
GLINDEXF pfglIndexf;
|
|
GLINDEXFV pfglIndexfv;
|
|
GLINDEXI pfglIndexi;
|
|
GLINDEXIV pfglIndexiv;
|
|
GLINDEXS pfglIndexs;
|
|
GLINDEXSV pfglIndexsv;
|
|
GLINDEXUB pfglIndexub;
|
|
GLINDEXUBV pfglIndexubv;
|
|
GLINITNAMES pfglInitNames;
|
|
GLINTERLEAVEDARRAYS pfglInterleavedArrays;
|
|
GLISENABLED pfglIsEnabled;
|
|
GLISLIST pfglIsList;
|
|
GLISTEXTURE pfglIsTexture;
|
|
GLLIGHTMODELF pfglLightModelf;
|
|
GLLIGHTMODELFV pfglLightModelfv;
|
|
GLLIGHTMODELI pfglLightModeli;
|
|
GLLIGHTMODELIV pfglLightModeliv;
|
|
GLLIGHTF pfglLightf;
|
|
GLLIGHTFV pfglLightfv;
|
|
GLLIGHTI pfglLighti;
|
|
GLLIGHTIV pfglLightiv;
|
|
GLLINESTIPPLE pfglLineStipple;
|
|
GLLINEWIDTH pfglLineWidth;
|
|
GLLISTBASE pfglListBase;
|
|
GLLOADIDENTITY pfglLoadIdentity;
|
|
GLLOADMATRIXD pfglLoadMatrixd;
|
|
GLLOADMATRIXF pfglLoadMatrixf;
|
|
GLLOADNAME pfglLoadName;
|
|
GLLOGICOP pfglLogicOp;
|
|
GLMAP1D pfglMap1d;
|
|
GLMAP1F pfglMap1f;
|
|
GLMAP2D pfglMap2d;
|
|
GLMAP2F pfglMap2f;
|
|
GLMAPGRID1D pfglMapGrid1d;
|
|
GLMAPGRID1F pfglMapGrid1f;
|
|
GLMAPGRID2D pfglMapGrid2d;
|
|
GLMAPGRID2F pfglMapGrid2f;
|
|
GLMATERIALF pfglMaterialf;
|
|
GLMATERIALFV pfglMaterialfv;
|
|
GLMATERIALI pfglMateriali;
|
|
GLMATERIALIV pfglMaterialiv;
|
|
GLMATRIXMODE pfglMatrixMode;
|
|
GLMULTMATRIXD pfglMultMatrixd;
|
|
GLMULTMATRIXF pfglMultMatrixf;
|
|
GLNEWLIST pfglNewList;
|
|
GLNORMAL3B pfglNormal3b;
|
|
GLNORMAL3BV pfglNormal3bv;
|
|
GLNORMAL3D pfglNormal3d;
|
|
GLNORMAL3DV pfglNormal3dv;
|
|
GLNORMAL3F pfglNormal3f;
|
|
GLNORMAL3FV pfglNormal3fv;
|
|
GLNORMAL3I pfglNormal3i;
|
|
GLNORMAL3IV pfglNormal3iv;
|
|
GLNORMAL3S pfglNormal3s;
|
|
GLNORMAL3SV pfglNormal3sv;
|
|
GLNORMALPOINTER pfglNormalPointer;
|
|
GLORTHO pfglOrtho;
|
|
GLPASSTHROUGH pfglPassThrough;
|
|
GLPIXELMAPFV pfglPixelMapfv;
|
|
GLPIXELMAPUIV pfglPixelMapuiv;
|
|
GLPIXELMAPUSV pfglPixelMapusv;
|
|
GLPIXELSTOREF pfglPixelStoref;
|
|
GLPIXELSTOREI pfglPixelStorei;
|
|
GLPIXELTRANSFERF pfglPixelTransferf;
|
|
GLPIXELTRANSFERI pfglPixelTransferi;
|
|
GLPIXELZOOM pfglPixelZoom;
|
|
GLPOINTSIZE pfglPointSize;
|
|
GLPOLYGONMODE pfglPolygonMode;
|
|
GLPOLYGONOFFSET pfglPolygonOffset;
|
|
GLPOLYGONSTIPPLE pfglPolygonStipple;
|
|
GLPOPATTRIB pfglPopAttrib;
|
|
GLPOPCLIENTATTRIB pfglPopClientAttrib;
|
|
GLPOPMATRIX pfglPopMatrix;
|
|
GLPOPNAME pfglPopName;
|
|
GLPRIORITIZETEXTURES pfglPrioritizeTextures;
|
|
GLPUSHATTRIB pfglPushAttrib;
|
|
GLPUSHCLIENTATTRIB pfglPushClientAttrib;
|
|
GLPUSHMATRIX pfglPushMatrix;
|
|
GLPUSHNAME pfglPushName;
|
|
GLRASTERPOS2D pfglRasterPos2d;
|
|
GLRASTERPOS2DV pfglRasterPos2dv;
|
|
GLRASTERPOS2F pfglRasterPos2f;
|
|
GLRASTERPOS2FV pfglRasterPos2fv;
|
|
GLRASTERPOS2I pfglRasterPos2i;
|
|
GLRASTERPOS2IV pfglRasterPos2iv;
|
|
GLRASTERPOS2S pfglRasterPos2s;
|
|
GLRASTERPOS2SV pfglRasterPos2sv;
|
|
GLRASTERPOS3D pfglRasterPos3d;
|
|
GLRASTERPOS3DV pfglRasterPos3dv;
|
|
GLRASTERPOS3F pfglRasterPos3f;
|
|
GLRASTERPOS3FV pfglRasterPos3fv;
|
|
GLRASTERPOS3I pfglRasterPos3i;
|
|
GLRASTERPOS3IV pfglRasterPos3iv;
|
|
GLRASTERPOS3S pfglRasterPos3s;
|
|
GLRASTERPOS3SV pfglRasterPos3sv;
|
|
GLRASTERPOS4D pfglRasterPos4d;
|
|
GLRASTERPOS4DV pfglRasterPos4dv;
|
|
GLRASTERPOS4F pfglRasterPos4f;
|
|
GLRASTERPOS4FV pfglRasterPos4fv;
|
|
GLRASTERPOS4I pfglRasterPos4i;
|
|
GLRASTERPOS4IV pfglRasterPos4iv;
|
|
GLRASTERPOS4S pfglRasterPos4s;
|
|
GLRASTERPOS4SV pfglRasterPos4sv;
|
|
GLREADBUFFER pfglReadBuffer;
|
|
GLREADPIXELS pfglReadPixels;
|
|
GLRECTD pfglRectd;
|
|
GLRECTDV pfglRectdv;
|
|
GLRECTF pfglRectf;
|
|
GLRECTFV pfglRectfv;
|
|
GLRECTI pfglRecti;
|
|
GLRECTIV pfglRectiv;
|
|
GLRECTS pfglRects;
|
|
GLRECTSV pfglRectsv;
|
|
GLRENDERMODE pfglRenderMode;
|
|
GLROTATED pfglRotated;
|
|
GLROTATEF pfglRotatef;
|
|
GLSCALED pfglScaled;
|
|
GLSCALEF pfglScalef;
|
|
GLSCISSOR pfglScissor;
|
|
GLSELECTBUFFER pfglSelectBuffer;
|
|
GLSHADEMODEL pfglShadeModel;
|
|
GLSTENCILFUNC pfglStencilFunc;
|
|
GLSTENCILMASK pfglStencilMask;
|
|
GLSTENCILOP pfglStencilOp;
|
|
GLTEXCOORD1D pfglTexCoord1d;
|
|
GLTEXCOORD1DV pfglTexCoord1dv;
|
|
GLTEXCOORD1F pfglTexCoord1f;
|
|
GLTEXCOORD1FV pfglTexCoord1fv;
|
|
GLTEXCOORD1I pfglTexCoord1i;
|
|
GLTEXCOORD1IV pfglTexCoord1iv;
|
|
GLTEXCOORD1S pfglTexCoord1s;
|
|
GLTEXCOORD1SV pfglTexCoord1sv;
|
|
GLTEXCOORD2D pfglTexCoord2d;
|
|
GLTEXCOORD2DV pfglTexCoord2dv;
|
|
GLTEXCOORD2F pfglTexCoord2f;
|
|
GLTEXCOORD2FV pfglTexCoord2fv;
|
|
GLTEXCOORD2I pfglTexCoord2i;
|
|
GLTEXCOORD2IV pfglTexCoord2iv;
|
|
GLTEXCOORD2S pfglTexCoord2s;
|
|
GLTEXCOORD2SV pfglTexCoord2sv;
|
|
GLTEXCOORD3D pfglTexCoord3d;
|
|
GLTEXCOORD3DV pfglTexCoord3dv;
|
|
GLTEXCOORD3F pfglTexCoord3f;
|
|
GLTEXCOORD3FV pfglTexCoord3fv;
|
|
GLTEXCOORD3I pfglTexCoord3i;
|
|
GLTEXCOORD3IV pfglTexCoord3iv;
|
|
GLTEXCOORD3S pfglTexCoord3s;
|
|
GLTEXCOORD3SV pfglTexCoord3sv;
|
|
GLTEXCOORD4D pfglTexCoord4d;
|
|
GLTEXCOORD4DV pfglTexCoord4dv;
|
|
GLTEXCOORD4F pfglTexCoord4f;
|
|
GLTEXCOORD4FV pfglTexCoord4fv;
|
|
GLTEXCOORD4I pfglTexCoord4i;
|
|
GLTEXCOORD4IV pfglTexCoord4iv;
|
|
GLTEXCOORD4S pfglTexCoord4s;
|
|
GLTEXCOORD4SV pfglTexCoord4sv;
|
|
GLTEXCOORDPOINTER pfglTexCoordPointer;
|
|
GLTEXENVF pfglTexEnvf;
|
|
GLTEXENVFV pfglTexEnvfv;
|
|
GLTEXENVI pfglTexEnvi;
|
|
GLTEXENVIV pfglTexEnviv;
|
|
GLTEXGEND pfglTexGend;
|
|
GLTEXGENDV pfglTexGendv;
|
|
GLTEXGENF pfglTexGenf;
|
|
GLTEXGENFV pfglTexGenfv;
|
|
GLTEXGENI pfglTexGeni;
|
|
GLTEXGENIV pfglTexGeniv;
|
|
GLTEXIMAGE1D pfglTexImage1D;
|
|
GLTEXIMAGE2D pfglTexImage2D;
|
|
GLTEXPARAMETERF pfglTexParameterf;
|
|
GLTEXPARAMETERFV pfglTexParameterfv;
|
|
GLTEXPARAMETERI pfglTexParameteri;
|
|
GLTEXPARAMETERIV pfglTexParameteriv;
|
|
GLTEXSUBIMAGE1D pfglTexSubImage1D;
|
|
GLTEXSUBIMAGE2D pfglTexSubImage2D;
|
|
GLTRANSLATED pfglTranslated;
|
|
GLTRANSLATEF pfglTranslatef;
|
|
GLVERTEX2D pfglVertex2d;
|
|
GLVERTEX2DV pfglVertex2dv;
|
|
GLVERTEX2F pfglVertex2f;
|
|
GLVERTEX2FV pfglVertex2fv;
|
|
GLVERTEX2I pfglVertex2i;
|
|
GLVERTEX2IV pfglVertex2iv;
|
|
GLVERTEX2S pfglVertex2s;
|
|
GLVERTEX2SV pfglVertex2sv;
|
|
GLVERTEX3D pfglVertex3d;
|
|
GLVERTEX3DV pfglVertex3dv;
|
|
GLVERTEX3F pfglVertex3f;
|
|
GLVERTEX3FV pfglVertex3fv;
|
|
GLVERTEX3I pfglVertex3i;
|
|
GLVERTEX3IV pfglVertex3iv;
|
|
GLVERTEX3S pfglVertex3s;
|
|
GLVERTEX3SV pfglVertex3sv;
|
|
GLVERTEX4D pfglVertex4d;
|
|
GLVERTEX4DV pfglVertex4dv;
|
|
GLVERTEX4F pfglVertex4f;
|
|
GLVERTEX4FV pfglVertex4fv;
|
|
GLVERTEX4I pfglVertex4i;
|
|
GLVERTEX4IV pfglVertex4iv;
|
|
GLVERTEX4S pfglVertex4s;
|
|
GLVERTEX4SV pfglVertex4sv;
|
|
GLVERTEXPOINTER pfglVertexPointer;
|
|
GLVIEWPORT pfglViewport;
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
typedef BOOL (WINAPI *WGLCOPYCONTEXT)(HGLRC, HGLRC, UINT);
|
|
typedef HGLRC (WINAPI *WGLCREATECONTEXT)(HDC);
|
|
typedef HGLRC (WINAPI *WGLCREATELAYERCONTEXT)(HDC, int);
|
|
typedef BOOL (WINAPI *WGLDELETECONTEXT)(HGLRC);
|
|
typedef BOOL (WINAPI *WGLDESCRIBELAYERPLANE)(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR);
|
|
typedef HGLRC (WINAPI *WGLGETCURRENTCONTEXT)(VOID);
|
|
typedef HDC (WINAPI *WGLGETCURRENTDC)(VOID);
|
|
typedef int (WINAPI *WGLGETLAYERPALETTEENTRIES)(HDC, int, int, int, COLORREF *);
|
|
typedef PROC (WINAPI *WGLGETPROCADDRESS)(LPCSTR);
|
|
typedef BOOL (WINAPI *WGLMAKECURRENT)(HDC, HGLRC);
|
|
typedef BOOL (WINAPI *WGLREALIZELAYERPALETTE)(HDC, int, BOOL);
|
|
typedef int (WINAPI *WGLSETLAYERPALETTEENTRIES)(HDC, int, int, int, CONST COLORREF *);
|
|
typedef BOOL (WINAPI *WGLSHARELISTS)(HGLRC, HGLRC);
|
|
typedef BOOL (WINAPI *WGLSWAPLAYERBUFFERS)(HDC, UINT);
|
|
typedef BOOL (WINAPI *WGLUSEFONTBITMAPS)(HDC, DWORD, DWORD, DWORD);
|
|
typedef BOOL (WINAPI *WGLUSEFONTOUTLINES)(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
|
|
|
|
|
|
WGLCOPYCONTEXT pfwglCopyContext;
|
|
WGLCREATECONTEXT pfwglCreateContext;
|
|
WGLCREATELAYERCONTEXT pfwglCreateLayerContext;
|
|
WGLDELETECONTEXT pfwglDeleteContext;
|
|
WGLDESCRIBELAYERPLANE pfwglDescribeLayerPlane;
|
|
WGLGETCURRENTCONTEXT pfwglGetCurrentContext;
|
|
WGLGETCURRENTDC pfwglGetCurrentDC;
|
|
WGLGETLAYERPALETTEENTRIES pfwglGetLayerPaletteEntries;
|
|
WGLGETPROCADDRESS pfwglGetProcAddress;
|
|
WGLMAKECURRENT pfwglMakeCurrent;
|
|
WGLREALIZELAYERPALETTE pfwglRealizeLayerPalette;
|
|
WGLSETLAYERPALETTEENTRIES pfwglSetLayerPaletteEntries;
|
|
WGLSHARELISTS pfwglShareLists;
|
|
WGLSWAPLAYERBUFFERS pfwglSwapLayerBuffers;
|
|
WGLUSEFONTBITMAPS pfwglUseFontBitmaps;
|
|
WGLUSEFONTOUTLINES pfwglUseFontOutlines;
|
|
|
|
|
|
typedef int ( WINAPI *WGLCHOOSEPIXELFORMAT )(HDC, CONST PIXELFORMATDESCRIPTOR *);
|
|
typedef int ( WINAPI *WGLDESCRIBEPIXELFORMAT) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
|
|
typedef int ( WINAPI *WGLGETPIXELFORMAT)(HDC);
|
|
typedef BOOL ( WINAPI *WGLSETPIXELFORMAT)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
|
|
typedef BOOL ( WINAPI *WGLSWAPBUFFERS)(HDC);
|
|
|
|
|
|
WGLCHOOSEPIXELFORMAT pfwglChoosePixelFormat;
|
|
WGLDESCRIBEPIXELFORMAT pfwglDescribePixelFormat;
|
|
WGLGETPIXELFORMAT pfwglGetPixelFormat;
|
|
WGLSETPIXELFORMAT pfwglSetPixelFormat;
|
|
WGLSWAPBUFFERS pfwglSwapBuffers;
|
|
|
|
|
|
|
|
typedef BOOL (WINAPI *WGLSWAPINTERVALEXT)( int );
|
|
typedef int (WINAPI *WGLGETSWAPINTERVALEXT)( void );
|
|
|
|
WGLSWAPINTERVALEXT pfwglSwapIntervalEXT;
|
|
WGLGETSWAPINTERVALEXT pfwglGetSwapIntervalEXT;
|
|
|
|
|
|
void *(WINAPI *pfwglAllocateMemoryNV)( GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority );
|
|
void *(WINAPI *pfwglFreeMemoryNV)( void *pointer );
|
|
|
|
|
|
|
|
#ifndef HPBUFFERARB
|
|
|
|
DECLARE_HANDLE( HPBUFFERARB );
|
|
|
|
#endif
|
|
|
|
HPBUFFERARB (WINAPI *pfwglCreatePbufferARB)( HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList );
|
|
HDC (WINAPI *pfwglGetPbufferDCARB)( HPBUFFERARB hPbuffer );
|
|
int (WINAPI *pfwglReleasePbufferDCARB)( HPBUFFERARB hPbuffer, HDC hDC );
|
|
BOOL (WINAPI *pfwglDestroyPbufferARB)(HPBUFFERARB hPbuffer);
|
|
BOOL (WINAPI *pfwglQueryPbufferARB)( HPBUFFERARB hPbuffer, int iAttribute, int *piValue );
|
|
|
|
|
|
BOOL (WINAPI *pfwglGetPixelFormatAttribivARB)( HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
|
|
BOOL (WINAPI *pfwglGetPixelFormatAttribfvARB)( HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
|
|
BOOL (WINAPI *pfwglChoosePixelFormatARB)( HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
|
|
|
|
|
#endif /* _WIN32 */
|
|
|
|
#ifdef __unix__
|
|
|
|
// Local function in dll
|
|
extern void *pfwglGetProcAddress( const char *symbol );
|
|
|
|
|
|
void *(*pfwglAllocateMemoryNV)( GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority );
|
|
void *(*pfwglFreeMemoryNV)( void *pointer );
|
|
|
|
|
|
// GLX Functions
|
|
XVisualInfo * (*pfglXChooseVisual)( Display *dpy, int screen, int *attribList );
|
|
void (*pfglXCopyContext)( Display *dpy, GLXContext src, GLXContext dst, GLuint mask );
|
|
GLXContext (*pfglXCreateContext)( Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct );
|
|
GLXPixmap (*pfglXCreateGLXPixmap)( Display *dpy, XVisualInfo *vis, Pixmap pixmap );
|
|
void (*pfglXDestroyContext)( Display *dpy, GLXContext ctx );
|
|
void (*pfglXDestroyGLXPixmap)( Display *dpy, GLXPixmap pix );
|
|
int (*pfglXGetConfig)( Display *dpy, XVisualInfo *vis, int attrib, int *value );
|
|
GLXContext (*pfglXGetCurrentContext)( void );
|
|
GLXDrawable (*pfglXGetCurrentDrawable)( void );
|
|
Bool (*pfglXIsDirect)( Display *dpy, GLXContext ctx );
|
|
Bool (*pfglXMakeCurrent)( Display *dpy, GLXDrawable drawable, GLXContext ctx);
|
|
Bool (*pfglXQueryExtension)( Display *dpy, int *errorBase, int *eventBase );
|
|
Bool (*pfglXQueryVersion)( Display *dpy, int *major, int *minor );
|
|
void (*pfglXSwapBuffers)( Display *dpy, GLXDrawable drawable );
|
|
void (*pfglXUseXFont)( Font font, int first, int count, int listBase );
|
|
void (*pfglXWaitGL)( void );
|
|
void (*pfglXWaitX)( void );
|
|
|
|
#endif /* __unix__ */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __MYOPENGL_H__ */
|