summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glapitable.h
blob: fb9555e4216a54597f8fa10600189e4fdb6e2237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
/* $Id: glapitable.h,v 1.2 1999/11/27 21:30:10 brianp Exp $ */

/*
 * Mesa 3-D graphics library
 * Version:  3.3
 *
 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


/*
 * This file is not specific to Mesa.  It defines a dispatch table
 * which could be used by any number of OpenGL implementations.
 * It's designed to be gl.h-independent as well.  That is, it does
 * not depend on any particular extensions being defined in the gl.h
 * header.  We #define extension symbols (like _GLAPI_EXT_blend_color)
 * to determine which entry points to compile.  Clients of this dispatcher
 * (like Mesa) can #ifdef test these symbols to know how to fill in the
 * table.
 */


#ifndef _GLAPI_TABLE_H
#define _GLAPI_TABLE_H


#include "GL/gl.h"


/* Which OpenGL API revisisions are supported by the table: */
#define _GLAPI_VERSION_1_1  1
#define _GLAPI_VERSION_1_2  1

/* And which extensions: */
#define _GLAPI_ARB_imaging  1
#define _GLAPI_ARB_multitexture  1
#define _GLAPI_EXT_paletted_texture  1
#define _GLAPI_EXT_compiled_vertex_array  1
#define _GLAPI_EXT_point_parameters  1
#define _GLAPI_EXT_polygon_offset  1
#define _GLAPI_EXT_blend_minmax  1
#define _GLAPI_EXT_blend_color  1
#define _GLAPI_EXT_texture3D 1
#define _GLAPI_EXT_texture_object 1
#define _GLAPI_EXT_vertex_array 1
#define _GLAPI_INGR_blend_func_separate  1
#define _GLAPI_MESA_window_pos  1
#define _GLAPI_MESA_resize_buffers  1



#define _GLAPI_EXTRA_SLOTS 1000


/*
 * This struct contains pointers for all the GL API entrypoints
 * plus some reserved slots for dynamic extensions.
 *
 */
