summaryrefslogtreecommitdiff
path: root/src/glitz_gl.h
blob: aad28623e84282e16d4012fc0c0bc2ec97ada0a9 (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
/*
 * Copyright © 2004 David Reveman, Peter Nilsson
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation for any purpose is hereby granted without
 * fee, provided that the above copyright notice appear in all copies
 * and that both that copyright notice and this permission notice
 * appear in supporting documentation, and that the names of
 * David Reveman and Peter Nilsson not be used in advertising or
 * publicity pertaining to distribution of the software without
 * specific, written prior permission. David Reveman and Peter Nilsson
 * makes no representations about the suitability of this software for
 * any purpose. It is provided "as is" without express or implied warranty.
 *
 * DAVID REVEMAN AND PETER NILSSON DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DAVID REVEMAN AND
 * PETER NILSSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
 * OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 * Authors: David Reveman <davidr@novell.com>
 *          Peter Nilsson <c99pnn@cs.umu.se>
 */

#ifndef GLITZ_GL_H_INCLUDED
#define GLITZ_GL_H_INCLUDED

#include <stddef.h>

typedef unsigned int glitz_gl_enum_t;
typedef unsigned char glitz_gl_boolean_t;
typedef void glitz_gl_void_t;
typedef int glitz_gl_int_t;
typedef unsigned int glitz_gl_uint_t;
typedef int glitz_gl_sizei_t;
typedef double glitz_gl_double_t;
typedef float glitz_gl_float_t;
typedef unsigned short glitz_gl_ushort_t;
typedef short glitz_gl_short_t;
typedef unsigned int glitz_gl_bitfield_t;
typedef double glitz_gl_clampd_t;
typedef float glitz_gl_clampf_t;
typedef unsigned char glitz_gl_ubyte_t;
typedef ptrdiff_t glitz_gl_intptr_t;
typedef ptrdiff_t glitz_gl_sizeiptr_t;


#define GLITZ_GL_FALSE 0x0
#define GLITZ_GL_TRUE  0x1

#define GLITZ_GL_NO_ERROR          0x0
#define GLITZ_GL_INVALID_OPERATION 0x0502

#define GLITZ_GL_VERSION                     0x1F02
#define GLITZ_GL_EXTENSIONS                  0x1F03

#define GLITZ_GL_UNSIGNED_BYTE               0x1401
#define GLITZ_GL_UNSIGNED_BYTE_3_3_2         0x8032
#define GLITZ_GL_UNSIGNED_BYTE_2_3_3_REV     0x8362
#define GLITZ_GL_UNSIGNED_SHORT_5_6_5        0x8363
#define GLITZ_GL_UNSIGNED_SHORT_5_6_5_REV    0x8364
#define GLITZ_GL_UNSIGNED_SHORT_4_4_4_4      0x8033
#define GLITZ_GL_UNSIGNED_SHORT_4_4_4_4_REV  0x8365
#define GLITZ_GL_UNSIGNED_SHORT_5_5_5_1      0x8034
#define GLITZ_GL_UNSIGNED_SHORT_1_5_5_5_REV  0x8366
#define GLITZ_GL_UNSIGNED_INT_8_8_8_8_REV    0x8367
#define GLITZ_GL_UNSIGNED_INT_10_10_10_2     0x8036
#define GLITZ_GL_UNSIGNED_INT_2_10_10_10_REV 0x8368

#define GLITZ_GL_MODELVIEW  0x1700
#define GLITZ_GL_PROJECTION 0x1701

#define GLITZ_GL_SHORT  0x1402
#define GLITZ_GL_INT    0x1404
#define GLITZ_GL_FLOAT  0x1406
#define GLITZ_GL_DOUBLE 0x140A

#define GLITZ_GL_POINTS         0x0000
#define GLITZ_GL_LINES          0x0001
#define GLITZ_GL_LINE_LOOP      0x0002
#define GLITZ_GL_LINE_STRIP     0x0003
#define GLITZ_GL_TRIANGLES      0x0004
#define GLITZ_GL_TRIANGLE_STRIP 0x0005
#define GLITZ_GL_TRIANGLE_FAN   0x0006
#define GLITZ_GL_QUADS          0x0007
#define GLITZ_GL_QUAD_STRIP     0x0008
#define GLITZ_GL_POLYGON        0x0009

#define GLITZ_GL_VERTEX_ARRAY        0x8074
#define GLITZ_GL_TEXTURE_COORD_ARRAY 0x8078

#define GLITZ_GL_FILL           0x1B02
#define GLITZ_GL_FRONT          0x0404
#define GLITZ_GL_BACK           0x0405
#define GLITZ_GL_CULL_FACE      0x0B44

#define GLITZ_GL_POINT_SMOOTH   0x0B10
#define GLITZ_GL_LINE_SMOOTH    0x0B20
#define GLITZ_GL_POLYGON_SMOOTH 0x0B41

#define GLITZ_GL_SCISSOR_TEST 0x0C11

#define GLITZ_GL_MAX_TEXTURE_SIZE  0x0D33
#define GLITZ_GL_MAX_VIEWPORT_DIMS 0x0D3A

#define GLITZ_GL_TEXTURE_WIDTH  0x1000
#define GLITZ_GL_TEXTURE_HEIGHT 0x1001

#define GLITZ_GL_TEXTURE_ENV            0x2300
#define GLITZ_GL_TEXTURE_ENV_MODE       0x2200
#define GLITZ_GL_TEXTURE_2D             0x0DE1
#define GLITZ_GL_PROXY_TEXTURE_2D       0x8064
#define GLITZ_GL_TEXTURE_WRAP_S         0x2802
#define GLITZ_GL_TEXTURE_WRAP_T         0x2803
#define GLITZ_GL_TEXTURE_MAG_FILTER     0x2800
#define GLITZ_GL_TEXTURE_MIN_FILTER     0x2801
#define GLITZ_GL_TEXTURE_ENV_COLOR      0x2201
#define GLITZ_GL_TEXTURE_GEN_S          0x0C60
#define GLITZ_GL_TEXTURE_GEN_T          0x0C61
#define GLITZ_GL_TEXTURE_GEN_MODE       0x2500
#define GLITZ_GL_EYE_LINEAR             0x2400
#define GLITZ_GL_EYE_PLANE              0x2502
#define GLITZ_GL_S                      0x2000
#define GLITZ_GL_T                      0x2001

#define GLITZ_GL_MODULATE               0x2100
#define GLITZ_GL_NEAREST                0x2600
#define GLITZ_GL_LINEAR                 0x2601
#define GLITZ_GL_REPEAT                 0x2901
#define GLITZ_GL_CLAMP_TO_EDGE          0x812F
#define GLITZ_GL_CLAMP_TO_BORDER        0x812D
#define GLITZ_GL_TEXTURE_RED_SIZE       0x805C
#define GLITZ_GL_TEXTURE_GREEN_SIZE     0x805D
#define GLITZ_GL_TEXTURE_BLUE_SIZE      0x805E
#define GLITZ_GL_TEXTURE_ALPHA_SIZE     0x805F

#define GLITZ_GL_TEXTURE        0x1702
#define GLITZ_GL_SRC_COLOR      0x0300

#define GLITZ_GL_COMBINE        0x8570
#define GLITZ_GL_COMBINE_RGB    0x8571
#define GLITZ_GL_COMBINE_ALPHA  0x8572
#define GLITZ_GL_SOURCE0_RGB    0x8580
#define GLITZ_GL_SOURCE1_RGB    0x8581
#define GLITZ_GL_SOURCE2_RGB    0x8582
#define GLITZ_GL_SOURCE0_ALPHA  0x8588
#define GLITZ_GL_SOURCE1_ALPHA  0x8589
#define GLITZ_GL_SOURCE2_ALPHA  0x858A
#define GLITZ_GL_OPERAND0_RGB   0x8590
#define GLITZ_GL_OPERAND1_RGB   0x8591
#define GLITZ_GL_OPERAND2_RGB   0x8592
#define GLITZ_GL_OPERAND0_ALPHA	0x8598
#define GLITZ_GL_OPERAND1_ALPHA	0x8599
#define GLITZ_GL_OPERAND2_ALPHA	0x859A
#define GLITZ_GL_RGB_SCALE      0x8573
#define GLITZ_GL_ADD_SIGNED     0x8574
#define GLITZ_GL_INTERPOLATE    0x8575
#define GLITZ_GL_SUBTRACT       0x84E7
#define GLITZ_GL_CONSTANT       0x8576
#define GLITZ_GL_PRIMARY_COLOR  0x8577
#define GLITZ_GL_PREVIOUS       0x8578
#define GLITZ_GL_DOT3_RGB       0x86AE
#define GLITZ_GL_DOT3_RGBA      0x86AF

#define GLITZ_GL_STENCIL_TEST 0x0B90
#define GLITZ_GL_KEEP         0x1E00
#define GLITZ_GL_REPLACE      0x1E01
#define GLITZ_GL_INCR         0x1E02
#define GLITZ_GL_DECR         0x1E03

#define GLITZ_GL_LESS       0x0201
#define GLITZ_GL_EQUAL      0x0202
#define GLITZ_GL_LEQUAL     0x0203
#define GLITZ_GL_ALWAYS     0x0207
#define GLITZ_GL_DEPTH_TEST 0x0B71

#define GLITZ_GL_STENCIL_BUFFER_BIT 0x00000400
#define GLITZ_GL_VIEWPORT_BIT       0x00000800
#define GLITZ_GL_TRANSFORM_BIT      0x00001000
#define GLITZ_GL_COLOR_BUFFER_BIT   0x00004000

#define GLITZ_GL_ALPHA     0x1906
#define GLITZ_GL_RGB       0x1907
#define GLITZ_GL_LUMINANCE 0x1909
#define GLITZ_GL_COLOR     0x1800
#define GLITZ_GL_DITHER    0x0BD0
#define GLITZ_GL_RGBA      0x1908
#define GLITZ_GL_BGR       0x80E0
#define GLITZ_GL_BGRA      0x80E1

#define GLITZ_GL_ALPHA4   0x803B
#define GLITZ_GL_ALPHA8   0x803C
#define GLITZ_GL_ALPHA12  0x803D
#define GLITZ_GL_ALPHA16  0x803E
#define GLITZ_GL_R3_G3_B2 0x2A10
#define GLITZ_GL_RGB4     0x804F
#define GLITZ_GL_RGB5     0x8050
#define GLITZ_GL_RGB8     0x8051
#define GLITZ_GL_RGB10    0x8052
#define GLITZ_GL_RGB12    0x8053
#define GLITZ_GL_RGB16    0x8054
#define GLITZ_GL_RGBA2    0x8055
#define GLITZ_GL_RGBA4    0x8056
#define GLITZ_GL_RGB5_A1  0x8057
#define GLITZ_GL_RGBA8    0x8058
#define GLITZ_GL_RGB10_A2 0x8059
#define GLITZ_GL_RGBA12   0x805A
#define GLITZ_GL_RGBA16   0x805B

#define GLITZ_GL_FRONT_AND_BACK 0x0408
#define GLITZ_GL_FLAT           0x1D00
#define GLITZ_GL_SMOOTH         0x1D01

#define GLITZ_GL_BLEND               0x0BE2
#define GLITZ_GL_ZERO                0x0000
#define GLITZ_GL_ONE                 0x0001
#define GLITZ_GL_ONE_MINUS_SRC_COLOR 0x0301
#define GLITZ_GL_SRC_ALPHA           0x0302
#define GLITZ_GL_ONE_MINUS_SRC_ALPHA 0x0303
#define GLITZ_GL_DST_ALPHA           0x0304
#define GLITZ_GL_ONE_MINUS_DST_ALPHA 0x0305
#define GLITZ_GL_SRC_ALPHA_SATURATE  0x0308
#define GLITZ_GL_CONSTANT_COLOR      0x8001

#define GLITZ_GL_PACK_ALIGNMENT      0x0D05
#define GLITZ_GL_PACK_LSB_FIRST      0x0D01
#define GLITZ_GL_PACK_ROW_LENGTH     0x0D02
#define GLITZ_GL_PACK_SKIP_PIXELS    0x0D04
#define GLITZ_GL_PACK_SKIP_ROWS      0x0D03
#define GLITZ_GL_UNPACK_ALIGNMENT    0x0CF5
#define GLITZ_GL_UNPACK_LSB_FIRST    0x0CF1
#define GLITZ_GL_UNPACK_ROW_LENGTH   0x0CF2
#define GLITZ_GL_UNPACK_SKIP_PIXELS  0x0CF4
#define GLITZ_GL_UNPACK_SKIP_ROWS    0x0CF3

#define GLITZ_GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
#define GLITZ_GL_FASTEST                     0x1101
#define GLITZ_GL_NICEST                      0x1102

#define GLITZ_GL_COMPILE 0x1300

#define GLITZ_GL_TEXTURE_RECTANGLE          0x84F5
#define GLITZ_GL_PROXY_TEXTURE_RECTANGLE    0x84F7
#define GLITZ_GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8

#define GLITZ_GL_MIRRORED_REPEAT 0x8370

#define GLITZ_GL_TEXTURE0          0x84C0
#define GLITZ_GL_TEXTURE1          0x84C1
#define GLITZ_GL_TEXTURE2          0x84C2
#define GLITZ_GL_ACTIVE_TEXTURE    0x84E0
#define GLITZ_GL_MAX_TEXTURE_UNITS 0x84E2

#define GLITZ_GL_MULTISAMPLE 0x809D

#define GLITZ_GL_MULTISAMPLE_FILTER_HINT 0x8534

#define GLITZ_GL_FRAGMENT_PROGRAM                    0x8804
#define GLITZ_GL_PROGRAM_STRING                      0x8628
#define GLITZ_GL_PROGRAM_FORMAT_ASCII                0x8875
#define GLITZ_GL_PROGRAM_ERROR_POSITION              0x864B
#define GLITZ_GL_MAX_PROGRAM_LOCAL_PARAMETERS        0x88B4
#define GLITZ_GL_PROGRAM_INSTRUCTIONS                0x88A0
#define GLITZ_GL_MAX_PROGRAM_INSTRUCTIONS            0x88A1
#define GLITZ_GL_PROGRAM_NATIVE_INSTRUCTIONS         0x88A2
#define GLITZ_GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS     0x88A3
#define GLITZ_GL_PROGRAM_PARAMETERS                  0x88A8
#define GLITZ_GL_MAX_PROGRAM_PARAMETERS              0x88A9
#define GLITZ_GL_PROGRAM_NATIVE_PARAMETERS           0x88AA
#define GLITZ_GL_MAX_PROGRAM_NATIVE_PARAMETERS       0x88AB
#define GLITZ_GL_PROGRAM_UNDER_NATIVE_LIMITS         0x88B6
#define GLITZ_GL_PROGRAM_ALU_INSTRUCTIONS            0x8805
#define GLITZ_GL_PROGRAM_TEX_INSTRUCTIONS            0x8806
#define GLITZ_GL_PROGRAM_TEX_INDIRECTIONS            0x8807
#define GLITZ_GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS     0x8808
#define GLITZ_GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS     0x8809
#define GLITZ_GL_PROGRAM_NATIVE_TEX_INDIRECTIONS     0x880A
#define GLITZ_GL_MAX_PROGRAM_ALU_INSTRUCTIONS        0x880B
#define GLITZ_GL_MAX_PROGRAM_TEX_INSTRUCTIONS        0x880C
#define GLITZ_GL_MAX_PROGRAM_TEX_INDIRECTIONS        0x880D
#define GLITZ_GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS 0x880E
#define GLITZ_GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS 0x880F
#define GLITZ_GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS 0x8810

#define GLITZ_GL_ARRAY_BUFFER         0x8892
#define GLITZ_GL_PIXEL_PACK_BUFFER    0x88EB
#define GLITZ_GL_PIXEL_UNPACK_BUFFER  0x88EC

#define GLITZ_GL_STREAM_DRAW  0x88E0
#define GLITZ_GL_STREAM_READ  0x88E1
#define GLITZ_GL_STREAM_COPY  0x88E2
#define GLITZ_GL_STATIC_DRAW  0x88E4
#define GLITZ_GL_STATIC_READ  0x88E5
#define GLITZ_GL_STATIC_COPY  0x88E6
#define GLITZ_GL_DYNAMIC_DRAW 0x88E8
#define GLITZ_GL_DYNAMIC_READ 0x88E9
#define GLITZ_GL_DYNAMIC_COPY 0x88EA

#define GLITZ_GL_READ_ONLY  0x88B8
#define GLITZ_GL_WRITE_ONLY 0x88B9
#define GLITZ_GL_READ_WRITE 0x88BA


typedef glitz_gl_void_t (* glitz_gl_enable_t)
     (glitz_gl_enum_t cap);
typedef glitz_gl_void_t (* glitz_gl_disable_t)
     (glitz_gl_enum_t cap);
typedef glitz_gl_enum_t (* glitz_gl_get_error_t)
     (glitz_gl_void_t);
typedef glitz_gl_ubyte_t *(* glitz_gl_get_string_t)
     (glitz_gl_enum_t);
typedef glitz_gl_void_t (* glitz_gl_enable_client_state_t)
     (glitz_gl_enum_t cap);
typedef glitz_gl_void_t (* glitz_gl_disable_client_state_t)
     (glitz_gl_enum_t cap);
typedef glitz_gl_void_t (* glitz_gl_vertex_pointer_t)
     (glitz_gl_int_t size, glitz_gl_enum_t type, glitz_gl_sizei_t stride,
      const glitz_gl_void_t *ptr);
typedef glitz_gl_void_t (* glitz_gl_tex_coord_pointer_t)
     (glitz_gl_int_t size, glitz_gl_enum_t type, glitz_gl_sizei_t stride,
      const glitz_gl_void_t *ptr);
typedef glitz_gl_void_t (* glitz_gl_draw_arrays_t)
     (glitz_gl_enum_t mode, glitz_gl_int_t first, glitz_gl_sizei_t count);
typedef glitz_gl_void_t (* glitz_gl_multi_draw_arrays_t)
     (glitz_gl_enum_t mode, glitz_gl_int_t *first, glitz_gl_sizei_t *count,
      glitz_gl_sizei_t primcount);
typedef glitz_gl_void_t (* glitz_gl_tex_env_f_t)
     (glitz_gl_enum_t target, glitz_gl_enum_t pname, glitz_gl_float_t param);
typedef glitz_gl_void_t (* glitz_gl_tex_env_fv_t)
     (glitz_gl_enum_t target, glitz_gl_enum_t pname,
      const glitz_gl_float_t *params);
typedef glitz_gl_void_t (* glitz_gl_tex_gen_i_t)
     (glitz_gl_enum_t coord, glitz_gl_enum_t pname, glitz_gl_int_t param);
typedef glitz_gl_void_t (* glitz_gl_tex_gen_fv_t)
     (glitz_gl_enum_t coord, glitz_gl_enum_t pname,
      const glitz_gl_float_t *params);
typedef glitz_gl_void_t (* glitz_gl_scissor_t)
     (glitz_gl_int_t x, glitz_gl_int_t y,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height);
typedef glitz_gl_void_t (* glitz_gl_color_4us_t)
     (glitz_gl_ushort_t red, glitz_gl_ushort_t green, glitz_gl_ushort_t blue,
      glitz_gl_ushort_t alpha);
typedef glitz_gl_void_t (* glitz_gl_color_4f_t)
     (glitz_gl_float_t red, glitz_gl_float_t green, glitz_gl_float_t blue,
      glitz_gl_float_t alpha);
typedef glitz_gl_void_t (* glitz_gl_blend_func_t)
     (glitz_gl_enum_t sfactor, glitz_gl_enum_t dfactor);
typedef glitz_gl_void_t (* glitz_gl_blend_color_t)
     (glitz_gl_clampf_t red, glitz_gl_clampf_t green, glitz_gl_clampf_t blue,
      glitz_gl_clampf_t alpha);
typedef glitz_gl_void_t (* glitz_gl_clear_t)
     (glitz_gl_bitfield_t mask);
typedef glitz_gl_void_t (* glitz_gl_clear_color_t)
     (glitz_gl_clampf_t red, glitz_gl_clampf_t green,
      glitz_gl_clampf_t blue, glitz_gl_clampf_t alpha);
typedef glitz_gl_void_t (* glitz_gl_clear_stencil_t)
     (glitz_gl_int_t s);
typedef glitz_gl_void_t (* glitz_gl_stencil_func_t)
     (glitz_gl_enum_t func, glitz_gl_int_t ref, glitz_gl_uint_t mask);
typedef glitz_gl_void_t (* glitz_gl_stencil_op_t)
     (glitz_gl_enum_t fail, glitz_gl_enum_t zfail, glitz_gl_enum_t zpass);
typedef glitz_gl_void_t (* glitz_gl_push_attrib_t)
     (glitz_gl_bitfield_t mask);
typedef glitz_gl_void_t (* glitz_gl_pop_attrib_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_matrix_mode_t)
     (glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_push_matrix_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_pop_matrix_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_load_identity_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_load_matrix_f_t)
     (const glitz_gl_float_t *m);
typedef glitz_gl_void_t (* glitz_gl_depth_range_t)
     (glitz_gl_clampd_t near_val, glitz_gl_clampd_t far_val);
typedef glitz_gl_void_t (* glitz_gl_viewport_t)
     (glitz_gl_int_t x, glitz_gl_int_t y,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height);
typedef glitz_gl_void_t (* glitz_gl_raster_pos_2f_t)
     (glitz_gl_float_t x, glitz_gl_float_t y);
typedef glitz_gl_void_t (* glitz_gl_bitmap_t)
     (glitz_gl_sizei_t width, glitz_gl_sizei_t height,
      glitz_gl_float_t xorig, glitz_gl_float_t yorig,
      glitz_gl_float_t xmove, glitz_gl_float_t ymove,
      const glitz_gl_ubyte_t *bitmap);
typedef glitz_gl_void_t (* glitz_gl_read_buffer_t)
     (glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_draw_buffer_t)
     (glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_copy_pixels_t)
     (glitz_gl_int_t x, glitz_gl_int_t y,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height,
      glitz_gl_enum_t type);
typedef glitz_gl_void_t (* glitz_gl_flush_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_finish_t)
     (glitz_gl_void_t);
typedef glitz_gl_void_t (* glitz_gl_pixel_store_i_t)
     (glitz_gl_enum_t pname, glitz_gl_int_t param);
typedef glitz_gl_void_t (* glitz_gl_ortho_t)
     (glitz_gl_double_t left, glitz_gl_double_t right,
      glitz_gl_double_t bottom, glitz_gl_double_t top,
      glitz_gl_double_t near_val, glitz_gl_double_t far_val);
typedef glitz_gl_void_t (* glitz_gl_scale_f_t)
     (glitz_gl_float_t x, glitz_gl_float_t y, glitz_gl_float_t z);
typedef glitz_gl_void_t (* glitz_gl_translate_f_t)
     (glitz_gl_float_t x, glitz_gl_float_t y, glitz_gl_float_t z);
typedef glitz_gl_void_t (* glitz_gl_hint_t)
     (glitz_gl_enum_t target, glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_depth_mask_t)
     (glitz_gl_boolean_t flag);
typedef glitz_gl_void_t (* glitz_gl_polygon_mode_t)
     (glitz_gl_enum_t face, glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_shade_model_t)
     (glitz_gl_enum_t mode);
typedef glitz_gl_void_t (* glitz_gl_color_mask_t)
     (glitz_gl_boolean_t red,
      glitz_gl_boolean_t green,
      glitz_gl_boolean_t blue,
      glitz_gl_boolean_t alpha);
typedef glitz_gl_void_t (* glitz_gl_read_pixels_t)
     (glitz_gl_int_t x, glitz_gl_int_t y,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height,
      glitz_gl_enum_t format, glitz_gl_enum_t type,
      glitz_gl_void_t *pixels);
typedef glitz_gl_void_t (* glitz_gl_get_tex_image_t)
     (glitz_gl_enum_t target, glitz_gl_int_t level,
      glitz_gl_enum_t format, glitz_gl_enum_t type,
      glitz_gl_void_t *pixels);
typedef glitz_gl_void_t (* glitz_gl_tex_sub_image_2d_t)
     (glitz_gl_enum_t target, glitz_gl_int_t level,
      glitz_gl_int_t xoffset, glitz_gl_int_t yoffset,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height,
      glitz_gl_enum_t format, glitz_gl_enum_t type,
      const glitz_gl_void_t *pixels);
typedef glitz_gl_void_t (* glitz_gl_gen_textures_t)
     (glitz_gl_sizei_t n, glitz_gl_uint_t *textures);
typedef glitz_gl_void_t (* glitz_gl_delete_textures_t)
     (glitz_gl_sizei_t n, const glitz_gl_uint_t *textures);
typedef glitz_gl_void_t (* glitz_gl_bind_texture_t)
     (glitz_gl_enum_t target, glitz_gl_uint_t texture);
typedef glitz_gl_void_t (* glitz_gl_tex_image_2d_t)
     (glitz_gl_enum_t target, glitz_gl_int_t level,
      glitz_gl_int_t internal_format,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height,
      glitz_gl_int_t border, glitz_gl_enum_t format, glitz_gl_enum_t type,
      const glitz_gl_void_t *pixels);
typedef glitz_gl_void_t (* glitz_gl_tex_parameter_i_t)
     (glitz_gl_enum_t target, glitz_gl_enum_t pname, glitz_gl_int_t param);
typedef glitz_gl_void_t (* glitz_gl_get_tex_level_parameter_iv_t)
     (glitz_gl_enum_t target, glitz_gl_int_t level,
      glitz_gl_enum_t pname, glitz_gl_int_t *param);
typedef glitz_gl_void_t (* glitz_gl_copy_tex_sub_image_2d_t)
     (glitz_gl_enum_t target, glitz_gl_int_t level,
      glitz_gl_int_t xoffset, glitz_gl_int_t yoffset,
      glitz_gl_int_t x, glitz_gl_int_t y,
      glitz_gl_sizei_t width, glitz_gl_sizei_t height);
typedef glitz_gl_void_t (* glitz_gl_get_integer_v_t)
     (glitz_gl_enum_t pname, glitz_gl_int_t *params);
typedef glitz_gl_void_t (* glitz_gl_get_pointer_v_t)
     (glitz_gl_enum_t pname, glitz_gl_void_t **params);
typedef glitz_gl_void_t (* glitz_gl_active_texture_t)
     (glitz_gl_enum_t);
typedef glitz_gl_void_t (* glitz_gl_client_active_texture_t)
     (glitz_gl_enum_t);
typedef glitz_gl_void_t (* glitz_gl_gen_programs_t)
     (glitz_gl_sizei_t, glitz_gl_uint_t *);
typedef glitz_gl_void_t (* glitz_gl_delete_programs_t)
     (glitz_gl_sizei_t, const glitz_gl_uint_t *);
typedef glitz_gl_void_t (* glitz_gl_program_string_t)
     (glitz_gl_enum_t, glitz_gl_enum_t, glitz_gl_sizei_t,
      const glitz_gl_void_t *);
typedef glitz_gl_void_t (* glitz_gl_bind_program_t)
     (glitz_gl_enum_t, glitz_gl_uint_t);
typedef glitz_gl_void_t (* glitz_gl_program_local_param_4fv_t)
     (glitz_gl_enum_t, glitz_gl_uint_t, const glitz_gl_float_t *);
typedef glitz_gl_void_t (* glitz_gl_get_program_iv_t)
     (glitz_gl_enum_t, glitz_gl_enum_t, glitz_gl_int_t *);
typedef glitz_gl_void_t (* glitz_gl_gen_buffers_t)
     (glitz_gl_sizei_t, glitz_gl_uint_t *buffers);
typedef glitz_gl_void_t (* glitz_gl_delete_buffers_t)
     (glitz_gl_sizei_t, const glitz_gl_uint_t *buffers);
typedef glitz_gl_void_t (* glitz_gl_bind_buffer_t)
     (glitz_gl_enum_t, glitz_gl_uint_t buffer);
typedef glitz_gl_void_t (* glitz_gl_buffer_data_t)
     (glitz_gl_enum_t, glitz_gl_sizeiptr_t, const glitz_gl_void_t *,
      glitz_gl_enum_t);
typedef glitz_gl_void_t *(* glitz_gl_buffer_sub_data_t)
     (glitz_gl_enum_t, glitz_gl_intptr_t, glitz_gl_sizeiptr_t,
      const glitz_gl_void_t *);
typedef glitz_gl_void_t *(* glitz_gl_get_buffer_sub_data_t)
     (glitz_gl_enum_t, glitz_gl_intptr_t, glitz_gl_sizeiptr_t,
      glitz_gl_void_t *);
typedef glitz_gl_void_t *(* glitz_gl_map_buffer_t)
     (glitz_gl_enum_t, glitz_gl_enum_t);
typedef glitz_gl_boolean_t (* glitz_gl_unmap_buffer_t)
     (glitz_gl_enum_t);

#endif /* GLITZ_GL_H_INCLUDED */