Quake II RTX doxygen  1.0 dev
dynamic.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 modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (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. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 
19 #ifndef QGL_H
20 #define QGL_H
21 
22 #if USE_SDL
23 #include <SDL_opengl.h>
24 #else // USE_SDL
25 #ifdef _MSC_VER
26 #define WIN32_LEAN_AND_MEAN 1
27 #include <windows.h>
28 #endif // _MSC_VER
29 #include <GL/gl.h>
30 #include <GL/glext.h>
31 #ifndef APIENTRY
32 #define APIENTRY
33 #endif
34 #endif // !USE_SDL
35 
36 // subset of OpenGL 1.1 core functions
37 #define QGL_core_IMP \
38  QGL(AlphaFunc); \
39  QGL(BindTexture); \
40  QGL(BlendFunc); \
41  QGL(Clear); \
42  QGL(ClearColor); \
43  QGL(ClearDepth); \
44  QGL(ClearStencil); \
45  QGL(Color4f); \
46  QGL(Color4fv); \
47  QGL(ColorMask); \
48  QGL(ColorPointer); \
49  QGL(CopyTexImage2D); \
50  QGL(CopyTexSubImage2D); \
51  QGL(CullFace); \
52  QGL(DeleteTextures); \
53  QGL(DepthFunc); \
54  QGL(DepthMask); \
55  QGL(DepthRange); \
56  QGL(Disable); \
57  QGL(DisableClientState); \
58  QGL(DrawArrays); \
59  QGL(DrawElements); \
60  QGL(Enable); \
61  QGL(EnableClientState); \
62  QGL(Finish); \
63  QGL(Flush); \
64  QGL(Fogf); \
65  QGL(Fogfv); \
66  QGL(FrontFace); \
67  QGL(Frustum); \
68  QGL(GenTextures); \
69  QGL(GetError); \
70  QGL(GetFloatv); \
71  QGL(GetIntegerv); \
72  QGL(GetString); \
73  QGL(Hint); \
74  QGL(IsEnabled); \
75  QGL(IsTexture); \
76  QGL(LightModelf); \
77  QGL(LightModelfv); \
78  QGL(Lightf); \
79  QGL(Lightfv); \
80  QGL(LineWidth); \
81  QGL(LoadIdentity); \
82  QGL(LoadMatrixf); \
83  QGL(LogicOp); \
84  QGL(Materialf); \
85  QGL(Materialfv); \
86  QGL(MatrixMode); \
87  QGL(MultMatrixf); \
88  QGL(Normal3f); \
89  QGL(Normal3fv); \
90  QGL(NormalPointer); \
91  QGL(Ortho); \
92  QGL(PixelStorei); \
93  QGL(PointSize); \
94  QGL(PolygonMode); \
95  QGL(PolygonOffset); \
96  QGL(PopMatrix); \
97  QGL(PushMatrix); \
98  QGL(ReadPixels); \
99  QGL(Rotatef); \
100  QGL(Scalef); \
101  QGL(Scissor); \
102  QGL(ShadeModel); \
103  QGL(StencilFunc); \
104  QGL(StencilMask); \
105  QGL(StencilOp); \
106  QGL(TexCoordPointer); \
107  QGL(TexEnvf); \
108  QGL(TexEnvfv); \
109  QGL(TexImage2D); \
110  QGL(TexParameterf); \
111  QGL(TexParameterfv); \
112  QGL(TexSubImage2D); \
113  QGL(Translatef); \
114  QGL(VertexPointer); \
115  QGL(Viewport);
116 
117 // GL_ARB_fragment_program
118 #define QGL_ARB_fragment_program_IMP \
119  QGL(ProgramStringARB); \
120  QGL(BindProgramARB); \
121  QGL(DeleteProgramsARB); \
122  QGL(GenProgramsARB); \
123  QGL(ProgramEnvParameter4fvARB); \
124  QGL(ProgramLocalParameter4fvARB); \
125  QGL(GetProgramEnvParameterfvARB); \
126  QGL(GetProgramLocalParameterfvARB); \
127  QGL(GetProgramivARB); \
128  QGL(GetProgramStringARB); \
129  QGL(IsProgramARB);
130 
131 // GL_ARB_multitexture
132 #define QGL_ARB_multitexture_IMP \
133  QGL(ActiveTextureARB); \
134  QGL(ClientActiveTextureARB);
135 
136 // GL_ARB_vertex_buffer_object
137 #define QGL_ARB_vertex_buffer_object_IMP \
138  QGL(BindBufferARB); \
139  QGL(DeleteBuffersARB); \
140  QGL(GenBuffersARB); \
141  QGL(IsBufferARB); \
142  QGL(BufferDataARB); \
143  QGL(BufferSubDataARB); \
144  QGL(GetBufferSubDataARB); \
145  QGL(MapBufferARB); \
146  QGL(UnmapBufferARB); \
147  QGL(GetBufferParameterivARB); \
148  QGL(GetBufferPointervARB);
149 
150 // GL_EXT_compiled_vertex_array
151 #define QGL_EXT_compiled_vertex_array_IMP \
152  QGL(LockArraysEXT); \
153  QGL(UnlockArraysEXT);
154 
155 #define QGL_ARB_fragment_program (1 << 0)
156 #define QGL_ARB_multitexture (1 << 1)
157 #define QGL_ARB_vertex_buffer_object (1 << 2)
158 #define QGL_EXT_compiled_vertex_array (1 << 3)
159 #define QGL_EXT_texture_filter_anisotropic (1 << 4)
160 
161 #define QGL_3_0_core_functions (1 << 31)
162 
163 // ==========================================================
164 
165 // subset of OpenGL 1.1 core functions
166 typedef void (APIENTRY * qglAlphaFunc_t)(GLenum func, GLclampf ref);
167 typedef void (APIENTRY * qglBindTexture_t)(GLenum target, GLuint texture);
168 typedef void (APIENTRY * qglBlendFunc_t)(GLenum sfactor, GLenum dfactor);
169 typedef void (APIENTRY * qglClear_t)(GLbitfield mask);
170 typedef void (APIENTRY * qglClearColor_t)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
171 typedef void (APIENTRY * qglClearDepth_t)(GLclampd depth);
172 typedef void (APIENTRY * qglClearStencil_t)(GLint s);
173 typedef void (APIENTRY * qglColor4f_t)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
174 typedef void (APIENTRY * qglColor4fv_t)(const GLfloat *v);
175 typedef void (APIENTRY * qglColorMask_t)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
176 typedef void (APIENTRY * qglColorPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
177 typedef void (APIENTRY * qglCopyTexImage2D_t)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
178 typedef void (APIENTRY * qglCopyTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
179 typedef void (APIENTRY * qglCullFace_t)(GLenum mode);
180 typedef void (APIENTRY * qglDeleteTextures_t)(GLsizei n, const GLuint *textures);
181 typedef void (APIENTRY * qglDepthFunc_t)(GLenum func);
182 typedef void (APIENTRY * qglDepthMask_t)(GLboolean flag);
183 typedef void (APIENTRY * qglDepthRange_t)(GLclampd zNear, GLclampd zFar);
184 typedef void (APIENTRY * qglDisable_t)(GLenum cap);
185 typedef void (APIENTRY * qglDisableClientState_t)(GLenum array);
186 typedef void (APIENTRY * qglDrawArrays_t)(GLenum mode, GLint first, GLsizei count);
187 typedef void (APIENTRY * qglDrawElements_t)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
188 typedef void (APIENTRY * qglEnable_t)(GLenum cap);
189 typedef void (APIENTRY * qglEnableClientState_t)(GLenum array);
192 typedef void (APIENTRY * qglFogf_t)(GLenum pname, GLfloat param);
193 typedef void (APIENTRY * qglFogfv_t)(GLenum pname, const GLfloat *params);
194 typedef void (APIENTRY * qglFrontFace_t)(GLenum mode);
195 typedef void (APIENTRY * qglFrustum_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
196 typedef void (APIENTRY * qglGenTextures_t)(GLsizei n, GLuint *textures);
197 typedef GLenum (APIENTRY * qglGetError_t)(void);
198 typedef void (APIENTRY * qglGetFloatv_t)(GLenum pname, GLfloat *params);
199 typedef void (APIENTRY * qglGetIntegerv_t)(GLenum pname, GLint *params);
200 typedef const GLubyte * (APIENTRY * qglGetString_t)(GLenum name);
201 typedef void (APIENTRY * qglHint_t)(GLenum target, GLenum mode);
202 typedef GLboolean (APIENTRY * qglIsEnabled_t)(GLenum cap);
203 typedef GLboolean (APIENTRY * qglIsTexture_t)(GLuint texture);
204 typedef void (APIENTRY * qglLightModelf_t)(GLenum pname, GLfloat param);
205 typedef void (APIENTRY * qglLightModelfv_t)(GLenum pname, const GLfloat *params);
206 typedef void (APIENTRY * qglLightf_t)(GLenum light, GLenum pname, GLfloat param);
207 typedef void (APIENTRY * qglLightfv_t)(GLenum light, GLenum pname, const GLfloat *params);
208 typedef void (APIENTRY * qglLineWidth_t)(GLfloat width);
210 typedef void (APIENTRY * qglLoadMatrixf_t)(const GLfloat *m);
211 typedef void (APIENTRY * qglLogicOp_t)(GLenum opcode);
212 typedef void (APIENTRY * qglMaterialf_t)(GLenum face, GLenum pname, GLfloat param);
213 typedef void (APIENTRY * qglMaterialfv_t)(GLenum face, GLenum pname, const GLfloat *params);
214 typedef void (APIENTRY * qglMatrixMode_t)(GLenum mode);
215 typedef void (APIENTRY * qglMultMatrixf_t)(const GLfloat *m);
216 typedef void (APIENTRY * qglNormal3f_t)(GLfloat nx, GLfloat ny, GLfloat nz);
217 typedef void (APIENTRY * qglNormal3fv_t)(const GLfloat *v);
218 typedef void (APIENTRY * qglNormalPointer_t)(GLenum type, GLsizei stride, const GLvoid *pointer);
219 typedef void (APIENTRY * qglOrtho_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
220 typedef void (APIENTRY * qglPixelStorei_t)(GLenum pname, GLint param);
221 typedef void (APIENTRY * qglPointSize_t)(GLfloat size);
222 typedef void (APIENTRY * qglPolygonMode_t)(GLenum face, GLenum mode);
223 typedef void (APIENTRY * qglPolygonOffset_t)(GLfloat factor, GLfloat units);
226 typedef void (APIENTRY * qglReadPixels_t)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
227 typedef void (APIENTRY * qglRotatef_t)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
228 typedef void (APIENTRY * qglScalef_t)(GLfloat x, GLfloat y, GLfloat z);
229 typedef void (APIENTRY * qglScissor_t)(GLint x, GLint y, GLsizei width, GLsizei height);
230 typedef void (APIENTRY * qglShadeModel_t)(GLenum mode);
231 typedef void (APIENTRY * qglStencilFunc_t)(GLenum func, GLint ref, GLuint mask);
232 typedef void (APIENTRY * qglStencilMask_t)(GLuint mask);
233 typedef void (APIENTRY * qglStencilOp_t)(GLenum fail, GLenum zfail, GLenum zpass);
234 typedef void (APIENTRY * qglTexCoordPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
235 typedef void (APIENTRY * qglTexEnvf_t)(GLenum target, GLenum pname, GLfloat param);
236 typedef void (APIENTRY * qglTexEnvfv_t)(GLenum target, GLenum pname, const GLfloat *params);
237 typedef void (APIENTRY * qglTexImage2D_t)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
238 typedef void (APIENTRY * qglTexParameterf_t)(GLenum target, GLenum pname, GLfloat param);
239 typedef void (APIENTRY * qglTexParameterfv_t)(GLenum target, GLenum pname, const GLfloat *params);
240 typedef void (APIENTRY * qglTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
241 typedef void (APIENTRY * qglTranslatef_t)(GLfloat x, GLfloat y, GLfloat z);
242 typedef void (APIENTRY * qglVertexPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
243 typedef void (APIENTRY * qglViewport_t)(GLint x, GLint y, GLsizei width, GLsizei height);
244 
245 // OpenGL 3.0 core function
246 typedef void (APIENTRY * qglGenerateMipmap_t)(GLenum target);
247 
248 // GL_ARB_fragment_program
249 typedef void (APIENTRY * qglProgramStringARB_t)(GLenum target, GLenum format, GLsizei len, const GLvoid *string);
250 typedef void (APIENTRY * qglBindProgramARB_t)(GLenum target, GLuint program);
251 typedef void (APIENTRY * qglDeleteProgramsARB_t)(GLsizei n, const GLuint *programs);
252 typedef void (APIENTRY * qglGenProgramsARB_t)(GLsizei n, GLuint *programs);
253 typedef void (APIENTRY * qglProgramEnvParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params);
254 typedef void (APIENTRY * qglProgramLocalParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params);
255 typedef void (APIENTRY * qglGetProgramEnvParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params);
256 typedef void (APIENTRY * qglGetProgramLocalParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params);
257 typedef void (APIENTRY * qglGetProgramivARB_t)(GLenum target, GLenum pname, GLint *params);
258 typedef void (APIENTRY * qglGetProgramStringARB_t)(GLenum target, GLenum pname, GLvoid *string);
259 typedef GLboolean (APIENTRY * qglIsProgramARB_t)(GLuint program);
260 
261 // GL_ARB_multitexture
262 typedef void (APIENTRY * qglActiveTextureARB_t)(GLenum texture);
263 typedef void (APIENTRY * qglClientActiveTextureARB_t)(GLenum texture);
264 
265 // GL_ARB_vertex_buffer_object
266 typedef void (APIENTRY * qglBindBufferARB_t)(GLenum target, GLuint buffer);
267 typedef void (APIENTRY * qglDeleteBuffersARB_t)(GLsizei n, const GLuint *buffers);
268 typedef void (APIENTRY * qglGenBuffersARB_t)(GLsizei n, GLuint *buffers);
269 typedef GLboolean (APIENTRY * qglIsBufferARB_t)(GLuint buffer);
270 typedef void (APIENTRY * qglBufferDataARB_t)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
271 typedef void (APIENTRY * qglBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
272 typedef void (APIENTRY * qglGetBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
273 typedef GLvoid * (APIENTRY * qglMapBufferARB_t)(GLenum target, GLenum access);
274 typedef GLboolean (APIENTRY * qglUnmapBufferARB_t)(GLenum target);
275 typedef void (APIENTRY * qglGetBufferParameterivARB_t)(GLenum target, GLenum pname, GLint *params);
276 typedef void (APIENTRY * qglGetBufferPointervARB_t)(GLenum target, GLenum pname, GLvoid* *params);
277 
278 // GL_EXT_compiled_vertex_array
279 typedef void (APIENTRY * qglLockArraysEXT_t)(GLint first, GLsizei count);
281 
282 // ==========================================================
283 
284 qboolean QGL_Init(void);
285 void QGL_Shutdown(void);
286 void QGL_InitExtensions(unsigned mask);
287 void QGL_ShutdownExtensions(unsigned mask);
288 
289 unsigned QGL_ParseExtensionString(const char *s);
290 
291 #ifdef _DEBUG
292 void QGL_EnableLogging(unsigned mask);
293 void QGL_DisableLogging(unsigned mask);
294 void QGL_LogComment(const char *fmt, ...);
295 #endif
296 
297 #define QGL(x) extern qgl##x##_t qgl##x
303 #undef QGL
304 
306 
307 #endif // QGL_H
308 
qglShadeModel_t
void(APIENTRY * qglShadeModel_t)(GLenum mode)
Definition: dynamic.h:230
QGL_ARB_fragment_program_IMP
#define QGL_ARB_fragment_program_IMP
Definition: dynamic.h:118
qglPopMatrix_t
void(APIENTRY * qglPopMatrix_t)(void)
Definition: dynamic.h:224
qglMatrixMode_t
void(APIENTRY * qglMatrixMode_t)(GLenum mode)
Definition: dynamic.h:214
qglClearStencil_t
void(APIENTRY * qglClearStencil_t)(GLint s)
Definition: dynamic.h:172
qglReadPixels_t
void(APIENTRY * qglReadPixels_t)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
Definition: dynamic.h:226
qglIsTexture_t
GLboolean(APIENTRY * qglIsTexture_t)(GLuint texture)
Definition: dynamic.h:203
qglTexSubImage2D_t
void(APIENTRY * qglTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
Definition: dynamic.h:240
height
static int height
Definition: physical_sky.c:39
qglStencilMask_t
void(APIENTRY * qglStencilMask_t)(GLuint mask)
Definition: dynamic.h:232
qglPolygonOffset_t
void(APIENTRY * qglPolygonOffset_t)(GLfloat factor, GLfloat units)
Definition: dynamic.h:223
qglGenTextures_t
void(APIENTRY * qglGenTextures_t)(GLsizei n, GLuint *textures)
Definition: dynamic.h:196
QGL_EXT_compiled_vertex_array_IMP
#define QGL_EXT_compiled_vertex_array_IMP
Definition: dynamic.h:151
QGL_ARB_multitexture_IMP
#define QGL_ARB_multitexture_IMP
Definition: dynamic.h:132
qglDeleteBuffersARB_t
void(APIENTRY * qglDeleteBuffersARB_t)(GLsizei n, const GLuint *buffers)
Definition: dynamic.h:267
qglPolygonMode_t
void(APIENTRY * qglPolygonMode_t)(GLenum face, GLenum mode)
Definition: dynamic.h:222
qglFlush_t
void(APIENTRY * qglFlush_t)(void)
Definition: dynamic.h:191
qglGenerateMipmap
QGL_core_IMP QGL_ARB_fragment_program_IMP QGL_ARB_multitexture_IMP QGL_ARB_vertex_buffer_object_IMP QGL_EXT_compiled_vertex_array_IMP qglGenerateMipmap_t qglGenerateMipmap
Definition: dynamic.c:34
qglScissor_t
void(APIENTRY * qglScissor_t)(GLint x, GLint y, GLsizei width, GLsizei height)
Definition: dynamic.h:229
qglProgramStringARB_t
void(APIENTRY * qglProgramStringARB_t)(GLenum target, GLenum format, GLsizei len, const GLvoid *string)
Definition: dynamic.h:249
qglGetBufferSubDataARB_t
void(APIENTRY * qglGetBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)
Definition: dynamic.h:272
qglLightModelfv_t
void(APIENTRY * qglLightModelfv_t)(GLenum pname, const GLfloat *params)
Definition: dynamic.h:205
qglProgramEnvParameter4fvARB_t
void(APIENTRY * qglProgramEnvParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params)
Definition: dynamic.h:253
qglLoadMatrixf_t
void(APIENTRY * qglLoadMatrixf_t)(const GLfloat *m)
Definition: dynamic.h:210
qglNormalPointer_t
void(APIENTRY * qglNormalPointer_t)(GLenum type, GLsizei stride, const GLvoid *pointer)
Definition: dynamic.h:218
qglClearColor_t
void(APIENTRY * qglClearColor_t)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Definition: dynamic.h:170
QGL_Init
qboolean QGL_Init(void)
Definition: dynamic.c:670
qglLockArraysEXT_t
void(APIENTRY * qglLockArraysEXT_t)(GLint first, GLsizei count)
Definition: dynamic.h:279
qglMaterialf_t
void(APIENTRY * qglMaterialf_t)(GLenum face, GLenum pname, GLfloat param)
Definition: dynamic.h:212
qglMapBufferARB_t
GLvoid *(APIENTRY * qglMapBufferARB_t)(GLenum target, GLenum access)
Definition: dynamic.h:273
qglLightfv_t
void(APIENTRY * qglLightfv_t)(GLenum light, GLenum pname, const GLfloat *params)
Definition: dynamic.h:207
qglStencilOp_t
void(APIENTRY * qglStencilOp_t)(GLenum fail, GLenum zfail, GLenum zpass)
Definition: dynamic.h:233
qglFinish_t
void(APIENTRY * qglFinish_t)(void)
Definition: dynamic.h:190
qglGetProgramLocalParameterfvARB_t
void(APIENTRY * qglGetProgramLocalParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params)
Definition: dynamic.h:256
qglLineWidth_t
void(APIENTRY * qglLineWidth_t)(GLfloat width)
Definition: dynamic.h:208
qglGenerateMipmap_t
void(APIENTRY * qglGenerateMipmap_t)(GLenum target)
Definition: dynamic.h:246
qglViewport_t
void(APIENTRY * qglViewport_t)(GLint x, GLint y, GLsizei width, GLsizei height)
Definition: dynamic.h:243
qglFogf_t
void(APIENTRY * qglFogf_t)(GLenum pname, GLfloat param)
Definition: dynamic.h:192
qglTexParameterfv_t
void(APIENTRY * qglTexParameterfv_t)(GLenum target, GLenum pname, const GLfloat *params)
Definition: dynamic.h:239
qglScalef_t
void(APIENTRY * qglScalef_t)(GLfloat x, GLfloat y, GLfloat z)
Definition: dynamic.h:228
qglDrawElements_t
void(APIENTRY * qglDrawElements_t)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
Definition: dynamic.h:187
qglMultMatrixf_t
void(APIENTRY * qglMultMatrixf_t)(const GLfloat *m)
Definition: dynamic.h:215
qglTranslatef_t
void(APIENTRY * qglTranslatef_t)(GLfloat x, GLfloat y, GLfloat z)
Definition: dynamic.h:241
qglFrustum_t
void(APIENTRY * qglFrustum_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
Definition: dynamic.h:195
qglTexParameterf_t
void(APIENTRY * qglTexParameterf_t)(GLenum target, GLenum pname, GLfloat param)
Definition: dynamic.h:238
qglDeleteTextures_t
void(APIENTRY * qglDeleteTextures_t)(GLsizei n, const GLuint *textures)
Definition: dynamic.h:180
qglGetProgramEnvParameterfvARB_t
void(APIENTRY * qglGetProgramEnvParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params)
Definition: dynamic.h:255
QGL_ShutdownExtensions
void QGL_ShutdownExtensions(unsigned mask)
Definition: dynamic.c:643
qglDrawArrays_t
void(APIENTRY * qglDrawArrays_t)(GLenum mode, GLint first, GLsizei count)
Definition: dynamic.h:186
qglClientActiveTextureARB_t
void(APIENTRY * qglClientActiveTextureARB_t)(GLenum texture)
Definition: dynamic.h:263
qglAlphaFunc_t
void(APIENTRY * qglAlphaFunc_t)(GLenum func, GLclampf ref)
Definition: dynamic.h:166
qglColorPointer_t
void(APIENTRY * qglColorPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
Definition: dynamic.h:176
width
static int width
Definition: physical_sky.c:38
qglBlendFunc_t
void(APIENTRY * qglBlendFunc_t)(GLenum sfactor, GLenum dfactor)
Definition: dynamic.h:168
QGL_Shutdown
void QGL_Shutdown(void)
Definition: dynamic.c:631
qglIsBufferARB_t
GLboolean(APIENTRY * qglIsBufferARB_t)(GLuint buffer)
Definition: dynamic.h:269
qglGetString_t
const typedef GLubyte *APIENTRY * qglGetString_t(GLenum name)
qglGenProgramsARB_t
void(APIENTRY * qglGenProgramsARB_t)(GLsizei n, GLuint *programs)
Definition: dynamic.h:252
qglColor4fv_t
void(APIENTRY * qglColor4fv_t)(const GLfloat *v)
Definition: dynamic.h:174
qglFogfv_t
void(APIENTRY * qglFogfv_t)(GLenum pname, const GLfloat *params)
Definition: dynamic.h:193
QGL_ARB_vertex_buffer_object_IMP
#define QGL_ARB_vertex_buffer_object_IMP
Definition: dynamic.h:137
qglGetBufferPointervARB_t
void(APIENTRY * qglGetBufferPointervARB_t)(GLenum target, GLenum pname, GLvoid **params)
Definition: dynamic.h:276
qglDepthFunc_t
void(APIENTRY * qglDepthFunc_t)(GLenum func)
Definition: dynamic.h:181
qglMaterialfv_t
void(APIENTRY * qglMaterialfv_t)(GLenum face, GLenum pname, const GLfloat *params)
Definition: dynamic.h:213
qglNormal3f_t
void(APIENTRY * qglNormal3f_t)(GLfloat nx, GLfloat ny, GLfloat nz)
Definition: dynamic.h:216
m
static struct mdfour * m
Definition: mdfour.c:32
qglEnableClientState_t
void(APIENTRY * qglEnableClientState_t)(GLenum array)
Definition: dynamic.h:189
qglDepthRange_t
void(APIENTRY * qglDepthRange_t)(GLclampd zNear, GLclampd zFar)
Definition: dynamic.h:183
qglVertexPointer_t
void(APIENTRY * qglVertexPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
Definition: dynamic.h:242
qglDeleteProgramsARB_t
void(APIENTRY * qglDeleteProgramsARB_t)(GLsizei n, const GLuint *programs)
Definition: dynamic.h:251
void
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
qglGetFloatv_t
void(APIENTRY * qglGetFloatv_t)(GLenum pname, GLfloat *params)
Definition: dynamic.h:198
qglCopyTexSubImage2D_t
void(APIENTRY * qglCopyTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Definition: dynamic.h:178
qglTexCoordPointer_t
void(APIENTRY * qglTexCoordPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
Definition: dynamic.h:234
qglClear_t
void(APIENTRY * qglClear_t)(GLbitfield mask)
Definition: dynamic.h:169
QGL_core_IMP
#define QGL_core_IMP
Definition: dynamic.h:37
APIENTRY
#define APIENTRY
Definition: dynamic.h:32
qglDepthMask_t
void(APIENTRY * qglDepthMask_t)(GLboolean flag)
Definition: dynamic.h:182
qglBindProgramARB_t
void(APIENTRY * qglBindProgramARB_t)(GLenum target, GLuint program)
Definition: dynamic.h:250
qglTexEnvfv_t
void(APIENTRY * qglTexEnvfv_t)(GLenum target, GLenum pname, const GLfloat *params)
Definition: dynamic.h:236
qglLogicOp_t
void(APIENTRY * qglLogicOp_t)(GLenum opcode)
Definition: dynamic.h:211
qglIsProgramARB_t
GLboolean(APIENTRY * qglIsProgramARB_t)(GLuint program)
Definition: dynamic.h:259
qglGetIntegerv_t
void(APIENTRY * qglGetIntegerv_t)(GLenum pname, GLint *params)
Definition: dynamic.h:199
qglEnable_t
void(APIENTRY * qglEnable_t)(GLenum cap)
Definition: dynamic.h:188
qglColor4f_t
void(APIENTRY * qglColor4f_t)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
Definition: dynamic.h:173
qglPointSize_t
void(APIENTRY * qglPointSize_t)(GLfloat size)
Definition: dynamic.h:221
qglRotatef_t
void(APIENTRY * qglRotatef_t)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
Definition: dynamic.h:227
qglLightf_t
void(APIENTRY * qglLightf_t)(GLenum light, GLenum pname, GLfloat param)
Definition: dynamic.h:206
qglFrontFace_t
void(APIENTRY * qglFrontFace_t)(GLenum mode)
Definition: dynamic.h:194
qglProgramLocalParameter4fvARB_t
void(APIENTRY * qglProgramLocalParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params)
Definition: dynamic.h:254
qglGetBufferParameterivARB_t
void(APIENTRY * qglGetBufferParameterivARB_t)(GLenum target, GLenum pname, GLint *params)
Definition: dynamic.h:275
qglIsEnabled_t
GLboolean(APIENTRY * qglIsEnabled_t)(GLenum cap)
Definition: dynamic.h:202
qglLightModelf_t
void(APIENTRY * qglLightModelf_t)(GLenum pname, GLfloat param)
Definition: dynamic.h:204
qglActiveTextureARB_t
void(APIENTRY * qglActiveTextureARB_t)(GLenum texture)
Definition: dynamic.h:262
right
static vec3_t right
Definition: p_view.c:27
qglUnlockArraysEXT_t
void(APIENTRY * qglUnlockArraysEXT_t)(void)
Definition: dynamic.h:280
qglDisableClientState_t
void(APIENTRY * qglDisableClientState_t)(GLenum array)
Definition: dynamic.h:185
qglCullFace_t
void(APIENTRY * qglCullFace_t)(GLenum mode)
Definition: dynamic.h:179
qglDisable_t
void(APIENTRY * qglDisable_t)(GLenum cap)
Definition: dynamic.h:184
qglHint_t
void(APIENTRY * qglHint_t)(GLenum target, GLenum mode)
Definition: dynamic.h:201
level
level_locals_t level
Definition: g_main.c:22
qglOrtho_t
void(APIENTRY * qglOrtho_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
Definition: dynamic.h:219
qglCopyTexImage2D_t
void(APIENTRY * qglCopyTexImage2D_t)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Definition: dynamic.h:177
qglTexEnvf_t
void(APIENTRY * qglTexEnvf_t)(GLenum target, GLenum pname, GLfloat param)
Definition: dynamic.h:235
qglBindTexture_t
void(APIENTRY * qglBindTexture_t)(GLenum target, GLuint texture)
Definition: dynamic.h:167
qglGetProgramStringARB_t
void(APIENTRY * qglGetProgramStringARB_t)(GLenum target, GLenum pname, GLvoid *string)
Definition: dynamic.h:258
qglGetError_t
GLenum(APIENTRY * qglGetError_t)(void)
Definition: dynamic.h:197
gl.h
qglPushMatrix_t
void(APIENTRY * qglPushMatrix_t)(void)
Definition: dynamic.h:225
qglColorMask_t
void(APIENTRY * qglColorMask_t)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Definition: dynamic.h:175
QGL_InitExtensions
void QGL_InitExtensions(unsigned mask)
Definition: dynamic.c:683
qglStencilFunc_t
void(APIENTRY * qglStencilFunc_t)(GLenum func, GLint ref, GLuint mask)
Definition: dynamic.h:231
qglLoadIdentity_t
void(APIENTRY * qglLoadIdentity_t)(void)
Definition: dynamic.h:209
qglUnmapBufferARB_t
GLboolean(APIENTRY * qglUnmapBufferARB_t)(GLenum target)
Definition: dynamic.h:274
qglNormal3fv_t
void(APIENTRY * qglNormal3fv_t)(const GLfloat *v)
Definition: dynamic.h:217
qglBufferDataARB_t
void(APIENTRY * qglBufferDataARB_t)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
Definition: dynamic.h:270
QGL_ParseExtensionString
unsigned QGL_ParseExtensionString(const char *s)
Definition: dynamic.c:712
qglClearDepth_t
void(APIENTRY * qglClearDepth_t)(GLclampd depth)
Definition: dynamic.h:171
qglBindBufferARB_t
void(APIENTRY * qglBindBufferARB_t)(GLenum target, GLuint buffer)
Definition: dynamic.h:266
qglBufferSubDataARB_t
void(APIENTRY * qglBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
Definition: dynamic.h:271
qglGetProgramivARB_t
void(APIENTRY * qglGetProgramivARB_t)(GLenum target, GLenum pname, GLint *params)
Definition: dynamic.h:257
qglPixelStorei_t
void(APIENTRY * qglPixelStorei_t)(GLenum pname, GLint param)
Definition: dynamic.h:220
qglGenBuffersARB_t
void(APIENTRY * qglGenBuffersARB_t)(GLsizei n, GLuint *buffers)
Definition: dynamic.h:268
qglTexImage2D_t
void(APIENTRY * qglTexImage2D_t)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
Definition: dynamic.h:237