vkQuake2 doxygen  1.0 dev
qgl.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 1997-2001 Id Software, Inc.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 
13 See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 
19 */
20 /*
21 ** QGL.H
22 */
23 
24 #ifndef __QGL_H__
25 #define __QGL_H__
26 
27 #ifdef _WIN32
28 # include <windows.h>
29 #endif
30 
31 #include <GL/gl.h>
32 
33 #ifdef __linux__
34 //#include <GL/fxmesa.h>
35 #include <GL/glx.h>
36 #endif
37 
38 qboolean QGL_Init( const char *dllname );
39 void QGL_Shutdown( void );
40 
41 #ifndef APIENTRY
42 # define APIENTRY
43 #endif
44 
45 extern void ( APIENTRY * qglAccum )(GLenum op, GLfloat value);
46 extern void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref);
47 extern GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
48 extern void ( APIENTRY * qglArrayElement )(GLint i);
49 extern void ( APIENTRY * qglBegin )(GLenum mode);
50 extern void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture);
52 extern void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor);
53 extern void ( APIENTRY * qglCallList )(GLuint list);
54 extern void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
55 extern void ( APIENTRY * qglClear )(GLbitfield mask);
56 extern void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
57 extern void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
58 extern void ( APIENTRY * qglClearDepth )(GLclampd depth);
59 extern void ( APIENTRY * qglClearIndex )(GLfloat c);
60 extern void ( APIENTRY * qglClearStencil )(GLint s);
61 extern void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation);
62 extern void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue);
63 extern void ( APIENTRY * qglColor3bv )(const GLbyte *v);
64 extern void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue);
65 extern void ( APIENTRY * qglColor3dv )(const GLdouble *v);
66 extern void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue);
67 extern void ( APIENTRY * qglColor3fv )(const GLfloat *v);
68 extern void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue);
69 extern void ( APIENTRY * qglColor3iv )(const GLint *v);
70 extern void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue);
71 extern void ( APIENTRY * qglColor3sv )(const GLshort *v);
72 extern void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
73 extern void ( APIENTRY * qglColor3ubv )(const GLubyte *v);
74 extern void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue);
75 extern void ( APIENTRY * qglColor3uiv )(const GLuint *v);
76 extern void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue);
77 extern void ( APIENTRY * qglColor3usv )(const GLushort *v);
78 extern void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
79 extern void ( APIENTRY * qglColor4bv )(const GLbyte *v);
80 extern void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
81 extern void ( APIENTRY * qglColor4dv )(const GLdouble *v);
82 extern void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
83 extern void ( APIENTRY * qglColor4fv )(const GLfloat *v);
84 extern void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
85 extern void ( APIENTRY * qglColor4iv )(const GLint *v);
86 extern void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
87 extern void ( APIENTRY * qglColor4sv )(const GLshort *v);
88 extern void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
89 extern void ( APIENTRY * qglColor4ubv )(const GLubyte *v);
90 extern void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
91 extern void ( APIENTRY * qglColor4uiv )(const GLuint *v);
92 extern void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
93 extern void ( APIENTRY * qglColor4usv )(const GLushort *v);
94 extern void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
95 extern void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode);
96 extern void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
97 extern void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
98 extern void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
99 extern void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
100 extern void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
101 extern void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
102 extern void ( APIENTRY * qglCullFace )(GLenum mode);
103 extern void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range);
104 extern void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures);
105 extern void ( APIENTRY * qglDepthFunc )(GLenum func);
106 extern void ( APIENTRY * qglDepthMask )(GLboolean flag);
107 extern void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar);
108 extern void ( APIENTRY * qglDisable )(GLenum cap);
109 extern void ( APIENTRY * qglDisableClientState )(GLenum array);
110 extern void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count);
111 extern void ( APIENTRY * qglDrawBuffer )(GLenum mode);
112 extern void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
113 extern void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
114 extern void ( APIENTRY * qglEdgeFlag )(GLboolean flag);
115 extern void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
116 extern void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag);
117 extern void ( APIENTRY * qglEnable )(GLenum cap);
118 extern void ( APIENTRY * qglEnableClientState )(GLenum array);
119 extern void ( APIENTRY * qglEnd )(void);
120 extern void ( APIENTRY * qglEndList )(void);
121 extern void ( APIENTRY * qglEvalCoord1d )(GLdouble u);
122 extern void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u);
123 extern void ( APIENTRY * qglEvalCoord1f )(GLfloat u);
124 extern void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u);
125 extern void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v);
126 extern void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u);
127 extern void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v);
128 extern void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u);
129 extern void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
130 extern void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
131 extern void ( APIENTRY * qglEvalPoint1 )(GLint i);
132 extern void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j);
133 extern void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
134 extern void ( APIENTRY * qglFinish )(void);
135 extern void ( APIENTRY * qglFlush )(void);
136 extern void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param);
137 extern void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params);
138 extern void ( APIENTRY * qglFogi )(GLenum pname, GLint param);
139 extern void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params);
140 extern void ( APIENTRY * qglFrontFace )(GLenum mode);
141 extern void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
142 extern GLuint ( APIENTRY * qglGenLists )(GLsizei range);
143 extern void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures);
144 extern void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params);
145 extern void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation);
146 extern void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params);
147 extern GLenum ( APIENTRY * qglGetError )(void);
148 extern void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params);
149 extern void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params);
150 extern void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
151 extern void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params);
152 extern void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v);
153 extern void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v);
154 extern void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v);
155 extern void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
156 extern void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
157 extern void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values);
158 extern void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values);
159 extern void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values);
160 extern void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params);
161 extern void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask);
162 extern const GLubyte * ( APIENTRY * qglGetString )(GLenum name);
163 extern void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
164 extern void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
165 extern void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
166 extern void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
167 extern void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
168 extern void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
169 extern void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
170 extern void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
171 extern void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
172 extern void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
173 extern void ( APIENTRY * qglHint )(GLenum target, GLenum mode);
174 extern void ( APIENTRY * qglIndexMask )(GLuint mask);
175 extern void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
176 extern void ( APIENTRY * qglIndexd )(GLdouble c);
177 extern void ( APIENTRY * qglIndexdv )(const GLdouble *c);
178 extern void ( APIENTRY * qglIndexf )(GLfloat c);
179 extern void ( APIENTRY * qglIndexfv )(const GLfloat *c);
180 extern void ( APIENTRY * qglIndexi )(GLint c);
181 extern void ( APIENTRY * qglIndexiv )(const GLint *c);
182 extern void ( APIENTRY * qglIndexs )(GLshort c);
183 extern void ( APIENTRY * qglIndexsv )(const GLshort *c);
184 extern void ( APIENTRY * qglIndexub )(GLubyte c);
185 extern void ( APIENTRY * qglIndexubv )(const GLubyte *c);
186 extern void ( APIENTRY * qglInitNames )(void);
187 extern void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
188 extern GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap);
189 extern GLboolean ( APIENTRY * qglIsList )(GLuint list);
190 extern GLboolean ( APIENTRY * qglIsTexture )(GLuint texture);
191 extern void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param);
192 extern void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params);
193 extern void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param);
194 extern void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params);
195 extern void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param);
196 extern void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params);
197 extern void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param);
198 extern void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params);
199 extern void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern);
200 extern void ( APIENTRY * qglLineWidth )(GLfloat width);
201 extern void ( APIENTRY * qglListBase )(GLuint base);
202 extern void ( APIENTRY * qglLoadIdentity )(void);
203 extern void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m);
204 extern void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m);
205 extern void ( APIENTRY * qglLoadName )(GLuint name);
206 extern void ( APIENTRY * qglLogicOp )(GLenum opcode);
207 extern void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
208 extern void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
209 extern void ( APIENTRY * qglMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
211 extern void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
212 extern void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
213 extern void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
214 extern void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
215 extern void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param);
216 extern void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
217 extern void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param);
218 extern void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params);
219 extern void ( APIENTRY * qglMatrixMode )(GLenum mode);
220 extern void ( APIENTRY * qglMultMatrixd )(const GLdouble *m);
221 extern void ( APIENTRY * qglMultMatrixf )(const GLfloat *m);
222 extern void ( APIENTRY * qglNewList )(GLuint list, GLenum mode);
223 extern void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
224 extern void ( APIENTRY * qglNormal3bv )(const GLbyte *v);
225 extern void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
226 extern void ( APIENTRY * qglNormal3dv )(const GLdouble *v);
227 extern void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
228 extern void ( APIENTRY * qglNormal3fv )(const GLfloat *v);
229 extern void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz);
230 extern void ( APIENTRY * qglNormal3iv )(const GLint *v);
231 extern void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz);
232 extern void ( APIENTRY * qglNormal3sv )(const GLshort *v);
233 extern void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
234 extern void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
235 extern void ( APIENTRY * qglPassThrough )(GLfloat token);
236 extern void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
237 extern void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
238 extern void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
239 extern void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param);
240 extern void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param);
241 extern void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param);
242 extern void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param);
243 extern void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor);
244 extern void ( APIENTRY * qglPointSize )(GLfloat size);
245 extern void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode);
246 extern void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units);
247 extern void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask);
248 extern void ( APIENTRY * qglPopAttrib )(void);
249 extern void ( APIENTRY * qglPopClientAttrib )(void);
250 extern void ( APIENTRY * qglPopMatrix )(void);
251 extern void ( APIENTRY * qglPopName )(void);
252 extern void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
253 extern void ( APIENTRY * qglPushAttrib )(GLbitfield mask);
254 extern void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask);
255 extern void ( APIENTRY * qglPushMatrix )(void);
256 extern void ( APIENTRY * qglPushName )(GLuint name);
257 extern void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y);
258 extern void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v);
259 extern void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y);
260 extern void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v);
261 extern void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y);
262 extern void ( APIENTRY * qglRasterPos2iv )(const GLint *v);
263 extern void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y);
264 extern void ( APIENTRY * qglRasterPos2sv )(const GLshort *v);
265 extern void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
266 extern void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v);
267 extern void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
268 extern void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v);
269 extern void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z);
270 extern void ( APIENTRY * qglRasterPos3iv )(const GLint *v);
271 extern void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z);
272 extern void ( APIENTRY * qglRasterPos3sv )(const GLshort *v);
273 extern void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
274 extern void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v);
275 extern void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
276 extern void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v);
277 extern void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
278 extern void ( APIENTRY * qglRasterPos4iv )(const GLint *v);
279 extern void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
280 extern void ( APIENTRY * qglRasterPos4sv )(const GLshort *v);
281 extern void ( APIENTRY * qglReadBuffer )(GLenum mode);
282 extern void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
283 extern void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
284 extern void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2);
285 extern void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
286 extern void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2);
287 extern void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
288 extern void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2);
289 extern void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
290 extern void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2);
291 extern GLint ( APIENTRY * qglRenderMode )(GLenum mode);
292 extern void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
293 extern void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
294 extern void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z);
295 extern void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z);
296 extern void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
297 extern void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer);
298 extern void ( APIENTRY * qglShadeModel )(GLenum mode);
299 extern void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask);
300 extern void ( APIENTRY * qglStencilMask )(GLuint mask);
301 extern void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
302 extern void ( APIENTRY * qglTexCoord1d )(GLdouble s);
303 extern void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v);
304 extern void ( APIENTRY * qglTexCoord1f )(GLfloat s);
305 extern void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v);
306 extern void ( APIENTRY * qglTexCoord1i )(GLint s);
307 extern void ( APIENTRY * qglTexCoord1iv )(const GLint *v);
308 extern void ( APIENTRY * qglTexCoord1s )(GLshort s);
309 extern void ( APIENTRY * qglTexCoord1sv )(const GLshort *v);
310 extern void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t);
311 extern void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v);
312 extern void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t);
313 extern void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v);
314 extern void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t);
315 extern void ( APIENTRY * qglTexCoord2iv )(const GLint *v);
316 extern void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t);
317 extern void ( APIENTRY * qglTexCoord2sv )(const GLshort *v);
318 extern void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
319 extern void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v);
320 extern void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
321 extern void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v);
322 extern void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r);
323 extern void ( APIENTRY * qglTexCoord3iv )(const GLint *v);
324 extern void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r);
325 extern void ( APIENTRY * qglTexCoord3sv )(const GLshort *v);
326 extern void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
327 extern void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v);
328 extern void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
329 extern void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v);
330 extern void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
331 extern void ( APIENTRY * qglTexCoord4iv )(const GLint *v);
332 extern void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
333 extern void ( APIENTRY * qglTexCoord4sv )(const GLshort *v);
334 extern void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
335 extern void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param);
336 extern void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
337 extern void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param);
338 extern void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params);
339 extern void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param);
340 extern void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
341 extern void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param);
342 extern void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
343 extern void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param);
344 extern void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
345 extern void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
346 extern void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
347 extern void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param);
348 extern void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
349 extern void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param);
350 extern void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
351 extern void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
352 extern void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
353 extern void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z);
354 extern void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z);
355 extern void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y);
356 extern void ( APIENTRY * qglVertex2dv )(const GLdouble *v);
357 extern void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y);
358 extern void ( APIENTRY * qglVertex2fv )(const GLfloat *v);
359 extern void ( APIENTRY * qglVertex2i )(GLint x, GLint y);
360 extern void ( APIENTRY * qglVertex2iv )(const GLint *v);
361 extern void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y);
362 extern void ( APIENTRY * qglVertex2sv )(const GLshort *v);
363 extern void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z);
364 extern void ( APIENTRY * qglVertex3dv )(const GLdouble *v);
365 extern void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z);
366 extern void ( APIENTRY * qglVertex3fv )(const GLfloat *v);
367 extern void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z);
368 extern void ( APIENTRY * qglVertex3iv )(const GLint *v);
369 extern void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z);
370 extern void ( APIENTRY * qglVertex3sv )(const GLshort *v);
371 extern void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
372 extern void ( APIENTRY * qglVertex4dv )(const GLdouble *v);
373 extern void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
374 extern void ( APIENTRY * qglVertex4fv )(const GLfloat *v);
375 extern void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w);
376 extern void ( APIENTRY * qglVertex4iv )(const GLint *v);
377 extern void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
378 extern void ( APIENTRY * qglVertex4sv )(const GLshort *v);
379 extern void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
380 extern void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
381 
382 extern void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value );
383 extern void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value );
384 extern void ( APIENTRY * qglColorTableEXT)( GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid * );
385 
386 extern void ( APIENTRY * qglLockArraysEXT) (int , int);
387 extern void ( APIENTRY * qglUnlockArraysEXT) (void);
388 
389 extern void ( APIENTRY * qglMTexCoord2fSGIS)( GLenum, GLfloat, GLfloat );
390 extern void ( APIENTRY * qglSelectTextureSGIS)( GLenum );
391 
392 extern void ( APIENTRY * qglActiveTextureARB)( GLenum );
393 extern void ( APIENTRY * qglClientActiveTextureARB)( GLenum );
394 
395 #ifdef _WIN32
396 
397 extern int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *);
398 extern int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
399 extern int ( WINAPI * qwglGetPixelFormat)(HDC);
400 extern BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
401 extern BOOL ( WINAPI * qwglSwapBuffers)(HDC);
402 
403 extern BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT);
404 extern HGLRC ( WINAPI * qwglCreateContext)(HDC);
405 extern HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int);
406 extern BOOL ( WINAPI * qwglDeleteContext)(HGLRC);
407 extern HGLRC ( WINAPI * qwglGetCurrentContext)(VOID);
408 extern HDC ( WINAPI * qwglGetCurrentDC)(VOID);
409 extern PROC ( WINAPI * qwglGetProcAddress)(LPCSTR);
410 extern BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC);
411 extern BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC);
412 extern BOOL ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
413 
414 extern BOOL ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT,
416 
417 extern BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT,
419 extern int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int,
420  CONST COLORREF *);
421 extern int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int,
422  COLORREF *);
423 extern BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL);
424 extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
425 
426 extern BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval );
427 
428 extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue );
429 extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue );
430 
431 #endif
432 
433 #ifdef __linux__
434 
435 // local function in dll
436 extern void *qwglGetProcAddress(char *symbol);
437 
438 extern void (*qgl3DfxSetPaletteEXT)(GLuint *);
439 
440 /*
441 //FX Mesa Functions
442 extern fxMesaContext (*qfxMesaCreateContext)(GLuint win, GrScreenResolution_t, GrScreenRefresh_t, const GLint attribList[]);
443 extern fxMesaContext (*qfxMesaCreateBestContext)(GLuint win, GLint width, GLint height, const GLint attribList[]);
444 extern void (*qfxMesaDestroyContext)(fxMesaContext ctx);
445 extern void (*qfxMesaMakeCurrent)(fxMesaContext ctx);
446 extern fxMesaContext (*qfxMesaGetCurrentContext)(void);
447 extern void (*qfxMesaSwapBuffers)(void);
448 */
449 
450 //GLX Functions
451 extern XVisualInfo * (*qglXChooseVisual)( Display *dpy, int screen, int *attribList );
452 extern GLXContext (*qglXCreateContext)( Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct );
453 extern void (*qglXDestroyContext)( Display *dpy, GLXContext ctx );
454 extern Bool (*qglXMakeCurrent)( Display *dpy, GLXDrawable drawable, GLXContext ctx);
455 extern void (*qglXCopyContext)( Display *dpy, GLXContext src, GLXContext dst, GLuint mask );
456 extern void (*qglXSwapBuffers)( Display *dpy, GLXDrawable drawable );
457 
458 // 3dfxSetPaletteEXT shunt
459 void Fake_glColorTableEXT( GLenum target, GLenum internalformat,
461  const GLvoid *table );
462 
463 #endif // linux
464 
465 /*
466 ** extension constants
467 */
468 #define GL_POINT_SIZE_MIN_EXT 0x8126
469 #define GL_POINT_SIZE_MAX_EXT 0x8127
470 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
471 #define GL_DISTANCE_ATTENUATION_EXT 0x8129
472 
473 #ifdef __sgi
474 #define GL_SHARED_TEXTURE_PALETTE_EXT GL_TEXTURE_COLOR_TABLE_SGI
475 #else
476 #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
477 #endif
478 
479 #define GL_TEXTURE0_SGIS 0x835E
480 #define GL_TEXTURE1_SGIS 0x835F
481 #define GL_TEXTURE0_ARB 0x84C0
482 #define GL_TEXTURE1_ARB 0x84C1
483 
485 
486 #endif
q
GLdouble GLdouble GLdouble q
Definition: qgl.h:326
yfactor
GLfloat yfactor
Definition: qgl.h:243
stride
GLenum GLsizei stride
Definition: qgl.h:96
zNear
GLdouble GLdouble GLdouble GLdouble zNear
Definition: qgl.h:141
xoffset
GLint GLint xoffset
Definition: qgl.h:100
format
GLsizei GLenum format
Definition: qgl.h:113
v2
GLdouble GLdouble GLint GLint GLdouble GLdouble v2
Definition: qgl.h:209
pname
GLenum pname
Definition: qgl.h:150
yorig
GLsizei GLfloat GLfloat yorig
Definition: qgl.h:51
first
GLint first
Definition: qgl.h:110
y
GLint y
Definition: qgl.h:97
pixels
GLsizei GLenum GLenum const GLvoid * pixels
Definition: qgl.h:113
mask
GLint GLuint mask
Definition: qgl.h:299
y1
GLdouble y1
Definition: qgl.h:283
mapsize
GLsizei mapsize
Definition: qgl.h:236
pattern
GLushort pattern
Definition: qgl.h:199
GLsizei
GLsizei
Definition: qgl.h:384
PROC
PROC(WINAPI *qwglGetProcAddress)(LPCSTR)
HGLRC
HGLRC
Definition: qgl.h:403
r
GLdouble GLdouble r
Definition: qgl.h:318
GLint
GLint(APIENTRY *qglRenderMode)(GLenum mode)
uorder
GLdouble GLdouble GLint GLint uorder
Definition: qgl.h:209
xmove
GLsizei GLfloat GLfloat GLfloat xmove
Definition: qgl.h:51
units
GLfloat units
Definition: qgl.h:246
qboolean
qboolean
Definition: q_shared.h:63
i
int i
Definition: q_shared.c:305
qglGetString
const GLubyte *APIENTRY * qglGetString(GLenum name)
x2
GLdouble GLdouble x2
Definition: qgl.h:283
pointer
GLenum GLsizei const GLvoid * pointer
Definition: qgl.h:96
vn
GLdouble GLdouble GLint vn
Definition: qgl.h:213
zfail
GLenum zfail
Definition: qgl.h:301
params
const GLfloat * params
Definition: qgl.h:137
value
GLfloat value
Definition: qgl.h:45
ustride
GLdouble GLdouble GLint ustride
Definition: qgl.h:209
j1
GLint GLint GLint j1
Definition: qgl.h:130
DWORD
DWORD
Definition: qgl.h:412
QGL_Shutdown
void QGL_Shutdown(void)
Definition: qgl_win.c:2643
internalformat
GLint GLint internalformat
Definition: qgl.h:345
right
GLdouble right
Definition: qgl.h:141
u
static int u
Definition: r_part.c:472
level
GLint level
Definition: qgl.h:98
v
GLdouble v
Definition: qgl.h:125
indices
GLsizei GLenum const GLvoid * indices
Definition: qgl.h:112
range
GLsizei range
Definition: qgl.h:103
LPGLYPHMETRICSFLOAT
LPGLYPHMETRICSFLOAT
Definition: qgl.h:415
width
GLint GLsizei width
Definition: qgl.h:97
pBlue
unsigned char unsigned char * pBlue
Definition: qgl.h:428
QGL_Init
qboolean QGL_Init(const char *dllname)
Definition: qgl_win.c:3032
i2
GLint GLint i2
Definition: qgl.h:129
u2
GLdouble GLdouble u2
Definition: qgl.h:207
void
void(APIENTRY *qglAccum)(GLenum op
type
GLenum type
Definition: qgl.h:54
zpass
GLenum GLenum zpass
Definition: qgl.h:301
ref
GLclampf ref
Definition: qgl.h:46
alpha
GLfloat GLfloat GLfloat alpha
Definition: qgl.h:56
FLOAT
FLOAT
Definition: qgl.h:414
param
GLfloat param
Definition: qgl.h:136
mode
GLenum mode
Definition: qgl.h:95
i1
GLint i1
Definition: qgl.h:129
int
const GLvoid int
Definition: qgl.h:386
top
GLdouble GLdouble GLdouble top
Definition: qgl.h:141
nz
GLbyte GLbyte nz
Definition: qgl.h:223
texture
GLuint texture
Definition: qgl.h:50
UINT
CONST PIXELFORMATDESCRIPTOR UINT
Definition: qgl.h:398
ymove
GLsizei GLfloat GLfloat GLfloat GLfloat ymove
Definition: qgl.h:51
GLuint
GLuint(APIENTRY *qglGenLists)(GLsizei range)
GLboolean
GLboolean(APIENTRY *qglAreTexturesResident)(GLsizei n
j2
GLint GLint GLint GLint j2
Definition: qgl.h:130
yoffset
GLint GLint GLint yoffset
Definition: qgl.h:101
residences
const GLuint GLboolean * residences
Definition: qgl.h:47
GLfloat
GLfloat
Definition: qgl.h:389
GLenum
GLenum
Definition: qgl.h:384
ny
GLbyte ny
Definition: qgl.h:223
name
cvar_t * name
Definition: cl_main.c:79
LPPIXELFORMATDESCRIPTOR
CONST PIXELFORMATDESCRIPTOR LPPIXELFORMATDESCRIPTOR
Definition: qgl.h:398
s
static fixed16_t s
Definition: r_scan.c:30
values
GLfloat * values
Definition: qgl.h:157
textures
const GLuint * textures
Definition: qgl.h:47
BOOL
CONST COLORREF COLORREF BOOL
Definition: qgl.h:423
pGreen
unsigned char * pGreen
Definition: qgl.h:428
priorities
const GLuint const GLclampf * priorities
Definition: qgl.h:252
HDC
HDC(WINAPI *qwglGetCurrentDC)(VOID)
vorder
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint vorder
Definition: qgl.h:209
v1
GLdouble GLdouble GLint GLint GLdouble v1
Definition: qgl.h:209
order
GLdouble GLdouble GLint GLint order
Definition: qgl.h:207
green
GLfloat green
Definition: qgl.h:56
z
GLdouble GLdouble z
Definition: qgl.h:265
buffer
GLenum GLfloat * buffer
Definition: qgl.h:133
APIENTRY
#define APIENTRY
Definition: qgl.h:42
xorig
GLsizei GLfloat xorig
Definition: qgl.h:51
j
GLint j
Definition: qgl.h:132
height
GLsizei height
Definition: qgl.h:51
bitmap
GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte * bitmap
Definition: qgl.h:51
query
GLenum query
Definition: qgl.h:152
lists
GLenum const GLvoid * lists
Definition: qgl.h:54
zFar
GLclampd zFar
Definition: qgl.h:107
border
GLint GLenum GLint GLint GLsizei GLint border
Definition: qgl.h:98
blue
GLfloat GLfloat blue
Definition: qgl.h:56
internalFormat
GLint GLenum internalFormat
Definition: qgl.h:98
u1
GLdouble u1
Definition: qgl.h:207
t
GLdouble t
Definition: qgl.h:310
bottom
GLdouble GLdouble bottom
Definition: qgl.h:141
w
GLdouble GLdouble GLdouble w
Definition: qgl.h:273
vstride
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint vstride
Definition: qgl.h:209
gl_texture0
int gl_texture0
Definition: gl_rmain.c:35
count
GLint GLsizei count
Definition: qgl.h:110
gl_texture1
int gl_texture1
Definition: qgl.h:484
LPLAYERPLANEDESCRIPTOR
LPLAYERPLANEDESCRIPTOR
Definition: qgl.h:418
equation
const GLdouble * equation
Definition: qgl.h:61
y2
GLdouble GLdouble GLdouble y2
Definition: qgl.h:283
x
GLint GLenum GLint x
Definition: qgl.h:98
dfactor
GLenum dfactor
Definition: qgl.h:52
points
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: qgl.h:207