blob: 84273a5b1aa15052589810e1be07bb57f43c2178 [file] [log] [blame]
Brian Paulcd963881999-12-10 20:01:06 +00001/* $Id: glapitable.h,v 1.3 1999/12/10 20:01:06 brianp Exp $ */
Brian Paul1210b0d1999-11-25 18:16:13 +00002
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.3
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28/*
29 * This file is not specific to Mesa. It defines a dispatch table
30 * which could be used by any number of OpenGL implementations.
31 * It's designed to be gl.h-independent as well. That is, it does
32 * not depend on any particular extensions being defined in the gl.h
33 * header. We #define extension symbols (like _GLAPI_EXT_blend_color)
34 * to determine which entry points to compile. Clients of this dispatcher
35 * (like Mesa) can #ifdef test these symbols to know how to fill in the
36 * table.
37 */
38
39
40#ifndef _GLAPI_TABLE_H
41#define _GLAPI_TABLE_H
42
43
44#include "GL/gl.h"
45
46
47/* Which OpenGL API revisisions are supported by the table: */
48#define _GLAPI_VERSION_1_1 1
49#define _GLAPI_VERSION_1_2 1
50
51/* And which extensions: */
52#define _GLAPI_ARB_imaging 1
53#define _GLAPI_ARB_multitexture 1
54#define _GLAPI_EXT_paletted_texture 1
55#define _GLAPI_EXT_compiled_vertex_array 1
56#define _GLAPI_EXT_point_parameters 1
57#define _GLAPI_EXT_polygon_offset 1
58#define _GLAPI_EXT_blend_minmax 1
59#define _GLAPI_EXT_blend_color 1
60#define _GLAPI_EXT_texture3D 1
61#define _GLAPI_EXT_texture_object 1
62#define _GLAPI_EXT_vertex_array 1
63#define _GLAPI_INGR_blend_func_separate 1
64#define _GLAPI_MESA_window_pos 1
65#define _GLAPI_MESA_resize_buffers 1
Brian Paulcd963881999-12-10 20:01:06 +000066#define _GLAPI_ARB_transpose_matrix 1
Brian Paul1210b0d1999-11-25 18:16:13 +000067
68
69
Brian Paul4329fd51999-11-27 21:30:10 +000070#define _GLAPI_EXTRA_SLOTS 1000
71
Brian Paul1210b0d1999-11-25 18:16:13 +000072
73/*
74 * This struct contains pointers for all the GL API entrypoints
75 * plus some reserved slots for dynamic extensions.
76 *
77 */
78struct _glapi_table
79{
80 /*
81 * OpenGL 1.0
82 */
83 void (*Accum)(GLenum, GLfloat);
84 void (*AlphaFunc)(GLenum, GLclampf);
85 void (*Begin)(GLenum);
86 void (*Bitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *);
87 void (*BlendFunc)(GLenum, GLenum);
88 void (*CallList)(GLuint list);
89 void (*CallLists)(GLsizei, GLenum, const GLvoid *);
90 void (*Clear)(GLbitfield);
91 void (*ClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat);
92 void (*ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
93 void (*ClearDepth)(GLclampd);
94 void (*ClearIndex)(GLfloat);
95 void (*ClearStencil)(GLint);
96 void (*ClipPlane)(GLenum, const GLdouble *);
97 void (*Color3b)(GLbyte, GLbyte, GLbyte);
98 void (*Color3bv)(const GLbyte *);
99 void (*Color3d)(GLdouble, GLdouble, GLdouble);
100 void (*Color3dv)(const GLdouble *);
101 void (*Color3f)(GLfloat, GLfloat, GLfloat);
102 void (*Color3fv)(const GLfloat *);
103 void (*Color3i)(GLint, GLint, GLint);
104 void (*Color3iv)(const GLint *);
105 void (*Color3s)(GLshort, GLshort, GLshort);
106 void (*Color3sv)(const GLshort *);
107 void (*Color3ub)(GLubyte, GLubyte, GLubyte);
108 void (*Color3ubv)(const GLubyte *);
109 void (*Color3ui)(GLuint, GLuint, GLuint);
110 void (*Color3uiv)(const GLuint *);
111 void (*Color3us)(GLushort, GLushort, GLushort);
112 void (*Color3usv)(const GLushort *);
113 void (*Color4b)(GLbyte, GLbyte, GLbyte, GLbyte);
114 void (*Color4bv)(const GLbyte *);
115 void (*Color4d)(GLdouble, GLdouble, GLdouble, GLdouble);
116 void (*Color4dv)(const GLdouble *);
117 void (*Color4f)(GLfloat, GLfloat, GLfloat, GLfloat);
118 void (*Color4fv)(const GLfloat *);
119 void (*Color4i)(GLint, GLint, GLint, GLint);
120 void (*Color4iv)(const GLint *);
121 void (*Color4s)(GLshort, GLshort, GLshort, GLshort);
122 void (*Color4sv)(const GLshort *);
123 void (*Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
124 void (*Color4ubv)(const GLubyte *);
125 void (*Color4ui)(GLuint, GLuint, GLuint, GLuint);
126 void (*Color4uiv)(const GLuint *);
127 void (*Color4us)(GLushort, GLushort, GLushort, GLushort);
128 void (*Color4usv)(const GLushort *);
129 void (*ColorMask)(GLboolean, GLboolean, GLboolean, GLboolean);
130 void (*ColorMaterial)(GLenum, GLenum);
131 void (*CopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum);
132 void (*CullFace)(GLenum);
133 void (*DeleteLists)(GLuint, GLsizei);
134 void (*DepthFunc)(GLenum);
135 void (*DepthMask)(GLboolean);
136 void (*DepthRange)(GLclampd, GLclampd);
137 void (*Disable)(GLenum);
138 void (*DrawBuffer)(GLenum);
139 void (*DrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
140 void (*EdgeFlag)(GLboolean);
141 void (*EdgeFlagv)(const GLboolean *);
142 void (*Enable)(GLenum);
143 void (*End)(void);
144 void (*EndList)(void);
145 void (*EvalCoord1d)(GLdouble);
146 void (*EvalCoord1dv)(const GLdouble *);
147 void (*EvalCoord1f)(GLfloat);
148 void (*EvalCoord1fv)(const GLfloat *);
149 void (*EvalCoord2d)(GLdouble u, GLdouble);
150 void (*EvalCoord2dv)(const GLdouble *);
151 void (*EvalCoord2f)(GLfloat u, GLfloat);
152 void (*EvalCoord2fv)(const GLfloat *);
153 void (*EvalMesh1)(GLenum, GLint, GLint);
154 void (*EvalMesh2)(GLenum, GLint, GLint, GLint, GLint);
155 void (*EvalPoint1)(GLint);
156 void (*EvalPoint2)(GLint, GLint);
157 void (*FeedbackBuffer)(GLsizei, GLenum, GLfloat *);
158 void (*Finish)(void);
159 void (*Flush)(void);
160 void (*Fogf)(GLenum, GLfloat);
161 void (*Fogfv)(GLenum, const GLfloat *);
162 void (*Fogi)(GLenum, GLint);
163 void (*Fogiv)(GLenum, const GLint *);
164 void (*FrontFace)(GLenum);
165 void (*Frustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
166 GLuint (*GenLists)(GLsizei);
167 void (*GetBooleanv)(GLenum, GLboolean *);
168 void (*GetClipPlane)(GLenum, GLdouble *);
169 void (*GetDoublev)(GLenum, GLdouble *);
170 GLenum (*GetError)(void);
171 void (*GetFloatv)(GLenum, GLfloat *);
172 void (*GetIntegerv)(GLenum, GLint *);
173 void (*GetLightfv)(GLenum light, GLenum, GLfloat *);
174 void (*GetLightiv)(GLenum light, GLenum, GLint *);
175 void (*GetMapdv)(GLenum, GLenum, GLdouble *);
176 void (*GetMapfv)(GLenum, GLenum, GLfloat *);
177 void (*GetMapiv)(GLenum, GLenum, GLint *);
178 void (*GetMaterialfv)(GLenum, GLenum, GLfloat *);
179 void (*GetMaterialiv)(GLenum, GLenum, GLint *);
180 void (*GetPixelMapfv)(GLenum, GLfloat *);
181 void (*GetPixelMapuiv)(GLenum, GLuint *);
182 void (*GetPixelMapusv)(GLenum, GLushort *);
183 void (*GetPolygonStipple)(GLubyte *);
184 const GLubyte* (*GetString)(GLenum name);
185 void (*GetTexEnvfv)(GLenum, GLenum, GLfloat *);
186 void (*GetTexEnviv)(GLenum, GLenum, GLint *);
187 void (*GetTexGendv)(GLenum coord, GLenum, GLdouble *);
188 void (*GetTexGenfv)(GLenum coord, GLenum, GLfloat *);
189 void (*GetTexGeniv)(GLenum coord, GLenum, GLint *);
190 void (*GetTexImage)(GLenum, GLint level, GLenum, GLenum, GLvoid *);
191 void (*GetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *);
192 void (*GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *);
193 void (*GetTexParameterfv)(GLenum, GLenum, GLfloat *);
194 void (*GetTexParameteriv)(GLenum, GLenum, GLint *);
195 void (*Hint)(GLenum, GLenum);
196 void (*IndexMask)(GLuint);
197 void (*Indexd)(GLdouble);
198 void (*Indexdv)(const GLdouble *);
199 void (*Indexf)(GLfloat);
200 void (*Indexfv)(const GLfloat *);
201 void (*Indexi)(GLint);
202 void (*Indexiv)(const GLint *);
203 void (*Indexs)(GLshort);
204 void (*Indexsv)(const GLshort *);
205 void (*InitNames)(void);
206 GLboolean (*IsEnabled)(GLenum);
207 GLboolean (*IsList)(GLuint);
208 void (*LightModelf)(GLenum, GLfloat);
209 void (*LightModelfv)(GLenum, const GLfloat *);
210 void (*LightModeli)(GLenum, GLint);
211 void (*LightModeliv)(GLenum, const GLint *);
212 void (*Lightf)(GLenum light, GLenum, GLfloat);
213 void (*Lightfv)(GLenum light, GLenum, const GLfloat *);
214 void (*Lighti)(GLenum light, GLenum, GLint);
215 void (*Lightiv)(GLenum light, GLenum, const GLint *);
216 void (*LineStipple)(GLint factor, GLushort);
217 void (*LineWidth)(GLfloat);
218 void (*ListBase)(GLuint);
219 void (*LoadIdentity)(void);
220 void (*LoadMatrixd)(const GLdouble *);
221 void (*LoadMatrixf)(const GLfloat *);
222 void (*LoadName)(GLuint);
223 void (*LogicOp)(GLenum);
224 void (*Map1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
225 void (*Map1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
226 void (*Map2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
227 void (*Map2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
228 void (*MapGrid1d)(GLint, GLdouble, GLdouble);
229 void (*MapGrid1f)(GLint, GLfloat, GLfloat);
230 void (*MapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble);
231 void (*MapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat);
232 void (*Materialf)(GLenum, GLenum, GLfloat);
233 void (*Materialfv)(GLenum, GLenum, const GLfloat *);
234 void (*Materiali)(GLenum, GLenum, GLint);
235 void (*Materialiv)(GLenum, GLenum, const GLint *);
236 void (*MatrixMode)(GLenum);
237 void (*MultMatrixd)(const GLdouble *);
238 void (*MultMatrixf)(const GLfloat *);
239 void (*NewList)(GLuint list, GLenum);
240 void (*Normal3b)(GLbyte, GLbyte, GLbyte);
241 void (*Normal3bv)(const GLbyte *);
242 void (*Normal3d)(GLdouble, GLdouble, GLdouble);
243 void (*Normal3dv)(const GLdouble *);
244 void (*Normal3f)(GLfloat, GLfloat, GLfloat);
245 void (*Normal3fv)(const GLfloat *);
246 void (*Normal3i)(GLint, GLint, GLint);
247 void (*Normal3iv)(const GLint *);
248 void (*Normal3s)(GLshort, GLshort, GLshort);
249 void (*Normal3sv)(const GLshort *);
250 void (*Ortho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
251 void (*PassThrough)(GLfloat);
252 void (*PixelMapfv)(GLenum, GLint, const GLfloat *);
253 void (*PixelMapuiv)(GLenum, GLint, const GLuint *);
254 void (*PixelMapusv)(GLenum, GLint, const GLushort *);
255 void (*PixelStoref)(GLenum, GLfloat);
256 void (*PixelStorei)(GLenum, GLint);
257 void (*PixelTransferf)(GLenum, GLfloat);
258 void (*PixelTransferi)(GLenum, GLint);
259 void (*PixelZoom)(GLfloat, GLfloat);
260 void (*PointSize)(GLfloat);
261 void (*PolygonMode)(GLenum, GLenum);
262 void (*PolygonOffset)(GLfloat, GLfloat);
263 void (*PolygonStipple)(const GLubyte *);
264 void (*PopAttrib)(void);
265 void (*PopMatrix)(void);
266 void (*PopName)(void);
267 void (*PushAttrib)(GLbitfield);
268 void (*PushMatrix)(void);
269 void (*PushName)(GLuint);
270 void (*RasterPos2d)(GLdouble, GLdouble);
271 void (*RasterPos2dv)(const GLdouble *);
272 void (*RasterPos2f)(GLfloat, GLfloat);
273 void (*RasterPos2fv)(const GLfloat *);
274 void (*RasterPos2i)(GLint, GLint);
275 void (*RasterPos2iv)(const GLint *);
276 void (*RasterPos2s)(GLshort, GLshort);
277 void (*RasterPos2sv)(const GLshort *);
278 void (*RasterPos3d)(GLdouble, GLdouble, GLdouble);
279 void (*RasterPos3dv)(const GLdouble *);
280 void (*RasterPos3f)(GLfloat, GLfloat, GLfloat);
281 void (*RasterPos3fv)(const GLfloat *);
282 void (*RasterPos3i)(GLint, GLint, GLint);
283 void (*RasterPos3iv)(const GLint *);
284 void (*RasterPos3s)(GLshort, GLshort, GLshort);
285 void (*RasterPos3sv)(const GLshort *);
286 void (*RasterPos4d)(GLdouble, GLdouble, GLdouble, GLdouble);
287 void (*RasterPos4dv)(const GLdouble *);
288 void (*RasterPos4f)(GLfloat, GLfloat, GLfloat, GLfloat);
289 void (*RasterPos4fv)(const GLfloat *);
290 void (*RasterPos4i)(GLint, GLint, GLint, GLint);
291 void (*RasterPos4iv)(const GLint *);
292 void (*RasterPos4s)(GLshort, GLshort, GLshort, GLshort);
293 void (*RasterPos4sv)(const GLshort *);
294 void (*ReadBuffer)(GLenum);
295 void (*ReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
296 void (*Rectd)(GLdouble, GLdouble, GLdouble, GLdouble);
297 void (*Rectdv)(const GLdouble *, const GLdouble *);
298 void (*Rectf)(GLfloat, GLfloat, GLfloat, GLfloat);
299 void (*Rectfv)(const GLfloat *, const GLfloat *);
300 void (*Recti)(GLint, GLint, GLint, GLint);
301 void (*Rectiv)(const GLint *, const GLint *);
302 void (*Rects)(GLshort, GLshort, GLshort, GLshort);
303 void (*Rectsv)(const GLshort *, const GLshort *);
304 GLint (*RenderMode)(GLenum);
305 void (*Rotated)(GLdouble, GLdouble, GLdouble, GLdouble);
306 void (*Rotatef)(GLfloat, GLfloat, GLfloat, GLfloat);
307 void (*Scaled)(GLdouble, GLdouble, GLdouble);
308 void (*Scalef)(GLfloat, GLfloat, GLfloat);
309 void (*Scissor)(GLint, GLint, GLsizei, GLsizei);
310 void (*SelectBuffer)(GLsizei, GLuint *);
311 void (*ShadeModel)(GLenum);
312 void (*StencilFunc)(GLenum, GLint, GLuint);
313 void (*StencilMask)(GLuint);
314 void (*StencilOp)(GLenum, GLenum, GLenum);
315 void (*TexCoord1d)(GLdouble);
316 void (*TexCoord1dv)(const GLdouble *);
317 void (*TexCoord1f)(GLfloat);
318 void (*TexCoord1fv)(const GLfloat *);
319 void (*TexCoord1i)(GLint);
320 void (*TexCoord1iv)(const GLint *);
321 void (*TexCoord1s)(GLshort);
322 void (*TexCoord1sv)(const GLshort *);
323 void (*TexCoord2d)(GLdouble, GLdouble);
324 void (*TexCoord2dv)(const GLdouble *);
325 void (*TexCoord2f)(GLfloat, GLfloat);
326 void (*TexCoord2fv)(const GLfloat *);
327 void (*TexCoord2i)(GLint, GLint);
328 void (*TexCoord2iv)(const GLint *);
329 void (*TexCoord2s)(GLshort, GLshort);
330 void (*TexCoord2sv)(const GLshort *);
331 void (*TexCoord3d)(GLdouble, GLdouble, GLdouble);
332 void (*TexCoord3dv)(const GLdouble *);
333 void (*TexCoord3f)(GLfloat, GLfloat, GLfloat);
334 void (*TexCoord3fv)(const GLfloat *);
335 void (*TexCoord3i)(GLint, GLint, GLint);
336 void (*TexCoord3iv)(const GLint *);
337 void (*TexCoord3s)(GLshort, GLshort, GLshort);
338 void (*TexCoord3sv)(const GLshort *);
339 void (*TexCoord4d)(GLdouble, GLdouble, GLdouble, GLdouble);
340 void (*TexCoord4dv)(const GLdouble *);
341 void (*TexCoord4f)(GLfloat, GLfloat, GLfloat, GLfloat);
342 void (*TexCoord4fv)(const GLfloat *);
343 void (*TexCoord4i)(GLint, GLint, GLint, GLint);
344 void (*TexCoord4iv)(const GLint *);
345 void (*TexCoord4s)(GLshort, GLshort, GLshort, GLshort);
346 void (*TexCoord4sv)(const GLshort *);
347 void (*TexEnvf)(GLenum, GLenum, GLfloat);
348 void (*TexEnvfv)(GLenum, GLenum, const GLfloat *);
349 void (*TexEnvi)(GLenum, GLenum, GLint);
350 void (*TexEnviv)(GLenum, GLenum, const GLint *);
351 void (*TexGend)(GLenum, GLenum, GLdouble);
352 void (*TexGendv)(GLenum, GLenum, const GLdouble *);
353 void (*TexGenf)(GLenum, GLenum, GLfloat);
354 void (*TexGenfv)(GLenum, GLenum, const GLfloat *);
355 void (*TexGeni)(GLenum, GLenum, GLint);
356 void (*TexGeniv)(GLenum, GLenum, const GLint *);
357 void (*TexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
358 void (*TexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
359 void (*TexParameterf)(GLenum, GLenum, GLfloat);
360 void (*TexParameterfv)(GLenum, GLenum, const GLfloat *);
361 void (*TexParameteri)(GLenum, GLenum, GLint);
362 void (*TexParameteriv)(GLenum, GLenum, const GLint *);
363 void (*Translated)(GLdouble, GLdouble, GLdouble);
364 void (*Translatef)(GLfloat, GLfloat, GLfloat);
365 void (*Vertex2d)(GLdouble, GLdouble);
366 void (*Vertex2dv)(const GLdouble *);
367 void (*Vertex2f)(GLfloat, GLfloat);
368 void (*Vertex2fv)(const GLfloat *);
369 void (*Vertex2i)(GLint, GLint);
370 void (*Vertex2iv)(const GLint *);
371 void (*Vertex2s)(GLshort, GLshort);
372 void (*Vertex2sv)(const GLshort *);
373 void (*Vertex3d)(GLdouble, GLdouble, GLdouble);
374 void (*Vertex3dv)(const GLdouble *);
375 void (*Vertex3f)(GLfloat, GLfloat, GLfloat);
376 void (*Vertex3fv)(const GLfloat *);
377 void (*Vertex3i)(GLint, GLint, GLint);
378 void (*Vertex3iv)(const GLint *);
379 void (*Vertex3s)(GLshort, GLshort, GLshort);
380 void (*Vertex3sv)(const GLshort *);
381 void (*Vertex4d)(GLdouble, GLdouble, GLdouble, GLdouble);
382 void (*Vertex4dv)(const GLdouble *);
383 void (*Vertex4f)(GLfloat, GLfloat, GLfloat, GLfloat);
384 void (*Vertex4fv)(const GLfloat *);
385 void (*Vertex4i)(GLint, GLint, GLint, GLint);
386 void (*Vertex4iv)(const GLint *);
387 void (*Vertex4s)(GLshort, GLshort, GLshort, GLshort);
388 void (*Vertex4sv)(const GLshort *);
389 void (*Viewport)(GLint, GLint, GLsizei, GLsizei);
390
391 /*
392 * OpenGL 1.1
393 */
394#ifdef _GLAPI_VERSION_1_1
395 GLboolean (*AreTexturesResident)(GLsizei, const GLuint *, GLboolean *);
396 void (*ArrayElement)(GLint);
397 void (*BindTexture)(GLenum, GLuint);
398 void (*ColorPointer)(GLint, GLenum, GLsizei, const GLvoid *);
399 void (*CopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
400 void (*CopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
401 void (*CopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
402 void (*CopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
403 void (*DeleteTextures)(GLsizei, const GLuint *);
404 void (*DisableClientState)(GLenum);
405 void (*DrawArrays)(GLenum, GLint, GLsizei);
406 void (*DrawElements)(GLenum, GLsizei, GLenum, const GLvoid *);
407 void (*EdgeFlagPointer)(GLsizei, const GLvoid *);
408 void (*EnableClientState)(GLenum);
409 void (*GenTextures)(GLsizei, GLuint *);
410 void (*GetPointerv)(GLenum, GLvoid **);
411 void (*IndexPointer)(GLenum, GLsizei, const GLvoid *);
412 void (*Indexub)(GLubyte);
413 void (*Indexubv)(const GLubyte *);
414 void (*InterleavedArrays)(GLenum, GLsizei, const GLvoid *);
415 GLboolean (*IsTexture)(GLuint);
416 void (*NormalPointer)(GLenum, GLsizei, const GLvoid *);
417 void (*PopClientAttrib)(void);
418 void (*PrioritizeTextures)(GLsizei, const GLuint *, const GLclampf *);
419 void (*PushClientAttrib)(GLbitfield);
420 void (*TexCoordPointer)(GLint, GLenum, GLsizei, const GLvoid *);
421 void (*TexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
422 void (*TexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
423 void (*VertexPointer)(GLint, GLenum, GLsizei, const GLvoid *);
424#endif
425
426 /*
427 * OpenGL 1.2
428 */
429#ifdef _GLAPI_VERSION_1_2
430 void (*CopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
431 void (*DrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
432 void (*TexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
433 void (*TexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
434
435#ifdef _GLAPI_ARB_imaging
436 void (*BlendColor)(GLclampf, GLclampf, GLclampf, GLclampf);
437 void (*BlendEquation)(GLenum);
438 void (*ColorSubTable)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
439 void (*ColorTable)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
440 void (*ColorTableParameterfv)(GLenum, GLenum, const GLfloat *);
441 void (*ColorTableParameteriv)(GLenum, GLenum, const GLint *);
442 void (*ConvolutionFilter1D)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
443 void (*ConvolutionFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
444 void (*ConvolutionParameterf)(GLenum, GLenum, GLfloat);
445 void (*ConvolutionParameterfv)(GLenum, GLenum, const GLfloat *);
446 void (*ConvolutionParameteri)(GLenum, GLenum, GLint);
447 void (*ConvolutionParameteriv)(GLenum, GLenum, const GLint *);
448 void (*CopyColorSubTable)(GLenum, GLsizei, GLint, GLint, GLsizei);
449 void (*CopyColorTable)(GLenum, GLenum, GLint, GLint, GLsizei);
450 void (*CopyConvolutionFilter1D)(GLenum, GLenum, GLint x, GLint y, GLsizei);
451 void (*CopyConvolutionFilter2D)(GLenum, GLenum, GLint x, GLint y, GLsizei, GLsizei);
452 void (*GetColorTable)(GLenum, GLenum, GLenum, GLvoid *);
453 void (*GetColorTableParameterfv)(GLenum, GLenum, GLfloat *);
454 void (*GetColorTableParameteriv)(GLenum, GLenum, GLint *);
455 void (*GetConvolutionFilter)(GLenum, GLenum, GLenum, GLvoid *);
456 void (*GetConvolutionParameterfv)(GLenum, GLenum, GLfloat *);
457 void (*GetConvolutionParameteriv)(GLenum, GLenum, GLint *);
458 void (*GetHistogram)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
459 void (*GetHistogramParameterfv)(GLenum, GLenum, GLfloat *);
460 void (*GetHistogramParameteriv)(GLenum, GLenum, GLint *);
461 void (*GetMinmax)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
462 void (*GetMinmaxParameterfv)(GLenum, GLenum, GLfloat *);
463 void (*GetMinmaxParameteriv)(GLenum, GLenum, GLint *);
464 void (*GetSeparableFilter)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
465 void (*Histogram)(GLenum, GLsizei, GLenum, GLboolean);
466 void (*Minmax)(GLenum, GLenum, GLboolean);
467 void (*ResetHistogram)(GLenum);
468 void (*ResetMinmax)(GLenum);
469 void (*SeparableFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
470#endif /*_GLAPI_ARB_imaging*/
471#endif /*_GLAPI_VERSION_1_2*/
472
473
474 /*
475 * Extensions
476 */
477
478#ifdef _GLAPI_EXT_paletted_texture
479 void (*ColorTableEXT)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
480 void (*ColorSubTableEXT)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
481 void (*GetColorTableEXT)(GLenum, GLenum, GLenum, GLvoid *);
482 void (*GetColorTableParameterfvEXT)(GLenum, GLenum, GLfloat *);
483 void (*GetColorTableParameterivEXT)(GLenum, GLenum, GLint *);
484#endif
485
486#ifdef _GLAPI_EXT_compiled_vertex_array
487 void (*LockArraysEXT)(GLint, GLsizei);
488 void (*UnlockArraysEXT)(void);
489#endif
490
491#ifdef _GLAPI_EXT_point_parameters
492 void (*PointParameterfEXT)(GLenum, GLfloat);
493 void (*PointParameterfvEXT)(GLenum, const GLfloat *);
494#endif
495
496#ifdef _GLAPI_EXT_polygon_offset
497 void (*PolygonOffsetEXT)(GLfloat, GLfloat);
498#endif
499
500#ifdef _GLAPI_EXT_blend_minmax
501 void (*BlendEquationEXT)(GLenum);
502#endif
503
504#ifdef _GLAPI_EXT_blend_color
505 void (*BlendColorEXT)(GLclampf, GLclampf, GLclampf, GLclampf);
506#endif
507
508#ifdef _GLAPI_ARB_multitexture
509 void (*ActiveTextureARB)(GLenum);
510 void (*ClientActiveTextureARB)(GLenum);
511 void (*MultiTexCoord1dARB)(GLenum, GLdouble);
512 void (*MultiTexCoord1dvARB)(GLenum, const GLdouble *);
513 void (*MultiTexCoord1fARB)(GLenum, GLfloat);
514 void (*MultiTexCoord1fvARB)(GLenum, const GLfloat *);
515 void (*MultiTexCoord1iARB)(GLenum, GLint);
516 void (*MultiTexCoord1ivARB)(GLenum, const GLint *);
517 void (*MultiTexCoord1sARB)(GLenum, GLshort);
518 void (*MultiTexCoord1svARB)(GLenum, const GLshort *);
519 void (*MultiTexCoord2dARB)(GLenum, GLdouble, GLdouble);
520 void (*MultiTexCoord2dvARB)(GLenum, const GLdouble *);
521 void (*MultiTexCoord2fARB)(GLenum, GLfloat, GLfloat);
522 void (*MultiTexCoord2fvARB)(GLenum, const GLfloat *);
523 void (*MultiTexCoord2iARB)(GLenum, GLint, GLint);
524 void (*MultiTexCoord2ivARB)(GLenum, const GLint *);
525 void (*MultiTexCoord2sARB)(GLenum, GLshort, GLshort);
526 void (*MultiTexCoord2svARB)(GLenum, const GLshort *);
527 void (*MultiTexCoord3dARB)(GLenum, GLdouble, GLdouble, GLdouble);
528 void (*MultiTexCoord3dvARB)(GLenum, const GLdouble *);
529 void (*MultiTexCoord3fARB)(GLenum, GLfloat, GLfloat, GLfloat);
530 void (*MultiTexCoord3fvARB)(GLenum, const GLfloat *);
531 void (*MultiTexCoord3iARB)(GLenum, GLint, GLint, GLint);
532 void (*MultiTexCoord3ivARB)(GLenum, const GLint *);
533 void (*MultiTexCoord3sARB)(GLenum, GLshort, GLshort, GLshort);
534 void (*MultiTexCoord3svARB)(GLenum, const GLshort *);
535 void (*MultiTexCoord4dARB)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
536 void (*MultiTexCoord4dvARB)(GLenum, const GLdouble *);
537 void (*MultiTexCoord4fARB)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
538 void (*MultiTexCoord4fvARB)(GLenum, const GLfloat *);
539 void (*MultiTexCoord4iARB)(GLenum, GLint, GLint, GLint, GLint);
540 void (*MultiTexCoord4ivARB)(GLenum, const GLint *);
541 void (*MultiTexCoord4sARB)(GLenum, GLshort, GLshort, GLshort, GLshort);
542 void (*MultiTexCoord4svARB)(GLenum, const GLshort *);
543#endif
544
545#ifdef _GLAPI_INGR_blend_func_separate
546 void (*BlendFuncSeparateINGR)(GLenum, GLenum, GLenum, GLenum);
547#endif
548
549#ifdef _GLAPI_MESA_window_pos
550 void (*WindowPos4fMESA)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
551#endif
552
553#ifdef _GLAPI_MESA_resize_buffers
554 void (*ResizeBuffersMESA)(void);
555#endif
556
Brian Paulcd963881999-12-10 20:01:06 +0000557#ifdef _GLAPI_ARB_transpose_matrix
558 void (*LoadTransposeMatrixdARB)(const GLdouble m[16]);
559 void (*LoadTransposeMatrixfARB)(const GLfloat m[16]);
560 void (*MultTransposeMatrixdARB)(const GLdouble m[16]);
561 void (*MultTransposeMatrixfARB)(const GLfloat m[16]);
562#endif
Brian Paul1210b0d1999-11-25 18:16:13 +0000563
Brian Paul4329fd51999-11-27 21:30:10 +0000564 void *ExtensionFuncs[_GLAPI_EXTRA_SLOTS];
Brian Paul1210b0d1999-11-25 18:16:13 +0000565};
566
567
568#endif