struct _glapi_table
{
   /*
    * OpenGL 1.0
    */
   void (*Accum)(GLenum, GLfloat);
   void (*AlphaFunc)(GLenum, GLclampf);
   void (*Begin)(GLenum);
   void (*Bitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *);
   void (*BlendFunc)(GLenum, GLenum);
   void (*CallList)(GLuint list);
   void (*CallLists)(GLsizei, GLenum, const GLvoid *);
   void (*Clear)(GLbitfield);
   void (*ClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
   void (*ClearDepth)(GLclampd);
   void (*ClearIndex)(GLfloat);
   void (*ClearStencil)(GLint);
   void (*ClipPlane)(GLenum, const GLdouble *);
   void (*Color3b)(GLbyte, GLbyte, GLbyte);
   void (*Color3bv)(const GLbyte *);
   void (*Color3d)(GLdouble, GLdouble, GLdouble);
   void (*Color3dv)(const GLdouble *);
   void (*Color3f)(GLfloat, GLfloat, GLfloat);
   void (*Color3fv)(const GLfloat *);
   void (*Color3i)(GLint, GLint, GLint);
   void (*Color3iv)(const GLint *);
   void (*Color3s)(GLshort, GLshort, GLshort);
   void (*Color3sv)(const GLshort *);
   void (*Color3ub)(GLubyte, GLubyte, GLubyte);
   void (*Color3ubv)(const GLubyte *);
   void (*Color3ui)(GLuint, GLuint, GLuint);
   void (*Color3uiv)(const GLuint *);
   void (*Color3us)(GLushort, GLushort, GLushort);
   void (*Color3usv)(const GLushort *);
   void (*Color4b)(GLbyte, GLbyte, GLbyte, GLbyte);
   void (*Color4bv)(const GLbyte *);
   void (*Color4d)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*Color4dv)(const GLdouble *);
   void (*Color4f)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*Color4fv)(const GLfloat *);
   void (*Color4i)(GLint, GLint, GLint, GLint);
   void (*Color4iv)(const GLint *);
   void (*Color4s)(GLshort, GLshort, GLshort, GLshort);
   void (*Color4sv)(const GLshort *);
   void (*Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
   void (*Color4ubv)(const GLubyte *);
   void (*Color4ui)(GLuint, GLuint, GLuint, GLuint);
   void (*Color4uiv)(const GLuint *);
   void (*Color4us)(GLushort, GLushort, GLushort, GLushort);
   void (*Color4usv)(const GLushort *);
   void (*ColorMask)(GLboolean, GLboolean, GLboolean, GLboolean);
   void (*ColorMaterial)(GLenum, GLenum);
   void (*CopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum);
   void (*CullFace)(GLenum);
   void (*DeleteLists)(GLuint, GLsizei);
   void (*DepthFunc)(GLenum);
   void (*DepthMask)(GLboolean);
   void (*DepthRange)(GLclampd, GLclampd);
   void (*Disable)(GLenum);
   void (*DrawBuffer)(GLenum);
   void (*DrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*EdgeFlag)(GLboolean);
   void (*EdgeFlagv)(const GLboolean *);
   void (*Enable)(GLenum);
   void (*End)(void);
   void (*EndList)(void);
   void (*EvalCoord1d)(GLdouble);
   void (*EvalCoord1dv)(const GLdouble *);
   void (*EvalCoord1f)(GLfloat);
   void (*EvalCoord1fv)(const GLfloat *);
   void (*EvalCoord2d)(GLdouble u, GLdouble);
   void (*EvalCoord2dv)(const GLdouble *);
   void (*EvalCoord2f)(GLfloat u, GLfloat);
   void (*EvalCoord2fv)(const GLfloat *);
   void (*EvalMesh1)(GLenum, GLint, GLint);
   void (*EvalMesh2)(GLenum, GLint, GLint, GLint, GLint);
   void (*EvalPoint1)(GLint);
   void (*EvalPoint2)(GLint, GLint);
   void (*FeedbackBuffer)(GLsizei, GLenum, GLfloat *);
   void (*Finish)(void);
   void (*Flush)(void);
   void (*Fogf)(GLenum, GLfloat);
   void (*Fogfv)(GLenum, const GLfloat *);
   void (*Fogi)(GLenum, GLint);
   void (*Fogiv)(GLenum, const GLint *);
   void (*FrontFace)(GLenum);
   void (*Frustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
   GLuint (*GenLists)(GLsizei);
   void (*GetBooleanv)(GLenum, GLboolean *);
   void (*GetClipPlane)(GLenum, GLdouble *);
   void (*GetDoublev)(GLenum, GLdouble *);
   GLenum (*GetError)(void);
   void (*GetFloatv)(GLenum, GLfloat *);
   void (*GetIntegerv)(GLenum, GLint *);
   void (*GetLightfv)(GLenum light, GLenum, GLfloat *);
   void (*GetLightiv)(GLenum light, GLenum, GLint *);
   void (*GetMapdv)(GLenum, GLenum, GLdouble *);
   void (*GetMapfv)(GLenum, GLenum, GLfloat *);
   void (*GetMapiv)(GLenum, GLenum, GLint *);
   void (*GetMaterialfv)(GLenum, GLenum, GLfloat *);
   void (*GetMaterialiv)(GLenum, GLenum, GLint *);
   void (*GetPixelMapfv)(GLenum, GLfloat *);
   void (*GetPixelMapuiv)(GLenum, GLuint *);
   void (*GetPixelMapusv)(GLenum, GLushort *);
   void (*GetPolygonStipple)(GLubyte *);
   const GLubyte* (*GetString)(GLenum name);
   void (*GetTexEnvfv)(GLenum, GLenum, GLfloat *);
   void (*GetTexEnviv)(GLenum, GLenum, GLint *);
   void (*GetTexGendv)(GLenum coord, GLenum, GLdouble *);
   void (*GetTexGenfv)(GLenum coord, GLenum, GLfloat *);
   void (*GetTexGeniv)(GLenum coord, GLenum, GLint *);
   void (*GetTexImage)(GLenum, GLint level, GLenum, GLenum, GLvoid *);
   void (*GetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *);
   void (*GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *);
   void (*GetTexParameterfv)(GLenum, GLenum, GLfloat *);
   void (*GetTexParameteriv)(GLenum, GLenum, GLint *);
   void (*Hint)(GLenum, GLenum);
   void (*IndexMask)(GLuint);
   void (*Indexd)(GLdouble);
   void (*Indexdv)(const GLdouble *);
   void (*Indexf)(GLfloat);
   void (*Indexfv)(const GLfloat *);
   void (*Indexi)(GLint);
   void (*Indexiv)(const GLint *);
   void (*Indexs)(GLshort);
   void (*Indexsv)(const GLshort *);
   void (*InitNames)(void);
   GLboolean (*IsEnabled)(GLenum);
   GLboolean (*IsList)(GLuint);
   void (*LightModelf)(GLenum, GLfloat);
   void (*LightModelfv)(GLenum, const GLfloat *);
   void (*LightModeli)(GLenum, GLint);
   void (*LightModeliv)(GLenum, const GLint *);
   void (*Lightf)(GLenum light, GLenum, GLfloat);
   void (*Lightfv)(GLenum light, GLenum, const GLfloat *);
   void (*Lighti)(GLenum light, GLenum, GLint);
   void (*Lightiv)(GLenum light, GLenum, const GLint *);
   void (*LineStipple)(GLint factor, GLushort);
   void (*LineWidth)(GLfloat);
   void (*ListBase)(GLuint);
   void (*LoadIdentity)(void);
   void (*LoadMatrixd)(const GLdouble *);
   void (*LoadMatrixf)(const GLfloat *);
   void (*LoadName)(GLuint);
   void (*LogicOp)(GLenum);
   void (*Map1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
   void (*Map1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
   void (*Map2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
   void (*Map2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
   void (*MapGrid1d)(GLint, GLdouble, GLdouble);
   void (*MapGrid1f)(GLint, GLfloat, GLfloat);
   void (*MapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble);
   void (*MapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat);
   void (*Materialf)(GLenum, GLenum, GLfloat);
   void (*Materialfv)(GLenum, GLenum, const GLfloat *);
   void (*Materiali)(GLenum, GLenum, GLint);
   void (*Materialiv)(GLenum, GLenum, const GLint *);
   void (*MatrixMode)(GLenum);
   void (*MultMatrixd)(const GLdouble *);
   void (*MultMatrixf)(const GLfloat *);
   void (*NewList)(GLuint list, GLenum);
   void (*Normal3b)(GLbyte, GLbyte, GLbyte);
   void (*Normal3bv)(const GLbyte *);
   void (*Normal3d)(GLdouble, GLdouble, GLdouble);
   void (*Normal3dv)(const GLdouble *);
   void (*Normal3f)(GLfloat, GLfloat, GLfloat);
   void (*Normal3fv)(const GLfloat *);
   void (*Normal3i)(GLint, GLint, GLint);
   void (*Normal3iv)(const GLint *);
   void (*Normal3s)(GLshort, GLshort, GLshort);
   void (*Normal3sv)(const GLshort *);
   void (*Ortho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
   void (*PassThrough)(GLfloat);
   void (*PixelMapfv)(GLenum, GLint, const GLfloat *);
   void (*PixelMapuiv)(GLenum, GLint, const GLuint *);
   void (*PixelMapusv)(GLenum, GLint, const GLushort *);
   void (*PixelStoref)(GLenum, GLfloat);
   void (*PixelStorei)(GLenum, GLint);
   void (*PixelTransferf)(GLenum, GLfloat);
   void (*PixelTransferi)(GLenum, GLint);
   void (*PixelZoom)(GLfloat, GLfloat);
   void (*PointSize)(GLfloat);
   void (*PolygonMode)(GLenum, GLenum);
   void (*PolygonOffset)(GLfloat, GLfloat);
   void (*PolygonStipple)(const GLubyte *);
   void (*PopAttrib)(void);
   void (*PopMatrix)(void);
   void (*PopName)(void);
   void (*PushAttrib)(GLbitfield);
   void (*PushMatrix)(void);
   void (*PushName)(GLuint);
   void (*RasterPos2d)(GLdouble, GLdouble);
   void (*RasterPos2dv)(const GLdouble *);
   void (*RasterPos2f)(GLfloat, GLfloat);
   void (*RasterPos2fv)(const GLfloat *);
   void (*RasterPos2i)(GLint, GLint);
   void (*RasterPos2iv)(const GLint *);
   void (*RasterPos2s)(GLshort, GLshort);
   void (*RasterPos2sv)(const GLshort *);
   void (*RasterPos3d)(GLdouble, GLdouble, GLdouble);
   void (*RasterPos3dv)(const GLdouble *);
   void (*RasterPos3f)(GLfloat, GLfloat, GLfloat);
   void (*RasterPos3fv)(const GLfloat *);
   void (*RasterPos3i)(GLint, GLint, GLint);
   void (*RasterPos3iv)(const GLint *);
   void (*RasterPos3s)(GLshort, GLshort, GLshort);
   void (*RasterPos3sv)(const GLshort *);
   void (*RasterPos4d)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*RasterPos4dv)(const GLdouble *);
   void (*RasterPos4f)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*RasterPos4fv)(const GLfloat *);
   void (*RasterPos4i)(GLint, GLint, GLint, GLint);
   void (*RasterPos4iv)(const GLint *);
   void (*RasterPos4s)(GLshort, GLshort, GLshort, GLshort);
   void (*RasterPos4sv)(const GLshort *);
   void (*ReadBuffer)(GLenum);
   void (*ReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
   void (*Rectd)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*Rectdv)(const GLdouble *, const GLdouble *);
   void (*Rectf)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*Rectfv)(const GLfloat *, const GLfloat *);
   void (*Recti)(GLint, GLint, GLint, GLint);
   void (*Rectiv)(const GLint *, const GLint *);
   void (*Rects)(GLshort, GLshort, GLshort, GLshort);
   void (*Rectsv)(const GLshort *, const GLshort *);
   GLint (*RenderMode)(GLenum);
   void (*Rotated)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*Rotatef)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*Scaled)(GLdouble, GLdouble, GLdouble);
   void (*Scalef)(GLfloat, GLfloat, GLfloat);
   void (*Scissor)(GLint, GLint, GLsizei, GLsizei);
   void (*SelectBuffer)(GLsizei, GLuint *);
   void (*ShadeModel)(GLenum);
   void (*StencilFunc)(GLenum, GLint, GLuint);
   void (*StencilMask)(GLuint);
   void (*StencilOp)(GLenum, GLenum, GLenum);
   void (*TexCoord1d)(GLdouble);
   void (*TexCoord1dv)(const GLdouble *);
   void (*TexCoord1f)(GLfloat);
   void (*TexCoord1fv)(const GLfloat *);
   void (*TexCoord1i)(GLint);
   void (*TexCoord1iv)(const GLint *);
   void (*TexCoord1s)(GLshort);
   void (*TexCoord1sv)(const GLshort *);
   void (*TexCoord2d)(GLdouble, GLdouble);
   void (*TexCoord2dv)(const GLdouble *);
   void (*TexCoord2f)(GLfloat, GLfloat);
   void (*TexCoord2fv)(const GLfloat *);
   void (*TexCoord2i)(GLint, GLint);
   void (*TexCoord2iv)(const GLint *);
   void (*TexCoord2s)(GLshort, GLshort);
   void (*TexCoord2sv)(const GLshort *);
   void (*TexCoord3d)(GLdouble, GLdouble, GLdouble);
   void (*TexCoord3dv)(const GLdouble *);
   void (*TexCoord3f)(GLfloat, GLfloat, GLfloat);
   void (*TexCoord3fv)(const GLfloat *);
   void (*TexCoord3i)(GLint, GLint, GLint);
   void (*TexCoord3iv)(const GLint *);
   void (*TexCoord3s)(GLshort, GLshort, GLshort);
   void (*TexCoord3sv)(const GLshort *);
   void (*TexCoord4d)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*TexCoord4dv)(const GLdouble *);
   void (*TexCoord4f)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*TexCoord4fv)(const GLfloat *);
   void (*TexCoord4i)(GLint, GLint, GLint, GLint);
   void (*TexCoord4iv)(const GLint *);
   void (*TexCoord4s)(GLshort, GLshort, GLshort, GLshort);
   void (*TexCoord4sv)(const GLshort *);
   void (*TexEnvf)(GLenum, GLenum, GLfloat);
   void (*TexEnvfv)(GLenum, GLenum, const GLfloat *);
   void (*TexEnvi)(GLenum, GLenum, GLint);
   void (*TexEnviv)(GLenum, GLenum, const GLint *);
   void (*TexGend)(GLenum, GLenum, GLdouble);
   void (*TexGendv)(GLenum, GLenum, const GLdouble *);
   void (*TexGenf)(GLenum, GLenum, GLfloat);
   void (*TexGenfv)(GLenum, GLenum, const GLfloat *);
   void (*TexGeni)(GLenum, GLenum, GLint);
   void (*TexGeniv)(GLenum, GLenum, const GLint *);
   void (*TexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
   void (*TexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
   void (*TexParameterf)(GLenum, GLenum, GLfloat);
   void (*TexParameterfv)(GLenum, GLenum, const GLfloat *);
   void (*TexParameteri)(GLenum, GLenum, GLint);
   void (*TexParameteriv)(GLenum, GLenum, const GLint *);
   void (*Translated)(GLdouble, GLdouble, GLdouble);
   void (*Translatef)(GLfloat, GLfloat, GLfloat);
   void (*Vertex2d)(GLdouble, GLdouble);
   void (*Vertex2dv)(const GLdouble *);
   void (*Vertex2f)(GLfloat, GLfloat);
   void (*Vertex2fv)(const GLfloat *);
   void (*Vertex2i)(GLint, GLint);
   void (*Vertex2iv)(const GLint *);
   void (*Vertex2s)(GLshort, GLshort);
   void (*Vertex2sv)(const GLshort *);
   void (*Vertex3d)(GLdouble, GLdouble, GLdouble);
   void (*Vertex3dv)(const GLdouble *);
   void (*Vertex3f)(GLfloat, GLfloat, GLfloat);
   void (*Vertex3fv)(const GLfloat *);
   void (*Vertex3i)(GLint, GLint, GLint);
   void (*Vertex3iv)(const GLint *);
   void (*Vertex3s)(GLshort, GLshort, GLshort);
   void (*Vertex3sv)(const GLshort *);
   void (*Vertex4d)(GLdouble, GLdouble, GLdouble, GLdouble);
   void (*Vertex4dv)(const GLdouble *);
   void (*Vertex4f)(GLfloat, GLfloat, GLfloat, GLfloat);
   void (*Vertex4fv)(const GLfloat *);
   void (*Vertex4i)(GLint, GLint, GLint, GLint);
   void (*Vertex4iv)(const GLint *);
   void (*Vertex4s)(GLshort, GLshort, GLshort, GLshort);
   void (*Vertex4sv)(const GLshort *);
   void (*Viewport)(GLint, GLint, GLsizei, GLsizei);

   /*
    * OpenGL 1.1
    */
#ifdef _GLAPI_VERSION_1_1
   GLboolean (*AreTexturesResident)(GLsizei, const GLuint *, GLboolean *);
   void (*ArrayElement)(GLint);
   void (*BindTexture)(GLenum, GLuint);
   void (*ColorPointer)(GLint, GLenum, GLsizei, const GLvoid *);
   void (*CopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
   void (*CopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
   void (*CopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
   void (*CopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
   void (*DeleteTextures)(GLsizei, const GLuint *);
   void (*DisableClientState)(GLenum);
   void (*DrawArrays)(GLenum, GLint, GLsizei);
   void (*DrawElements)(GLenum, GLsizei, GLenum, const GLvoid *);
   void (*EdgeFlagPointer)(GLsizei, const GLvoid *);
   void (*EnableClientState)(GLenum);
   void (*GenTextures)(GLsizei, GLuint *);
   void (*GetPointerv)(GLenum, GLvoid **);
   void (*IndexPointer)(GLenum, GLsizei, const GLvoid *);
   void (*Indexub)(GLubyte);
   void (*Indexubv)(const GLubyte *);
   void (*InterleavedArrays)(GLenum, GLsizei, const GLvoid *);
   GLboolean (*IsTexture)(GLuint);
   void (*NormalPointer)(GLenum, GLsizei, const GLvoid *);
   void (*PopClientAttrib)(void);
   void (*PrioritizeTextures)(GLsizei, const GLuint *, const GLclampf *);
   void (*PushClientAttrib)(GLbitfield);
   void (*TexCoordPointer)(GLint, GLenum, GLsizei, const GLvoid *);
   void (*TexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*TexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*VertexPointer)(GLint, GLenum, GLsizei, const GLvoid *);
#endif

   /*
    * OpenGL 1.2
    */
#ifdef _GLAPI_VERSION_1_2
   void (*CopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
   void (*DrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
   void (*TexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
   void (*TexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);

#ifdef _GLAPI_ARB_imaging
   void (*BlendColor)(GLclampf, GLclampf, GLclampf, GLclampf);
   void (*BlendEquation)(GLenum);
   void (*ColorSubTable)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*ColorTable)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*ColorTableParameterfv)(GLenum, GLenum, const GLfloat *);
   void (*ColorTableParameteriv)(GLenum, GLenum, const GLint *);
   void (*ConvolutionFilter1D)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*ConvolutionFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*ConvolutionParameterf)(GLenum, GLenum, GLfloat);
   void (*ConvolutionParameterfv)(GLenum, GLenum, const GLfloat *);
   void (*ConvolutionParameteri)(GLenum, GLenum, GLint);
   void (*ConvolutionParameteriv)(GLenum, GLenum, const GLint *);
   void (*CopyColorSubTable)(GLenum, GLsizei, GLint, GLint, GLsizei);
   void (*CopyColorTable)(GLenum, GLenum, GLint, GLint, GLsizei);
   void (*CopyConvolutionFilter1D)(GLenum, GLenum, GLint x, GLint y, GLsizei);
   void (*CopyConvolutionFilter2D)(GLenum, GLenum, GLint x, GLint y, GLsizei, GLsizei);
   void (*GetColorTable)(GLenum, GLenum, GLenum, GLvoid *);
   void (*GetColorTableParameterfv)(GLenum, GLenum, GLfloat *);
   void (*GetColorTableParameteriv)(GLenum, GLenum, GLint *);
   void (*GetConvolutionFilter)(GLenum, GLenum, GLenum, GLvoid *);
   void (*GetConvolutionParameterfv)(GLenum, GLenum, GLfloat *);
   void (*GetConvolutionParameteriv)(GLenum, GLenum, GLint *);
   void (*GetHistogram)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
   void (*GetHistogramParameterfv)(GLenum, GLenum, GLfloat *);
   void (*GetHistogramParameteriv)(GLenum, GLenum, GLint *);
   void (*GetMinmax)(GLenum, GLboolean, GLenum, GLenum, GLvoid *);
   void (*GetMinmaxParameterfv)(GLenum, GLenum, GLfloat *);
   void (*GetMinmaxParameteriv)(GLenum, GLenum, GLint *);
   void (*GetSeparableFilter)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *);
   void (*Histogram)(GLenum, GLsizei, GLenum, GLboolean);
   void (*Minmax)(GLenum, GLenum, GLboolean);
   void (*ResetHistogram)(GLenum);
   void (*ResetMinmax)(GLenum);
   void (*SeparableFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *);
#endif  /*_GLAPI_ARB_imaging*/
#endif  /*_GLAPI_VERSION_1_2*/


   /*
    * Extensions
    */

#ifdef _GLAPI_EXT_paletted_texture
   void (*ColorTableEXT)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*ColorSubTableEXT)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   void (*GetColorTableEXT)(GLenum, GLenum, GLenum, GLvoid *);
   void (*GetColorTableParameterfvEXT)(GLenum, GLenum, GLfloat *);
   void (*GetColorTableParameterivEXT)(GLenum, GLenum, GLint *);
#endif

#ifdef _GLAPI_EXT_compiled_vertex_array
   void (*LockArraysEXT)(GLint, GLsizei);
   void (*UnlockArraysEXT)(void);
#endif

#ifdef _GLAPI_EXT_point_parameters
   void (*PointParameterfEXT)(GLenum, GLfloat);
   void (*PointParameterfvEXT)(GLenum, const GLfloat *);
#endif

#ifdef _GLAPI_EXT_polygon_offset
   void (*PolygonOffsetEXT)(GLfloat, GLfloat);
#endif

#ifdef _GLAPI_EXT_blend_minmax
   void (*BlendEquationEXT)(GLenum);
#endif

#ifdef _GLAPI_EXT_blend_color
   void (*BlendColorEXT)(GLclampf, GLclampf, GLclampf, GLclampf);
#endif

#ifdef _GLAPI_ARB_multitexture
   void (*ActiveTextureARB)(GLenum);
   void (*ClientActiveTextureARB)(GLenum);
   void (*MultiTexCoord1dARB)(GLenum, GLdouble);
   void (*MultiTexCoord1dvARB)(GLenum, const GLdouble *);
   void (*MultiTexCoord1fARB)(GLenum, GLfloat);
   void (*MultiTexCoord1fvARB)(GLenum, const GLfloat *);
   void (*MultiTexCoord1iARB)(GLenum, GLint);
   void (*MultiTexCoord1ivARB)(GLenum, const GLint *);
   void (*MultiTexCoord1sARB)(GLenum, GLshort);
   void (*MultiTexCoord1svARB)(GLenum, const GLshort *);
   void (*MultiTexCoord2dARB)(GLenum, GLdouble, GLdouble);
   void (*MultiTexCoord2dvARB)(GLenum, const GLdouble *);
   void (*MultiTexCoord2fARB)(GLenum, GLfloat, GLfloat);
   void (*MultiTexCoord2fvARB)(GLenum, const GLfloat *);
   void (*MultiTexCoord2iARB)(GLenum, GLint, GLint);
   void (*MultiTexCoord2ivARB)(GLenum, const GLint *);
   void (*MultiTexCoord2sARB)(GLenum, GLshort, GLshort);
   void (*MultiTexCoord2svARB)(GLenum, const GLshort *);
   void (*MultiTexCoord3dARB)(GLenum, GLdouble, GLdouble, GLdouble);
   void (*MultiTexCoord3dvARB)(GLenum, const GLdouble *);
   void (*MultiTexCoord3fARB)(GLenum, GLfloat, GLfloat, GLfloat);
   void (*MultiTexCoord3fvARB)(GLenum, const GLfloat *);
   void (*MultiTexCoord3iARB)(GLenum, GLint, GLint, GLint);
   void (*MultiTexCoord3ivARB)(GLenum, const GLint *);
   void (*MultiTexCoord3sARB)(GLenum, GLshort, GLshort, GLshort);
   void (*MultiTexCoord3svARB)(GLenum, const GLshort *);
   void (*MultiTexCoord4dARB)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
   void (*MultiTexCoord4dvARB)(GLenum, const GLdouble *);
   void (*MultiTexCoord4fARB)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
   void (*MultiTexCoord4fvARB)(GLenum, const GLfloat *);
   void (*MultiTexCoord4iARB)(GLenum, GLint, GLint, GLint, GLint);
   void (*MultiTexCoord4ivARB)(GLenum, const GLint *);
   void (*MultiTexCoord4sARB)(GLenum, GLshort, GLshort, GLshort, GLshort);
   void (*MultiTexCoord4svARB)(GLenum, const GLshort *);
#endif

#ifdef _GLAPI_INGR_blend_func_separate
   void (*BlendFuncSeparateINGR)(GLenum, GLenum, GLenum, GLenum);
#endif

#ifdef _GLAPI_MESA_window_pos
   void (*WindowPos4fMESA)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
#endif

#ifdef _GLAPI_MESA_resize_buffers
   void (*ResizeBuffersMESA)(void);
#endif


   void *ExtensionFuncs[_GLAPI_EXTRA_SLOTS];
};


#endif