root/lang/d/koke/trunk/opengl.d @ 6608

Revision 6608, 64.3 kB (checked in by itkz, 7 years ago)

optimized to DMD 1.020

Line 
1version (Win32) {
2        import std.c.windows.windows;
3}
4extern(System):
5
6/* Please use this code with old D compiler.
7version (Win32) {
8        extern(Windows):
9}
10else {
11        extern(C):
12}
13*/
14
15alias uint GLenum;
16alias ubyte GLboolean;
17alias uint GLbitfield;
18alias byte GLbyte;
19alias short GLshort;
20alias int GLint;
21alias int GLsizei;
22alias ubyte GLubyte;
23alias ushort GLushort;
24alias uint GLuint;
25alias float GLfloat;
26alias float GLclampf;
27alias double GLdouble;
28alias double GLclampd;
29alias void GLvoid;
30
31/*************************************************************/
32
33/* Version */
34const uint GL_VERSION_1_1 = 1;
35
36/* AccumOp */
37const uint GL_ACCUM                      = 0x0100;
38const uint GL_LOAD                       = 0x0101;
39const uint GL_RETURN                     = 0x0102;
40const uint GL_MULT                       = 0x0103;
41const uint GL_ADD                        = 0x0104;
42
43/* AlphaFunction */
44const uint GL_NEVER                      = 0x0200;
45const uint GL_LESS                       = 0x0201;
46const uint GL_EQUAL                      = 0x0202;
47const uint GL_LEQUAL                     = 0x0203;
48const uint GL_GREATER                    = 0x0204;
49const uint GL_NOTEQUAL                   = 0x0205;
50const uint GL_GEQUAL                     = 0x0206;
51const uint GL_ALWAYS                     = 0x0207;
52
53/* AttribMask */
54const uint GL_CURRENT_BIT                = 0x00000001;
55const uint GL_POINT_BIT                  = 0x00000002;
56const uint GL_LINE_BIT                   = 0x00000004;
57const uint GL_POLYGON_BIT                = 0x00000008;
58const uint GL_POLYGON_STIPPLE_BIT        = 0x00000010;
59const uint GL_PIXEL_MODE_BIT             = 0x00000020;
60const uint GL_LIGHTING_BIT               = 0x00000040;
61const uint GL_FOG_BIT                    = 0x00000080;
62const uint GL_DEPTH_BUFFER_BIT           = 0x00000100;
63const uint GL_ACCUM_BUFFER_BIT           = 0x00000200;
64const uint GL_STENCIL_BUFFER_BIT         = 0x00000400;
65const uint GL_VIEWPORT_BIT               = 0x00000800;
66const uint GL_TRANSFORM_BIT              = 0x00001000;
67const uint GL_ENABLE_BIT                 = 0x00002000;
68const uint GL_COLOR_BUFFER_BIT           = 0x00004000;
69const uint GL_HINT_BIT                   = 0x00008000;
70const uint GL_EVAL_BIT                   = 0x00010000;
71const uint GL_LIST_BIT                   = 0x00020000;
72const uint GL_TEXTURE_BIT                = 0x00040000;
73const uint GL_SCISSOR_BIT                = 0x00080000;
74const uint GL_ALL_ATTRIB_BITS            = 0x000fffff;
75
76/* BeginMode */
77const uint GL_POINTS                     = 0x0000;
78const uint GL_LINES                      = 0x0001;
79const uint GL_LINE_LOOP                  = 0x0002;
80const uint GL_LINE_STRIP                 = 0x0003;
81const uint GL_TRIANGLES                  = 0x0004;
82const uint GL_TRIANGLE_STRIP             = 0x0005;
83const uint GL_TRIANGLE_FAN               = 0x0006;
84const uint GL_QUADS                      = 0x0007;
85const uint GL_QUAD_STRIP                 = 0x0008;
86const uint GL_POLYGON                    = 0x0009;
87
88/* BlendingFactorDest */
89const uint GL_ZERO                       = 0;
90const uint GL_ONE                        = 1;
91const uint GL_SRC_COLOR                  = 0x0300;
92const uint GL_ONE_MINUS_SRC_COLOR        = 0x0301;
93const uint GL_SRC_ALPHA                  = 0x0302;
94const uint GL_ONE_MINUS_SRC_ALPHA        = 0x0303;
95const uint GL_DST_ALPHA                  = 0x0304;
96const uint GL_ONE_MINUS_DST_ALPHA        = 0x0305;
97
98/* BlendingFactorSrc */
99/*      GL_ZERO */
100/*      GL_ONE */
101const uint GL_DST_COLOR                  = 0x0306;
102const uint GL_ONE_MINUS_DST_COLOR        = 0x0307;
103const uint GL_SRC_ALPHA_SATURATE         = 0x0308;
104/*      GL_SRC_ALPHA */
105/*      GL_ONE_MINUS_SRC_ALPHA */
106/*      GL_DST_ALPHA */
107/*      GL_ONE_MINUS_DST_ALPHA */
108
109/* Boolean */
110const uint GL_TRUE                       = 1;
111const uint GL_FALSE                      = 0;
112
113/* ClearBufferMask */
114/*      GL_COLOR_BUFFER_BIT */
115/*      GL_ACCUM_BUFFER_BIT */
116/*      GL_STENCIL_BUFFER_BIT */
117/*      GL_DEPTH_BUFFER_BIT */
118
119/* ClientArrayType */
120/*      GL_VERTEX_ARRAY */
121/*      GL_NORMAL_ARRAY */
122/*      GL_COLOR_ARRAY */
123/*      GL_INDEX_ARRAY */
124/*      GL_TEXTURE_COORD_ARRAY */
125/*      GL_EDGE_FLAG_ARRAY */
126
127/* ClipPlaneName */
128const uint GL_CLIP_PLANE0                = 0x3000;
129const uint GL_CLIP_PLANE1                = 0x3001;
130const uint GL_CLIP_PLANE2                = 0x3002;
131const uint GL_CLIP_PLANE3                = 0x3003;
132const uint GL_CLIP_PLANE4                = 0x3004;
133const uint GL_CLIP_PLANE5                = 0x3005;
134
135/* ColorMaterialFace */
136/*      GL_FRONT */
137/*      GL_BACK */
138/*      GL_FRONT_AND_BACK */
139
140/* ColorMaterialParameter */
141/*      GL_AMBIENT */
142/*      GL_DIFFUSE */
143/*      GL_SPECULAR */
144/*      GL_EMISSION */
145/*      GL_AMBIENT_AND_DIFFUSE */
146
147/* ColorPointerType */
148/*      GL_BYTE */
149/*      GL_UNSIGNED_BYTE */
150/*      GL_SHORT */
151/*      GL_UNSIGNED_SHORT */
152/*      GL_INT */
153/*      GL_UNSIGNED_INT */
154/*      GL_FLOAT */
155/*      GL_DOUBLE */
156
157/* CullFaceMode */
158/*      GL_FRONT */
159/*      GL_BACK */
160/*      GL_FRONT_AND_BACK */
161
162/* DataType */
163const uint GL_BYTE                       = 0x1400;
164const uint GL_UNSIGNED_BYTE              = 0x1401;
165const uint GL_SHORT                      = 0x1402;
166const uint GL_UNSIGNED_SHORT             = 0x1403;
167const uint GL_INT                        = 0x1404;
168const uint GL_UNSIGNED_INT               = 0x1405;
169const uint GL_FLOAT                      = 0x1406;
170const uint GL_2_BYTES                    = 0x1407;
171const uint GL_3_BYTES                    = 0x1408;
172const uint GL_4_BYTES                    = 0x1409;
173const uint GL_DOUBLE                     = 0x140A;
174
175/* DepthFunction */
176/*      GL_NEVER */
177/*      GL_LESS */
178/*      GL_EQUAL */
179/*      GL_LEQUAL */
180/*      GL_GREATER */
181/*      GL_NOTEQUAL */
182/*      GL_GEQUAL */
183/*      GL_ALWAYS */
184
185/* DrawBufferMode */
186const uint GL_NONE                       = 0;
187const uint GL_FRONT_LEFT                 = 0x0400;
188const uint GL_FRONT_RIGHT                = 0x0401;
189const uint GL_BACK_LEFT                  = 0x0402;
190const uint GL_BACK_RIGHT                 = 0x0403;
191const uint GL_FRONT                      = 0x0404;
192const uint GL_BACK                       = 0x0405;
193const uint GL_LEFT                       = 0x0406;
194const uint GL_RIGHT                      = 0x0407;
195const uint GL_FRONT_AND_BACK             = 0x0408;
196const uint GL_AUX0                       = 0x0409;
197const uint GL_AUX1                       = 0x040A;
198const uint GL_AUX2                       = 0x040B;
199const uint GL_AUX3                       = 0x040C;
200
201/* Enable */
202/*      GL_FOG */
203/*      GL_LIGHTING */
204/*      GL_TEXTURE_1D */
205/*      GL_TEXTURE_2D */
206/*      GL_LINE_STIPPLE */
207/*      GL_POLYGON_STIPPLE */
208/*      GL_CULL_FACE */
209/*      GL_ALPHA_TEST */
210/*      GL_BLEND */
211/*      GL_INDEX_LOGIC_OP */
212/*      GL_COLOR_LOGIC_OP */
213/*      GL_DITHER */
214/*      GL_STENCIL_TEST */
215/*      GL_DEPTH_TEST */
216/*      GL_CLIP_PLANE0 */
217/*      GL_CLIP_PLANE1 */
218/*      GL_CLIP_PLANE2 */
219/*      GL_CLIP_PLANE3 */
220/*      GL_CLIP_PLANE4 */
221/*      GL_CLIP_PLANE5 */
222/*      GL_LIGHT0 */
223/*      GL_LIGHT1 */
224/*      GL_LIGHT2 */
225/*      GL_LIGHT3 */
226/*      GL_LIGHT4 */
227/*      GL_LIGHT5 */
228/*      GL_LIGHT6 */
229/*      GL_LIGHT7 */
230/*      GL_TEXTURE_GEN_S */
231/*      GL_TEXTURE_GEN_T */
232/*      GL_TEXTURE_GEN_R */
233/*      GL_TEXTURE_GEN_Q */
234/*      GL_MAP1_VERTEX_3 */
235/*      GL_MAP1_VERTEX_4 */
236/*      GL_MAP1_COLOR_4 */
237/*      GL_MAP1_INDEX */
238/*      GL_MAP1_NORMAL */
239/*      GL_MAP1_TEXTURE_COORD_1 */
240/*      GL_MAP1_TEXTURE_COORD_2 */
241/*      GL_MAP1_TEXTURE_COORD_3 */
242/*      GL_MAP1_TEXTURE_COORD_4 */
243/*      GL_MAP2_VERTEX_3 */
244/*      GL_MAP2_VERTEX_4 */
245/*      GL_MAP2_COLOR_4 */
246/*      GL_MAP2_INDEX */
247/*      GL_MAP2_NORMAL */
248/*      GL_MAP2_TEXTURE_COORD_1 */
249/*      GL_MAP2_TEXTURE_COORD_2 */
250/*      GL_MAP2_TEXTURE_COORD_3 */
251/*      GL_MAP2_TEXTURE_COORD_4 */
252/*      GL_POINT_SMOOTH */
253/*      GL_LINE_SMOOTH */
254/*      GL_POLYGON_SMOOTH */
255/*      GL_SCISSOR_TEST */
256/*      GL_COLOR_MATERIAL */
257/*      GL_NORMALIZE */
258/*      GL_AUTO_NORMAL */
259/*      GL_VERTEX_ARRAY */
260/*      GL_NORMAL_ARRAY */
261/*      GL_COLOR_ARRAY */
262/*      GL_INDEX_ARRAY */
263/*      GL_TEXTURE_COORD_ARRAY */
264/*      GL_EDGE_FLAG_ARRAY */
265/*      GL_POLYGON_OFFSET_POINT */
266/*      GL_POLYGON_OFFSET_LINE */
267/*      GL_POLYGON_OFFSET_FILL */
268
269/* ErrorCode */
270const uint GL_NO_ERROR                   = 0;
271const uint GL_INVALID_ENUM               = 0x0500;
272const uint GL_INVALID_VALUE              = 0x0501;
273const uint GL_INVALID_OPERATION          = 0x0502;
274const uint GL_STACK_OVERFLOW             = 0x0503;
275const uint GL_STACK_UNDERFLOW            = 0x0504;
276const uint GL_OUT_OF_MEMORY              = 0x0505;
277
278/* FeedBackMode */
279const uint GL_2D                         = 0x0600;
280const uint GL_3D                         = 0x0601;
281const uint GL_3D_COLOR                   = 0x0602;
282const uint GL_3D_COLOR_TEXTURE           = 0x0603;
283const uint GL_4D_COLOR_TEXTURE           = 0x0604;
284
285/* FeedBackToken */
286const uint GL_PASS_THROUGH_TOKEN         = 0x0700;
287const uint GL_POINT_TOKEN                = 0x0701;
288const uint GL_LINE_TOKEN                 = 0x0702;
289const uint GL_POLYGON_TOKEN              = 0x0703;
290const uint GL_BITMAP_TOKEN               = 0x0704;
291const uint GL_DRAW_PIXEL_TOKEN           = 0x0705;
292const uint GL_COPY_PIXEL_TOKEN           = 0x0706;
293const uint GL_LINE_RESET_TOKEN           = 0x0707;
294
295/* FogMode */
296/*      GL_LINEAR */
297const uint GL_EXP                        = 0x0800;
298const uint GL_EXP2                       = 0x0801;
299
300
301/* FogParameter */
302/*      GL_FOG_COLOR */
303/*      GL_FOG_DENSITY */
304/*      GL_FOG_END */
305/*      GL_FOG_INDEX */
306/*      GL_FOG_MODE */
307/*      GL_FOG_START */
308
309/* FrontFaceDirection */
310const uint GL_CW                         = 0x0900;
311const uint GL_CCW                        = 0x0901;
312
313/* GetMapTarget */
314const uint GL_COEFF                      = 0x0A00;
315const uint GL_ORDER                      = 0x0A01;
316const uint GL_DOMAIN                     = 0x0A02;
317
318/* GetPixelMap */
319/*      GL_PIXEL_MAP_I_TO_I */
320/*      GL_PIXEL_MAP_S_TO_S */
321/*      GL_PIXEL_MAP_I_TO_R */
322/*      GL_PIXEL_MAP_I_TO_G */
323/*      GL_PIXEL_MAP_I_TO_B */
324/*      GL_PIXEL_MAP_I_TO_A */
325/*      GL_PIXEL_MAP_R_TO_R */
326/*      GL_PIXEL_MAP_G_TO_G */
327/*      GL_PIXEL_MAP_B_TO_B */
328/*      GL_PIXEL_MAP_A_TO_A */
329
330/* GetPointerTarget */
331/*      GL_VERTEX_ARRAY_POINTER */
332/*      GL_NORMAL_ARRAY_POINTER */
333/*      GL_COLOR_ARRAY_POINTER */
334/*      GL_INDEX_ARRAY_POINTER */
335/*      GL_TEXTURE_COORD_ARRAY_POINTER */
336/*      GL_EDGE_FLAG_ARRAY_POINTER */
337
338/* GetTarget */
339const uint GL_CURRENT_COLOR              = 0x0B00;
340const uint GL_CURRENT_INDEX              = 0x0B01;
341const uint GL_CURRENT_NORMAL             = 0x0B02;
342const uint GL_CURRENT_TEXTURE_COORDS     = 0x0B03;
343const uint GL_CURRENT_RASTER_COLOR       = 0x0B04;
344const uint GL_CURRENT_RASTER_INDEX       = 0x0B05;
345const uint GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06;
346const uint GL_CURRENT_RASTER_POSITION    = 0x0B07;
347const uint GL_CURRENT_RASTER_POSITION_VALID = 0x0B08;
348const uint GL_CURRENT_RASTER_DISTANCE    = 0x0B09;
349const uint GL_POINT_SMOOTH               = 0x0B10;
350const uint GL_POINT_SIZE                 = 0x0B11;
351const uint GL_POINT_SIZE_RANGE           = 0x0B12;
352const uint GL_POINT_SIZE_GRANULARITY     = 0x0B13;
353const uint GL_LINE_SMOOTH                = 0x0B20;
354const uint GL_LINE_WIDTH                 = 0x0B21;
355const uint GL_LINE_WIDTH_RANGE           = 0x0B22;
356const uint GL_LINE_WIDTH_GRANULARITY     = 0x0B23;
357const uint GL_LINE_STIPPLE               = 0x0B24;
358const uint GL_LINE_STIPPLE_PATTERN       = 0x0B25;
359const uint GL_LINE_STIPPLE_REPEAT        = 0x0B26;
360const uint GL_LIST_MODE                  = 0x0B30;
361const uint GL_MAX_LIST_NESTING           = 0x0B31;
362const uint GL_LIST_BASE                  = 0x0B32;
363const uint GL_LIST_INDEX                 = 0x0B33;
364const uint GL_POLYGON_MODE               = 0x0B40;
365const uint GL_POLYGON_SMOOTH             = 0x0B41;
366const uint GL_POLYGON_STIPPLE            = 0x0B42;
367const uint GL_EDGE_FLAG                  = 0x0B43;
368const uint GL_CULL_FACE                  = 0x0B44;
369const uint GL_CULL_FACE_MODE             = 0x0B45;
370const uint GL_FRONT_FACE                 = 0x0B46;
371const uint GL_LIGHTING                   = 0x0B50;
372const uint GL_LIGHT_MODEL_LOCAL_VIEWER   = 0x0B51;
373const uint GL_LIGHT_MODEL_TWO_SIDE       = 0x0B52;
374const uint GL_LIGHT_MODEL_AMBIENT        = 0x0B53;
375const uint GL_SHADE_MODEL                = 0x0B54;
376const uint GL_COLOR_MATERIAL_FACE        = 0x0B55;
377const uint GL_COLOR_MATERIAL_PARAMETER   = 0x0B56;
378const uint GL_COLOR_MATERIAL             = 0x0B57;
379const uint GL_FOG                        = 0x0B60;
380const uint GL_FOG_INDEX                  = 0x0B61;
381const uint GL_FOG_DENSITY                = 0x0B62;
382const uint GL_FOG_START                  = 0x0B63;
383const uint GL_FOG_END                    = 0x0B64;
384const uint GL_FOG_MODE                   = 0x0B65;
385const uint GL_FOG_COLOR                  = 0x0B66;
386const uint GL_DEPTH_RANGE                = 0x0B70;
387const uint GL_DEPTH_TEST                 = 0x0B71;
388const uint GL_DEPTH_WRITEMASK            = 0x0B72;
389const uint GL_DEPTH_CLEAR_VALUE          = 0x0B73;
390const uint GL_DEPTH_FUNC                 = 0x0B74;
391const uint GL_ACCUM_CLEAR_VALUE          = 0x0B80;
392const uint GL_STENCIL_TEST               = 0x0B90;
393const uint GL_STENCIL_CLEAR_VALUE        = 0x0B91;
394const uint GL_STENCIL_FUNC               = 0x0B92;
395const uint GL_STENCIL_VALUE_MASK         = 0x0B93;
396const uint GL_STENCIL_FAIL               = 0x0B94;
397const uint GL_STENCIL_PASS_DEPTH_FAIL    = 0x0B95;
398const uint GL_STENCIL_PASS_DEPTH_PASS    = 0x0B96;
399const uint GL_STENCIL_REF                = 0x0B97;
400const uint GL_STENCIL_WRITEMASK          = 0x0B98;
401const uint GL_MATRIX_MODE                = 0x0BA0;
402const uint GL_NORMALIZE                  = 0x0BA1;
403const uint GL_VIEWPORT                   = 0x0BA2;
404const uint GL_MODELVIEW_STACK_DEPTH      = 0x0BA3;
405const uint GL_PROJECTION_STACK_DEPTH     = 0x0BA4;
406const uint GL_TEXTURE_STACK_DEPTH        = 0x0BA5;
407const uint GL_MODELVIEW_MATRIX           = 0x0BA6;
408const uint GL_PROJECTION_MATRIX          = 0x0BA7;
409const uint GL_TEXTURE_MATRIX             = 0x0BA8;
410const uint GL_ATTRIB_STACK_DEPTH         = 0x0BB0;
411const uint GL_CLIENT_ATTRIB_STACK_DEPTH  = 0x0BB1;
412const uint GL_ALPHA_TEST                 = 0x0BC0;
413const uint GL_ALPHA_TEST_FUNC            = 0x0BC1;
414const uint GL_ALPHA_TEST_REF             = 0x0BC2;
415const uint GL_DITHER                     = 0x0BD0;
416const uint GL_BLEND_DST                  = 0x0BE0;
417const uint GL_BLEND_SRC                  = 0x0BE1;
418const uint GL_BLEND                      = 0x0BE2;
419const uint GL_LOGIC_OP_MODE              = 0x0BF0;
420const uint GL_INDEX_LOGIC_OP             = 0x0BF1;
421const uint GL_COLOR_LOGIC_OP             = 0x0BF2;
422const uint GL_AUX_BUFFERS                = 0x0C00;
423const uint GL_DRAW_BUFFER                = 0x0C01;
424const uint GL_READ_BUFFER                = 0x0C02;
425const uint GL_SCISSOR_BOX                = 0x0C10;
426const uint GL_SCISSOR_TEST               = 0x0C11;
427const uint GL_INDEX_CLEAR_VALUE          = 0x0C20;
428const uint GL_INDEX_WRITEMASK            = 0x0C21;
429const uint GL_COLOR_CLEAR_VALUE          = 0x0C22;
430const uint GL_COLOR_WRITEMASK            = 0x0C23;
431const uint GL_INDEX_MODE                 = 0x0C30;
432const uint GL_RGBA_MODE                  = 0x0C31;
433const uint GL_DOUBLEBUFFER               = 0x0C32;
434const uint GL_STEREO                     = 0x0C33;
435const uint GL_RENDER_MODE                = 0x0C40;
436const uint GL_PERSPECTIVE_CORRECTION_HINT= 0x0C50;
437const uint GL_POINT_SMOOTH_HINT          = 0x0C51;
438const uint GL_LINE_SMOOTH_HINT           = 0x0C52;
439const uint GL_POLYGON_SMOOTH_HINT        = 0x0C53;
440const uint GL_FOG_HINT                   = 0x0C54;
441const uint GL_TEXTURE_GEN_S              = 0x0C60;
442const uint GL_TEXTURE_GEN_T              = 0x0C61;
443const uint GL_TEXTURE_GEN_R              = 0x0C62;
444const uint GL_TEXTURE_GEN_Q              = 0x0C63;
445const uint GL_PIXEL_MAP_I_TO_I           = 0x0C70;
446const uint GL_PIXEL_MAP_S_TO_S           = 0x0C71;
447const uint GL_PIXEL_MAP_I_TO_R           = 0x0C72;
448const uint GL_PIXEL_MAP_I_TO_G           = 0x0C73;
449const uint GL_PIXEL_MAP_I_TO_B           = 0x0C74;
450const uint GL_PIXEL_MAP_I_TO_A           = 0x0C75;
451const uint GL_PIXEL_MAP_R_TO_R           = 0x0C76;
452const uint GL_PIXEL_MAP_G_TO_G           = 0x0C77;
453const uint GL_PIXEL_MAP_B_TO_B           = 0x0C78;
454const uint GL_PIXEL_MAP_A_TO_A           = 0x0C79;
455const uint GL_PIXEL_MAP_I_TO_I_SIZE      = 0x0CB0;
456const uint GL_PIXEL_MAP_S_TO_S_SIZE      = 0x0CB1;
457const uint GL_PIXEL_MAP_I_TO_R_SIZE      = 0x0CB2;
458const uint GL_PIXEL_MAP_I_TO_G_SIZE      = 0x0CB3;
459const uint GL_PIXEL_MAP_I_TO_B_SIZE      = 0x0CB4;
460const uint GL_PIXEL_MAP_I_TO_A_SIZE      = 0x0CB5;
461const uint GL_PIXEL_MAP_R_TO_R_SIZE      = 0x0CB6;
462const uint GL_PIXEL_MAP_G_TO_G_SIZE      = 0x0CB7;
463const uint GL_PIXEL_MAP_B_TO_B_SIZE      = 0x0CB8;
464const uint GL_PIXEL_MAP_A_TO_A_SIZE      = 0x0CB9;
465const uint GL_UNPACK_SWAP_BYTES          = 0x0CF0;
466const uint GL_UNPACK_LSB_FIRST           = 0x0CF1;
467const uint GL_UNPACK_ROW_LENGTH          = 0x0CF2;
468const uint GL_UNPACK_SKIP_ROWS           = 0x0CF3;
469const uint GL_UNPACK_SKIP_PIXELS         = 0x0CF4;
470const uint GL_UNPACK_ALIGNMENT           = 0x0CF5;
471const uint GL_PACK_SWAP_BYTES            = 0x0D00;
472const uint GL_PACK_LSB_FIRST             = 0x0D01;
473const uint GL_PACK_ROW_LENGTH            = 0x0D02;
474const uint GL_PACK_SKIP_ROWS             = 0x0D03;
475const uint GL_PACK_SKIP_PIXELS           = 0x0D04;
476const uint GL_PACK_ALIGNMENT             = 0x0D05;
477const uint GL_MAP_COLOR                  = 0x0D10;
478const uint GL_MAP_STENCIL                = 0x0D11;
479const uint GL_INDEX_SHIFT                = 0x0D12;
480const uint GL_INDEX_OFFSET               = 0x0D13;
481const uint GL_RED_SCALE                  = 0x0D14;
482const uint GL_RED_BIAS                   = 0x0D15;
483const uint GL_ZOOM_X                     = 0x0D16;
484const uint GL_ZOOM_Y                     = 0x0D17;
485const uint GL_GREEN_SCALE                = 0x0D18;
486const uint GL_GREEN_BIAS                 = 0x0D19;
487const uint GL_BLUE_SCALE                 = 0x0D1A;
488const uint GL_BLUE_BIAS                  = 0x0D1B;
489const uint GL_ALPHA_SCALE                = 0x0D1C;
490const uint GL_ALPHA_BIAS                 = 0x0D1D;
491const uint GL_DEPTH_SCALE                = 0x0D1E;
492const uint GL_DEPTH_BIAS                 = 0x0D1F;
493const uint GL_MAX_EVAL_ORDER             = 0x0D30;
494const uint GL_MAX_LIGHTS                 = 0x0D31;
495const uint GL_MAX_CLIP_PLANES            = 0x0D32;
496const uint GL_MAX_TEXTURE_SIZE           = 0x0D33;
497const uint GL_MAX_PIXEL_MAP_TABLE        = 0x0D34;
498const uint GL_MAX_ATTRIB_STACK_DEPTH     = 0x0D35;
499const uint GL_MAX_MODELVIEW_STACK_DEPTH  = 0x0D36;
500const uint GL_MAX_NAME_STACK_DEPTH       = 0x0D37;
501const uint GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38;
502const uint GL_MAX_TEXTURE_STACK_DEPTH    = 0x0D39;
503const uint GL_MAX_VIEWPORT_DIMS          = 0x0D3A;
504const uint GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B;
505const uint GL_SUBPIXEL_BITS              = 0x0D50;
506const uint GL_INDEX_BITS                 = 0x0D51;
507const uint GL_RED_BITS                   = 0x0D52;
508const uint GL_GREEN_BITS                 = 0x0D53;
509const uint GL_BLUE_BITS                  = 0x0D54;
510const uint GL_ALPHA_BITS                 = 0x0D55;
511const uint GL_DEPTH_BITS                 = 0x0D56;
512const uint GL_STENCIL_BITS               = 0x0D57;
513const uint GL_ACCUM_RED_BITS             = 0x0D58;
514const uint GL_ACCUM_GREEN_BITS           = 0x0D59;
515const uint GL_ACCUM_BLUE_BITS            = 0x0D5A;
516const uint GL_ACCUM_ALPHA_BITS           = 0x0D5B;
517const uint GL_NAME_STACK_DEPTH           = 0x0D70;
518const uint GL_AUTO_NORMAL                = 0x0D80;
519const uint GL_MAP1_COLOR_4               = 0x0D90;
520const uint GL_MAP1_INDEX                 = 0x0D91;
521const uint GL_MAP1_NORMAL                = 0x0D92;
522const uint GL_MAP1_TEXTURE_COORD_1       = 0x0D93;
523const uint GL_MAP1_TEXTURE_COORD_2       = 0x0D94;
524const uint GL_MAP1_TEXTURE_COORD_3       = 0x0D95;
525const uint GL_MAP1_TEXTURE_COORD_4       = 0x0D96;
526const uint GL_MAP1_VERTEX_3              = 0x0D97;
527const uint GL_MAP1_VERTEX_4              = 0x0D98;
528const uint GL_MAP2_COLOR_4               = 0x0DB0;
529const uint GL_MAP2_INDEX                 = 0x0DB1;
530const uint GL_MAP2_NORMAL                = 0x0DB2;
531const uint GL_MAP2_TEXTURE_COORD_1       = 0x0DB3;
532const uint GL_MAP2_TEXTURE_COORD_2       = 0x0DB4;
533const uint GL_MAP2_TEXTURE_COORD_3       = 0x0DB5;
534const uint GL_MAP2_TEXTURE_COORD_4       = 0x0DB6;
535const uint GL_MAP2_VERTEX_3              = 0x0DB7;
536const uint GL_MAP2_VERTEX_4              = 0x0DB8;
537const uint GL_MAP1_GRID_DOMAIN           = 0x0DD0;
538const uint GL_MAP1_GRID_SEGMENTS         = 0x0DD1;
539const uint GL_MAP2_GRID_DOMAIN           = 0x0DD2;
540const uint GL_MAP2_GRID_SEGMENTS         = 0x0DD3;
541const uint GL_TEXTURE_1D                 = 0x0DE0;
542const uint GL_TEXTURE_2D                 = 0x0DE1;
543const uint GL_FEEDBACK_BUFFER_POINTER    = 0x0DF0;
544const uint GL_FEEDBACK_BUFFER_SIZE       = 0x0DF1;
545const uint GL_FEEDBACK_BUFFER_TYPE       = 0x0DF2;
546const uint GL_SELECTION_BUFFER_POINTER   = 0x0DF3;
547const uint GL_SELECTION_BUFFER_SIZE      = 0x0DF4;
548/*      GL_TEXTURE_BINDING_1D */
549/*      GL_TEXTURE_BINDING_2D */
550/*      GL_VERTEX_ARRAY */
551/*      GL_NORMAL_ARRAY */
552/*      GL_COLOR_ARRAY */
553/*      GL_INDEX_ARRAY */
554/*      GL_TEXTURE_COORD_ARRAY */
555/*      GL_EDGE_FLAG_ARRAY */
556/*      GL_VERTEX_ARRAY_SIZE */
557/*      GL_VERTEX_ARRAY_TYPE */
558/*      GL_VERTEX_ARRAY_STRIDE */
559/*      GL_NORMAL_ARRAY_TYPE */
560/*      GL_NORMAL_ARRAY_STRIDE */
561/*      GL_COLOR_ARRAY_SIZE */
562/*      GL_COLOR_ARRAY_TYPE */
563/*      GL_COLOR_ARRAY_STRIDE */
564/*      GL_INDEX_ARRAY_TYPE */
565/*      GL_INDEX_ARRAY_STRIDE */
566/*      GL_TEXTURE_COORD_ARRAY_SIZE */
567/*      GL_TEXTURE_COORD_ARRAY_TYPE */
568/*      GL_TEXTURE_COORD_ARRAY_STRIDE */
569/*      GL_EDGE_FLAG_ARRAY_STRIDE */
570/*      GL_POLYGON_OFFSET_FACTOR */
571/*      GL_POLYGON_OFFSET_UNITS */
572
573/* GetTextureParameter */
574/*      GL_TEXTURE_MAG_FILTER */
575/*      GL_TEXTURE_MIN_FILTER */
576/*      GL_TEXTURE_WRAP_S */
577/*      GL_TEXTURE_WRAP_T */
578const uint GL_TEXTURE_WIDTH              = 0x1000;
579const uint GL_TEXTURE_HEIGHT             = 0x1001;
580const uint GL_TEXTURE_INTERNAL_FORMAT    = 0x1003;
581const uint GL_TEXTURE_BORDER_COLOR       = 0x1004;
582const uint GL_TEXTURE_BORDER             = 0x1005;
583/*      GL_TEXTURE_RED_SIZE */
584/*      GL_TEXTURE_GREEN_SIZE */
585/*      GL_TEXTURE_BLUE_SIZE */
586/*      GL_TEXTURE_ALPHA_SIZE */
587/*      GL_TEXTURE_LUMINANCE_SIZE */
588/*      GL_TEXTURE_INTENSITY_SIZE */
589/*      GL_TEXTURE_PRIORITY */
590/*      GL_TEXTURE_RESIDENT */
591
592/* HintMode */
593const uint GL_DONT_CARE                  = 0x1100;
594const uint GL_FASTEST                    = 0x1101;
595const uint GL_NICEST                     = 0x1102;
596
597/* HintTarget */
598/*      GL_PERSPECTIVE_CORRECTION_HINT */
599/*      GL_POINT_SMOOTH_HINT */
600/*      GL_LINE_SMOOTH_HINT */
601/*      GL_POLYGON_SMOOTH_HINT */
602/*      GL_FOG_HINT */
603/*      GL_PHONG_HINT */
604
605/* IndexPointerType */
606/*      GL_SHORT */
607/*      GL_INT */
608/*      GL_FLOAT */
609/*      GL_DOUBLE */
610
611/* LightModelParameter */
612/*      GL_LIGHT_MODEL_AMBIENT */
613/*      GL_LIGHT_MODEL_LOCAL_VIEWER */
614/*      GL_LIGHT_MODEL_TWO_SIDE */
615
616/* LightName */
617const uint GL_LIGHT0                     = 0x4000;
618const uint GL_LIGHT1                     = 0x4001;
619const uint GL_LIGHT2                     = 0x4002;
620const uint GL_LIGHT3                     = 0x4003;
621const uint GL_LIGHT4                     = 0x4004;
622const uint GL_LIGHT5                     = 0x4005;
623const uint GL_LIGHT6                     = 0x4006;
624const uint GL_LIGHT7                     = 0x4007;
625
626/* LightParameter */
627const uint GL_AMBIENT                    = 0x1200;
628const uint GL_DIFFUSE                    = 0x1201;
629const uint GL_SPECULAR                   = 0x1202;
630const uint GL_POSITION                   = 0x1203;
631const uint GL_SPOT_DIRECTION             = 0x1204;
632const uint GL_SPOT_EXPONENT              = 0x1205;
633const uint GL_SPOT_CUTOFF                = 0x1206;
634const uint GL_CONSTANT_ATTENUATION       = 0x1207;
635const uint GL_LINEAR_ATTENUATION         = 0x1208;
636const uint GL_QUADRATIC_ATTENUATION      = 0x1209;
637
638/* InterleavedArrays */
639/*      GL_V2F */
640/*      GL_V3F */
641/*      GL_C4UB_V2F */
642/*      GL_C4UB_V3F */
643/*      GL_C3F_V3F */
644/*      GL_N3F_V3F */
645/*      GL_C4F_N3F_V3F */
646/*      GL_T2F_V3F */
647/*      GL_T4F_V4F */
648/*      GL_T2F_C4UB_V3F */
649/*      GL_T2F_C3F_V3F */
650/*      GL_T2F_N3F_V3F */
651/*      GL_T2F_C4F_N3F_V3F */
652/*      GL_T4F_C4F_N3F_V4F */
653
654/* ListMode */
655const uint GL_COMPILE                    = 0x1300;
656const uint GL_COMPILE_AND_EXECUTE        = 0x1301;
657
658/* ListNameType */
659/*      GL_BYTE */
660/*      GL_UNSIGNED_BYTE */
661/*      GL_SHORT */
662/*      GL_UNSIGNED_SHORT */
663/*      GL_INT */
664/*      GL_UNSIGNED_INT */
665/*      GL_FLOAT */
666/*      GL_2_BYTES */
667/*      GL_3_BYTES */
668/*      GL_4_BYTES */
669
670/* LogicOp */
671const uint GL_CLEAR                      = 0x1500;
672const uint GL_AND                        = 0x1501;
673const uint GL_AND_REVERSE                = 0x1502;
674const uint GL_COPY                       = 0x1503;
675const uint GL_AND_INVERTED               = 0x1504;
676const uint GL_NOOP                       = 0x1505;
677const uint GL_XOR                        = 0x1506;
678const uint GL_OR                         = 0x1507;
679const uint GL_NOR                        = 0x1508;
680const uint GL_EQUIV                      = 0x1509;
681const uint GL_INVERT                     = 0x150A;
682const uint GL_OR_REVERSE                 = 0x150B;
683const uint GL_COPY_INVERTED              = 0x150C;
684const uint GL_OR_INVERTED                = 0x150D;
685const uint GL_NAND                       = 0x150E;
686const uint GL_SET                        = 0x150F;
687
688/* MapTarget */
689/*      GL_MAP1_COLOR_4 */
690/*      GL_MAP1_INDEX */
691/*      GL_MAP1_NORMAL */
692/*      GL_MAP1_TEXTURE_COORD_1 */
693/*      GL_MAP1_TEXTURE_COORD_2 */
694/*      GL_MAP1_TEXTURE_COORD_3 */
695/*      GL_MAP1_TEXTURE_COORD_4 */
696/*      GL_MAP1_VERTEX_3 */
697/*      GL_MAP1_VERTEX_4 */
698/*      GL_MAP2_COLOR_4 */
699/*      GL_MAP2_INDEX */
700/*      GL_MAP2_NORMAL */
701/*      GL_MAP2_TEXTURE_COORD_1 */
702/*      GL_MAP2_TEXTURE_COORD_2 */
703/*      GL_MAP2_TEXTURE_COORD_3 */
704/*      GL_MAP2_TEXTURE_COORD_4 */
705/*      GL_MAP2_VERTEX_3 */
706/*      GL_MAP2_VERTEX_4 */
707
708/* MaterialFace */
709/*      GL_FRONT */
710/*      GL_BACK */
711/*      GL_FRONT_AND_BACK */
712
713/* MaterialParameter */
714const uint GL_EMISSION                   = 0x1600;
715const uint GL_SHININESS                  = 0x1601;
716const uint GL_AMBIENT_AND_DIFFUSE        = 0x1602;
717const uint GL_COLOR_INDEXES              = 0x1603;
718/*      GL_AMBIENT */
719/*      GL_DIFFUSE */
720/*      GL_SPECULAR */
721
722/* MatrixMode */
723const uint GL_MODELVIEW                  = 0x1700;
724const uint GL_PROJECTION                 = 0x1701;
725const uint GL_TEXTURE                    = 0x1702;
726
727/* MeshMode1 */
728/*      GL_POINT */
729/*      GL_LINE */
730
731/* MeshMode2 */
732/*      GL_POINT */
733/*      GL_LINE */
734/*      GL_FILL */
735
736/* NormalPointerType */
737/*      GL_BYTE */
738/*      GL_SHORT */
739/*      GL_INT */
740/*      GL_FLOAT */
741/*      GL_DOUBLE */
742
743/* PixelCopyType */
744const uint GL_COLOR                      = 0x1800;
745const uint GL_DEPTH                      = 0x1801;
746const uint GL_STENCIL                    = 0x1802;
747
748/* PixelFormat */
749const uint GL_COLOR_INDEX                = 0x1900;
750const uint GL_STENCIL_INDEX              = 0x1901;
751const uint GL_DEPTH_COMPONENT            = 0x1902;
752const uint GL_RED                        = 0x1903;
753const uint GL_GREEN                      = 0x1904;
754const uint GL_BLUE                       = 0x1905;
755const uint GL_ALPHA                      = 0x1906;
756const uint GL_RGB                        = 0x1907;
757const uint GL_RGBA                       = 0x1908;
758const uint GL_LUMINANCE                  = 0x1909;
759const uint GL_LUMINANCE_ALPHA            = 0x190A;
760
761/* PixelMap */
762/*      GL_PIXEL_MAP_I_TO_I */
763/*      GL_PIXEL_MAP_S_TO_S */
764/*      GL_PIXEL_MAP_I_TO_R */
765/*      GL_PIXEL_MAP_I_TO_G */
766/*      GL_PIXEL_MAP_I_TO_B */
767/*      GL_PIXEL_MAP_I_TO_A */
768/*      GL_PIXEL_MAP_R_TO_R */
769/*      GL_PIXEL_MAP_G_TO_G */
770/*      GL_PIXEL_MAP_B_TO_B */
771/*      GL_PIXEL_MAP_A_TO_A */
772
773/* PixelStore */
774/*      GL_UNPACK_SWAP_BYTES */
775/*      GL_UNPACK_LSB_FIRST */
776/*      GL_UNPACK_ROW_LENGTH */
777/*      GL_UNPACK_SKIP_ROWS */
778/*      GL_UNPACK_SKIP_PIXELS */
779/*      GL_UNPACK_ALIGNMENT */
780/*      GL_PACK_SWAP_BYTES */
781/*      GL_PACK_LSB_FIRST */
782/*      GL_PACK_ROW_LENGTH */
783/*      GL_PACK_SKIP_ROWS */
784/*      GL_PACK_SKIP_PIXELS */
785/*      GL_PACK_ALIGNMENT */
786
787/* PixelTransfer */
788/*      GL_MAP_COLOR */
789/*      GL_MAP_STENCIL */
790/*      GL_INDEX_SHIFT */
791/*      GL_INDEX_OFFSET */
792/*      GL_RED_SCALE */
793/*      GL_RED_BIAS */
794/*      GL_GREEN_SCALE */
795/*      GL_GREEN_BIAS */
796/*      GL_BLUE_SCALE */
797/*      GL_BLUE_BIAS */
798/*      GL_ALPHA_SCALE */
799/*      GL_ALPHA_BIAS */
800/*      GL_DEPTH_SCALE */
801/*      GL_DEPTH_BIAS */
802
803/* PixelType */
804const uint GL_BITMAP                     = 0x1A00;
805/*      GL_BYTE */
806/*      GL_UNSIGNED_BYTE */
807/*      GL_SHORT */
808/*      GL_UNSIGNED_SHORT */
809/*      GL_INT */
810/*      GL_UNSIGNED_INT */
811/*      GL_FLOAT */
812
813/* PolygonMode */
814const uint GL_POINT                      = 0x1B00;
815const uint GL_LINE                       = 0x1B01;
816const uint GL_FILL                       = 0x1B02;
817
818/* ReadBufferMode */
819/*      GL_FRONT_LEFT */
820/*      GL_FRONT_RIGHT */
821/*      GL_BACK_LEFT */
822/*      GL_BACK_RIGHT */
823/*      GL_FRONT */
824/*      GL_BACK */
825/*      GL_LEFT */
826/*      GL_RIGHT */
827/*      GL_AUX0 */
828/*      GL_AUX1 */
829/*      GL_AUX2 */
830/*      GL_AUX3 */
831
832/* RenderingMode */
833const uint GL_RENDER                     = 0x1C00;
834const uint GL_FEEDBACK                   = 0x1C01;
835const uint GL_SELECT                     = 0x1C02;
836
837/* ShadingModel */
838const uint GL_FLAT                       = 0x1D00;
839const uint GL_SMOOTH                     = 0x1D01;
840
841
842/* StencilFunction */
843/*      GL_NEVER */
844/*      GL_LESS */
845/*      GL_EQUAL */
846/*      GL_LEQUAL */
847/*      GL_GREATER */
848/*      GL_NOTEQUAL */
849/*      GL_GEQUAL */
850/*      GL_ALWAYS */
851
852/* StencilOp */
853/*      GL_ZERO */
854const uint GL_KEEP                       = 0x1E00;
855const uint GL_REPLACE                    = 0x1E01;
856const uint GL_INCR                       = 0x1E02;
857const uint GL_DECR                       = 0x1E03;
858/*      GL_INVERT */
859
860/* StringName */
861const uint GL_VENDOR                     = 0x1F00;
862const uint GL_RENDERER                   = 0x1F01;
863const uint GL_VERSION                    = 0x1F02;
864const uint GL_EXTENSIONS                 = 0x1F03;
865
866/* TextureCoordName */
867const uint GL_S                          = 0x2000;
868const uint GL_T                          = 0x2001;
869const uint GL_R                          = 0x2002;
870const uint GL_Q                          = 0x2003;
871
872/* TexCoordPointerType */
873/*      GL_SHORT */
874/*      GL_INT */
875/*      GL_FLOAT */
876/*      GL_DOUBLE */
877
878/* TextureEnvMode */
879const uint GL_MODULATE                   = 0x2100;
880const uint GL_DECAL                      = 0x2101;
881/*      GL_BLEND */
882/*      GL_REPLACE */
883
884/* TextureEnvParameter */
885const uint GL_TEXTURE_ENV_MODE           = 0x2200;
886const uint GL_TEXTURE_ENV_COLOR          = 0x2201;
887
888/* TextureEnvTarget */
889const uint GL_TEXTURE_ENV                = 0x2300;
890
891/* TextureGenMode */
892const uint GL_EYE_LINEAR                 = 0x2400;
893const uint GL_OBJECT_LINEAR              = 0x2401;
894const uint GL_SPHERE_MAP                 = 0x2402;
895
896/* TextureGenParameter */
897const uint GL_TEXTURE_GEN_MODE           = 0x2500;
898const uint GL_OBJECT_PLANE               = 0x2501;
899const uint GL_EYE_PLANE                  = 0x2502;
900
901/* TextureMagFilter */
902const uint GL_NEAREST                    = 0x2600;
903const uint GL_LINEAR                     = 0x2601;
904
905/* TextureMinFilter */
906/*      GL_NEAREST */
907/*      GL_LINEAR */
908const uint GL_NEAREST_MIPMAP_NEAREST     = 0x2700;
909const uint GL_LINEAR_MIPMAP_NEAREST      = 0x2701;
910const uint GL_NEAREST_MIPMAP_LINEAR      = 0x2702;
911const uint GL_LINEAR_MIPMAP_LINEAR       = 0x2703;
912
913/* TextureParameterName */
914const uint GL_TEXTURE_MAG_FILTER         = 0x2800;
915const uint GL_TEXTURE_MIN_FILTER         = 0x2801;
916const uint GL_TEXTURE_WRAP_S             = 0x2802;
917const uint GL_TEXTURE_WRAP_T             = 0x2803;
918/*      GL_TEXTURE_BORDER_COLOR */
919/*      GL_TEXTURE_PRIORITY */
920
921/* TextureTarget */
922/*      GL_TEXTURE_1D */
923/*      GL_TEXTURE_2D */
924/*      GL_PROXY_TEXTURE_1D */
925/*      GL_PROXY_TEXTURE_2D */
926
927/* TextureWrapMode */
928const uint GL_CLAMP                      = 0x2900;
929const uint GL_REPEAT                     = 0x2901;
930
931/* VertexPointerType */
932/*      GL_SHORT */
933/*      GL_INT */
934/*      GL_FLOAT */
935/*      GL_DOUBLE */
936
937/* ClientAttribMask */
938const uint GL_CLIENT_PIXEL_STORE_BIT     = 0x00000001;
939const uint GL_CLIENT_VERTEX_ARRAY_BIT    = 0x00000002;
940const uint GL_CLIENT_ALL_ATTRIB_BITS     = 0xffffffff;
941
942/* polygon_offset */
943const uint GL_POLYGON_OFFSET_FACTOR      = 0x8038;
944const uint GL_POLYGON_OFFSET_UNITS       = 0x2A00;
945const uint GL_POLYGON_OFFSET_POINT       = 0x2A01;
946const uint GL_POLYGON_OFFSET_LINE        = 0x2A02;
947const uint GL_POLYGON_OFFSET_FILL        = 0x8037;
948
949/* texture */
950const uint GL_ALPHA4                     = 0x803B;
951const uint GL_ALPHA8                     = 0x803C;
952const uint GL_ALPHA12                    = 0x803D;
953const uint GL_ALPHA16                    = 0x803E;
954const uint GL_LUMINANCE4                 = 0x803F;
955const uint GL_LUMINANCE8                 = 0x8040;
956const uint GL_LUMINANCE12                = 0x8041;
957const uint GL_LUMINANCE16                = 0x8042;
958const uint GL_LUMINANCE4_ALPHA4          = 0x8043;
959const uint GL_LUMINANCE6_ALPHA2          = 0x8044;
960const uint GL_LUMINANCE8_ALPHA8          = 0x8045;
961const uint GL_LUMINANCE12_ALPHA4         = 0x8046;
962const uint GL_LUMINANCE12_ALPHA12        = 0x8047;
963const uint GL_LUMINANCE16_ALPHA16        = 0x8048;
964const uint GL_INTENSITY                  = 0x8049;
965const uint GL_INTENSITY4                 = 0x804A;
966const uint GL_INTENSITY8                 = 0x804B;
967const uint GL_INTENSITY12                = 0x804C;
968const uint GL_INTENSITY16                = 0x804D;
969const uint GL_R3_G3_B2                   = 0x2A10;
970const uint GL_RGB4                       = 0x804F;
971const uint GL_RGB5                       = 0x8050;
972const uint GL_RGB8                       = 0x8051;
973const uint GL_RGB10                      = 0x8052;
974const uint GL_RGB12                      = 0x8053;
975const uint GL_RGB16                      = 0x8054;
976const uint GL_RGBA2                      = 0x8055;
977const uint GL_RGBA4                      = 0x8056;
978const uint GL_RGB5_A1                    = 0x8057;
979const uint GL_RGBA8                      = 0x8058;
980const uint GL_RGB10_A2                   = 0x8059;
981const uint GL_RGBA12                     = 0x805A;
982const uint GL_RGBA16                     = 0x805B;
983const uint GL_TEXTURE_RED_SIZE           = 0x805C;
984const uint GL_TEXTURE_GREEN_SIZE         = 0x805D;
985const uint GL_TEXTURE_BLUE_SIZE          = 0x805E;
986const uint GL_TEXTURE_ALPHA_SIZE         = 0x805F;
987const uint GL_TEXTURE_LUMINANCE_SIZE     = 0x8060;
988const uint GL_TEXTURE_INTENSITY_SIZE     = 0x8061;
989const uint GL_PROXY_TEXTURE_1D           = 0x8063;
990const uint GL_PROXY_TEXTURE_2D           = 0x8064;
991
992/* texture_object */
993const uint GL_TEXTURE_PRIORITY           = 0x8066;
994const uint GL_TEXTURE_RESIDENT           = 0x8067;
995const uint GL_TEXTURE_BINDING_1D         = 0x8068;
996const uint GL_TEXTURE_BINDING_2D         = 0x8069;
997
998/* vertex_array */
999const uint GL_VERTEX_ARRAY               = 0x8074;
1000const uint GL_NORMAL_ARRAY               = 0x8075;
1001const uint GL_COLOR_ARRAY                = 0x8076;
1002const uint GL_INDEX_ARRAY                = 0x8077;
1003const uint GL_TEXTURE_COORD_ARRAY        = 0x8078;
1004const uint GL_EDGE_FLAG_ARRAY            = 0x8079;
1005const uint GL_VERTEX_ARRAY_SIZE          = 0x807A;
1006const uint GL_VERTEX_ARRAY_TYPE          = 0x807B;
1007const uint GL_VERTEX_ARRAY_STRIDE        = 0x807C;
1008const uint GL_NORMAL_ARRAY_TYPE          = 0x807E;
1009const uint GL_NORMAL_ARRAY_STRIDE        = 0x807F;
1010const uint GL_COLOR_ARRAY_SIZE           = 0x8081;
1011const uint GL_COLOR_ARRAY_TYPE           = 0x8082;
1012const uint GL_COLOR_ARRAY_STRIDE         = 0x8083;
1013const uint GL_INDEX_ARRAY_TYPE           = 0x8085;
1014const uint GL_INDEX_ARRAY_STRIDE         = 0x8086;
1015const uint GL_TEXTURE_COORD_ARRAY_SIZE   = 0x8088;
1016const uint GL_TEXTURE_COORD_ARRAY_TYPE   = 0x8089;
1017const uint GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A;
1018const uint GL_EDGE_FLAG_ARRAY_STRIDE     = 0x808C;
1019const uint GL_VERTEX_ARRAY_POINTER       = 0x808E;
1020const uint GL_NORMAL_ARRAY_POINTER       = 0x808F;
1021const uint GL_COLOR_ARRAY_POINTER        = 0x8090;
1022const uint GL_INDEX_ARRAY_POINTER        = 0x8091;
1023const uint GL_TEXTURE_COORD_ARRAY_POINTER= 0x8092;
1024const uint GL_EDGE_FLAG_ARRAY_POINTER    = 0x8093;
1025const uint GL_V2F                        = 0x2A20;
1026const uint GL_V3F                        = 0x2A21;
1027const uint GL_C4UB_V2F                   = 0x2A22;
1028const uint GL_C4UB_V3F                   = 0x2A23;
1029const uint GL_C3F_V3F                    = 0x2A24;
1030const uint GL_N3F_V3F                    = 0x2A25;
1031const uint GL_C4F_N3F_V3F                = 0x2A26;
1032const uint GL_T2F_V3F                    = 0x2A27;
1033const uint GL_T4F_V4F                    = 0x2A28;
1034const uint GL_T2F_C4UB_V3F               = 0x2A29;
1035const uint GL_T2F_C3F_V3F                = 0x2A2A;
1036const uint GL_T2F_N3F_V3F                = 0x2A2B;
1037const uint GL_T2F_C4F_N3F_V3F            = 0x2A2C;
1038const uint GL_T4F_C4F_N3F_V4F            = 0x2A2D;
1039
1040/* Extensions */
1041const uint GL_EXT_vertex_array               = 1;
1042const uint GL_EXT_bgra                       = 1;
1043const uint GL_EXT_paletted_texture           = 1;
1044const uint GL_WIN_swap_hint                  = 1;
1045const uint GL_WIN_draw_range_elements        = 1;
1046// const uint GL_WIN_phong_shading              1
1047// const uint GL_WIN_specular_fog               1
1048
1049/* EXT_vertex_array */
1050const uint GL_VERTEX_ARRAY_EXT           = 0x8074;
1051const uint GL_NORMAL_ARRAY_EXT           = 0x8075;
1052const uint GL_COLOR_ARRAY_EXT            = 0x8076;
1053const uint GL_INDEX_ARRAY_EXT            = 0x8077;
1054const uint GL_TEXTURE_COORD_ARRAY_EXT    = 0x8078;
1055const uint GL_EDGE_FLAG_ARRAY_EXT        = 0x8079;
1056const uint GL_VERTEX_ARRAY_SIZE_EXT      = 0x807A;
1057const uint GL_VERTEX_ARRAY_TYPE_EXT      = 0x807B;
1058const uint GL_VERTEX_ARRAY_STRIDE_EXT    = 0x807C;
1059const uint GL_VERTEX_ARRAY_COUNT_EXT     = 0x807D;
1060const uint GL_NORMAL_ARRAY_TYPE_EXT      = 0x807E;
1061const uint GL_NORMAL_ARRAY_STRIDE_EXT    = 0x807F;
1062const uint GL_NORMAL_ARRAY_COUNT_EXT     = 0x8080;
1063const uint GL_COLOR_ARRAY_SIZE_EXT       = 0x8081;
1064const uint GL_COLOR_ARRAY_TYPE_EXT       = 0x8082;
1065const uint GL_COLOR_ARRAY_STRIDE_EXT     = 0x8083;
1066const uint GL_COLOR_ARRAY_COUNT_EXT      = 0x8084;
1067const uint GL_INDEX_ARRAY_TYPE_EXT       = 0x8085;
1068const uint GL_INDEX_ARRAY_STRIDE_EXT     = 0x8086;
1069const uint GL_INDEX_ARRAY_COUNT_EXT      = 0x8087;
1070const uint GL_TEXTURE_COORD_ARRAY_SIZE_EXT   = 0x8088;
1071const uint GL_TEXTURE_COORD_ARRAY_TYPE_EXT   = 0x8089;
1072const uint GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A;
1073const uint GL_TEXTURE_COORD_ARRAY_COUNT_EXT  = 0x808B;
1074const uint GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C;
1075const uint GL_EDGE_FLAG_ARRAY_COUNT_EXT  = 0x808D;
1076const uint GL_VERTEX_ARRAY_POINTER_EXT   = 0x808E;
1077const uint GL_NORMAL_ARRAY_POINTER_EXT   = 0x808F;
1078const uint GL_COLOR_ARRAY_POINTER_EXT    = 0x8090;
1079const uint GL_INDEX_ARRAY_POINTER_EXT    = 0x8091;
1080const uint GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092;
1081const uint GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093;
1082const uint GL_DOUBLE_EXT                  = GL_DOUBLE;
1083
1084/* EXT_bgra */
1085const uint GL_BGR_EXT                    = 0x80E0;
1086const uint GL_BGRA_EXT                   = 0x80E1;
1087
1088/* EXT_paletted_texture */
1089
1090/* These must match the GL_COLOR_TABLE_*_SGI enumerants */
1091const uint GL_COLOR_TABLE_FORMAT_EXT     = 0x80D8;
1092const uint GL_COLOR_TABLE_WIDTH_EXT      = 0x80D9;
1093const uint GL_COLOR_TABLE_RED_SIZE_EXT   = 0x80DA;
1094const uint GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB;
1095const uint GL_COLOR_TABLE_BLUE_SIZE_EXT  = 0x80DC;
1096const uint GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD;
1097const uint GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE;
1098const uint GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF;
1099
1100const uint GL_COLOR_INDEX1_EXT           = 0x80E2;
1101const uint GL_COLOR_INDEX2_EXT           = 0x80E3;
1102const uint GL_COLOR_INDEX4_EXT           = 0x80E4;
1103const uint GL_COLOR_INDEX8_EXT           = 0x80E5;
1104const uint GL_COLOR_INDEX12_EXT          = 0x80E6;
1105const uint GL_COLOR_INDEX16_EXT          = 0x80E7;
1106
1107/* WIN_draw_range_elements */
1108const uint GL_MAX_ELEMENTS_VERTICES_WIN  = 0x80E8;
1109const uint GL_MAX_ELEMENTS_INDICES_WIN   = 0x80E9;
1110
1111/* WIN_phong_shading */
1112const uint GL_PHONG_WIN                  = 0x80EA;
1113const uint GL_PHONG_HINT_WIN             = 0x80EB;
1114
1115/* WIN_specular_fog */
1116const uint GL_FOG_SPECULAR_TEXTURE_WIN   = 0x80EC;
1117
1118/* For compatibility with OpenGL v1.0 */
1119const uint GL_LOGIC_OP = GL_INDEX_LOGIC_OP;
1120const uint GL_TEXTURE_COMPONENTS = GL_TEXTURE_INTERNAL_FORMAT;
1121
1122/*************************************************************/
1123
1124void /*APIENTRY*/glAccum (GLenum op, GLfloat value);
1125void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf cref);
1126GLboolean /*APIENTRY*/glAreTexturesResident (GLsizei n, GLuint *textures, GLboolean *residences);
1127void /*APIENTRY*/glArrayElement (GLint i);
1128void /*APIENTRY*/glBegin (GLenum mode);
1129void /*APIENTRY*/glBindTexture (GLenum target, GLuint texture);
1130void /*APIENTRY*/glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte *bitmap);
1131void /*APIENTRY*/glBlendFunc (GLenum sfactor, GLenum dfactor);
1132void /*APIENTRY*/glCallList (GLuint list);
1133void /*APIENTRY*/glCallLists (GLsizei n, GLenum type, GLvoid *lists);
1134void /*APIENTRY*/glClear (GLbitfield mask);
1135void /*APIENTRY*/glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
1136void /*APIENTRY*/glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
1137void /*APIENTRY*/glClearDepth (GLclampd depth);
1138void /*APIENTRY*/glClearIndex (GLfloat c);
1139void /*APIENTRY*/glClearStencil (GLint s);
1140void /*APIENTRY*/glClipPlane (GLenum plane, GLdouble *equation);
1141void /*APIENTRY*/glColor3b (GLbyte red, GLbyte green, GLbyte blue);
1142void /*APIENTRY*/glColor3bv (GLbyte *v);
1143void /*APIENTRY*/glColor3d (GLdouble red, GLdouble green, GLdouble blue);
1144void /*APIENTRY*/glColor3dv (GLdouble *v);
1145void /*APIENTRY*/glColor3f (GLfloat red, GLfloat green, GLfloat blue);
1146void /*APIENTRY*/glColor3fv (GLfloat *v);
1147void /*APIENTRY*/glColor3i (GLint red, GLint green, GLint blue);
1148void /*APIENTRY*/glColor3iv (GLint *v);
1149void /*APIENTRY*/glColor3s (GLshort red, GLshort green, GLshort blue);
1150void /*APIENTRY*/glColor3sv (GLshort *v);
1151void /*APIENTRY*/glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
1152void /*APIENTRY*/glColor3ubv (GLubyte *v);
1153void /*APIENTRY*/glColor3ui (GLuint red, GLuint green, GLuint blue);
1154void /*APIENTRY*/glColor3uiv (GLuint *v);
1155void /*APIENTRY*/glColor3us (GLushort red, GLushort green, GLushort blue);
1156void /*APIENTRY*/glColor3usv (GLushort *v);
1157void /*APIENTRY*/glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
1158void /*APIENTRY*/glColor4bv (GLbyte *v);
1159void /*APIENTRY*/glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
1160void /*APIENTRY*/glColor4dv (GLdouble *v);
1161void /*APIENTRY*/glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
1162void /*APIENTRY*/glColor4fv (GLfloat *v);
1163void /*APIENTRY*/glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
1164void /*APIENTRY*/glColor4iv (GLint *v);
1165void /*APIENTRY*/glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
1166void /*APIENTRY*/glColor4sv (GLshort *v);
1167void /*APIENTRY*/glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
1168void /*APIENTRY*/glColor4ubv (GLubyte *v);
1169void /*APIENTRY*/glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
1170void /*APIENTRY*/glColor4uiv (GLuint *v);
1171void /*APIENTRY*/glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
1172void /*APIENTRY*/glColor4usv (GLushort *v);
1173void /*APIENTRY*/glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
1174void /*APIENTRY*/glColorMaterial (GLenum face, GLenum mode);
1175void /*APIENTRY*/glColorPointer (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
1176void /*APIENTRY*/glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
1177void /*APIENTRY*/glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
1178void /*APIENTRY*/glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
1179void /*APIENTRY*/glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
1180void /*APIENTRY*/glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
1181void /*APIENTRY*/glCullFace (GLenum mode);
1182void /*APIENTRY*/glDeleteLists (GLuint list, GLsizei range);
1183void /*APIENTRY*/glDeleteTextures (GLsizei n, GLuint *textures);
1184void /*APIENTRY*/glDepthFunc (GLenum func);
1185void /*APIENTRY*/glDepthMask (GLboolean flag);
1186void /*APIENTRY*/glDepthRange (GLclampd zNear, GLclampd zFar);
1187void /*APIENTRY*/glDisable (GLenum cap);
1188void /*APIENTRY*/glDisableClientState (GLenum array);
1189void /*APIENTRY*/glDrawArrays (GLenum mode, GLint first, GLsizei count);
1190void /*APIENTRY*/glDrawBuffer (GLenum mode);
1191void /*APIENTRY*/glDrawElements (GLenum mode, GLsizei count, GLenum type, GLvoid *indices);
1192void /*APIENTRY*/glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
1193void /*APIENTRY*/glEdgeFlag (GLboolean flag);
1194void /*APIENTRY*/glEdgeFlagPointer (GLsizei stride, GLvoid *pointer);
1195void /*APIENTRY*/glEdgeFlagv (GLboolean *flag);
1196void /*APIENTRY*/glEnable (GLenum cap);
1197void /*APIENTRY*/glEnableClientState (GLenum array);
1198void /*APIENTRY*/glEnd ();
1199void /*APIENTRY*/glEndList ();
1200void /*APIENTRY*/glEvalCoord1d (GLdouble u);
1201void /*APIENTRY*/glEvalCoord1dv (GLdouble *u);
1202void /*APIENTRY*/glEvalCoord1f (GLfloat u);
1203void /*APIENTRY*/glEvalCoord1fv (GLfloat *u);
1204void /*APIENTRY*/glEvalCoord2d (GLdouble u, GLdouble v);
1205void /*APIENTRY*/glEvalCoord2dv (GLdouble *u);
1206void /*APIENTRY*/glEvalCoord2f (GLfloat u, GLfloat v);
1207void /*APIENTRY*/glEvalCoord2fv (GLfloat *u);
1208void /*APIENTRY*/glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
1209void /*APIENTRY*/glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
1210void /*APIENTRY*/glEvalPoint1 (GLint i);
1211void /*APIENTRY*/glEvalPoint2 (GLint i, GLint j);
1212void /*APIENTRY*/glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
1213void /*APIENTRY*/glFinish ();
1214void /*APIENTRY*/glFlush ();
1215void /*APIENTRY*/glFogf (GLenum pname, GLfloat param);
1216void /*APIENTRY*/glFogfv (GLenum pname, GLfloat *params);
1217void /*APIENTRY*/glFogi (GLenum pname, GLint param);
1218void /*APIENTRY*/glFogiv (GLenum pname, GLint *params);
1219void /*APIENTRY*/glFrontFace (GLenum mode);
1220void /*APIENTRY*/glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
1221GLuint /*APIENTRY*/glGenLists (GLsizei range);
1222void /*APIENTRY*/glGenTextures (GLsizei n, GLuint *textures);
1223void /*APIENTRY*/glGetBooleanv (GLenum pname, GLboolean *params);
1224void /*APIENTRY*/glGetClipPlane (GLenum plane, GLdouble *equation);
1225void /*APIENTRY*/glGetDoublev (GLenum pname, GLdouble *params);
1226GLenum /*APIENTRY*/glGetError ();
1227void /*APIENTRY*/glGetFloatv (GLenum pname, GLfloat *params);
1228void /*APIENTRY*/glGetIntegerv (GLenum pname, GLint *params);
1229void /*APIENTRY*/glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
1230void /*APIENTRY*/glGetLightiv (GLenum light, GLenum pname, GLint *params);
1231void /*APIENTRY*/glGetMapdv (GLenum target, GLenum query, GLdouble *v);
1232void /*APIENTRY*/glGetMapfv (GLenum target, GLenum query, GLfloat *v);
1233void /*APIENTRY*/glGetMapiv (GLenum target, GLenum query, GLint *v);
1234void /*APIENTRY*/glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
1235void /*APIENTRY*/glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
1236void /*APIENTRY*/glGetPixelMapfv (GLenum map, GLfloat *values);
1237void /*APIENTRY*/glGetPixelMapuiv (GLenum map, GLuint *values);
1238void /*APIENTRY*/glGetPixelMapusv (GLenum map, GLushort *values);
1239void /*APIENTRY*/glGetPointerv (GLenum pname, GLvoid* *params);
1240void /*APIENTRY*/glGetPolygonStipple (GLubyte *mask);
1241GLubyte * /*APIENTRY*/glGetString (GLenum name);
1242void /*APIENTRY*/glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
1243void /*APIENTRY*/glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
1244void /*APIENTRY*/glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
1245void /*APIENTRY*/glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
1246void /*APIENTRY*/glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
1247void /*APIENTRY*/glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
1248void /*APIENTRY*/glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
1249void /*APIENTRY*/glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
1250void /*APIENTRY*/glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
1251void /*APIENTRY*/glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
1252void /*APIENTRY*/glHint (GLenum target, GLenum mode);
1253void /*APIENTRY*/glIndexMask (GLuint mask);
1254void /*APIENTRY*/glIndexPointer (GLenum type, GLsizei stride, GLvoid *pointer);
1255void /*APIENTRY*/glIndexd (GLdouble c);
1256void /*APIENTRY*/glIndexdv (GLdouble *c);
1257void /*APIENTRY*/glIndexf (GLfloat c);
1258void /*APIENTRY*/glIndexfv (GLfloat *c);
1259void /*APIENTRY*/glIndexi (GLint c);
1260void /*APIENTRY*/glIndexiv (GLint *c);
1261void /*APIENTRY*/glIndexs (GLshort c);
1262void /*APIENTRY*/glIndexsv (GLshort *c);
1263void /*APIENTRY*/glIndexub (GLubyte c);
1264void /*APIENTRY*/glIndexubv (GLubyte *c);
1265void /*APIENTRY*/glInitNames ();
1266void /*APIENTRY*/glInterleavedArrays (GLenum format, GLsizei stride, GLvoid *pointer);
1267GLboolean /*APIENTRY*/glIsEnabled (GLenum cap);
1268GLboolean /*APIENTRY*/glIsList (GLuint list);
1269GLboolean /*APIENTRY*/glIsTexture (GLuint texture);
1270void /*APIENTRY*/glLightModelf (GLenum pname, GLfloat param);
1271void /*APIENTRY*/glLightModelfv (GLenum pname, GLfloat *params);
1272void /*APIENTRY*/glLightModeli (GLenum pname, GLint param);
1273void /*APIENTRY*/glLightModeliv (GLenum pname, GLint *params);
1274void /*APIENTRY*/glLightf (GLenum light, GLenum pname, GLfloat param);
1275void /*APIENTRY*/glLightfv (GLenum light, GLenum pname, GLfloat *params);
1276void /*APIENTRY*/glLighti (GLenum light, GLenum pname, GLint param);
1277void /*APIENTRY*/glLightiv (GLenum light, GLenum pname, GLint *params);
1278void /*APIENTRY*/glLineStipple (GLint factor, GLushort pattern);
1279void /*APIENTRY*/glLineWidth (GLfloat width);
1280void /*APIENTRY*/glListBase (GLuint base);
1281void /*APIENTRY*/glLoadIdentity ();
1282void /*APIENTRY*/glLoadMatrixd (GLdouble *m);
1283void /*APIENTRY*/glLoadMatrixf (GLfloat *m);
1284void /*APIENTRY*/glLoadName (GLuint name);
1285void /*APIENTRY*/glLogicOp (GLenum opcode);
1286void /*APIENTRY*/glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, GLdouble *points);
1287void /*APIENTRY*/glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, GLfloat *points);
1288void /*APIENTRY*/glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble *points);
1289void /*APIENTRY*/glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat *points);
1290void /*APIENTRY*/glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
1291void /*APIENTRY*/glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
1292void /*APIENTRY*/glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
1293void /*APIENTRY*/glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
1294void /*APIENTRY*/glMaterialf (GLenum face, GLenum pname, GLfloat param);
1295void /*APIENTRY*/glMaterialfv (GLenum face, GLenum pname, GLfloat *params);
1296void /*APIENTRY*/glMateriali (GLenum face, GLenum pname, GLint param);
1297void /*APIENTRY*/glMaterialiv (GLenum face, GLenum pname, GLint *params);
1298void /*APIENTRY*/glMatrixMode (GLenum mode);
1299void /*APIENTRY*/glMultMatrixd (GLdouble *m);
1300void /*APIENTRY*/glMultMatrixf (GLfloat *m);
1301void /*APIENTRY*/glNewList (GLuint list, GLenum mode);
1302void /*APIENTRY*/glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
1303void /*APIENTRY*/glNormal3bv (GLbyte *v);
1304void /*APIENTRY*/glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
1305void /*APIENTRY*/glNormal3dv (GLdouble *v);
1306void /*APIENTRY*/glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
1307void /*APIENTRY*/glNormal3fv (GLfloat *v);
1308void /*APIENTRY*/glNormal3i (GLint nx, GLint ny, GLint nz);
1309void /*APIENTRY*/glNormal3iv (GLint *v);
1310void /*APIENTRY*/glNormal3s (GLshort nx, GLshort ny, GLshort nz);
1311void /*APIENTRY*/glNormal3sv (GLshort *v);
1312void /*APIENTRY*/glNormalPointer (GLenum type, GLsizei stride, GLvoid *pointer);
1313void /*APIENTRY*/glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
1314void /*APIENTRY*/glPassThrough (GLfloat token);
1315void /*APIENTRY*/glPixelMapfv (GLenum map, GLsizei mapsize, GLfloat *values);
1316void /*APIENTRY*/glPixelMapuiv (GLenum map, GLsizei mapsize, GLuint *values);
1317void /*APIENTRY*/glPixelMapusv (GLenum map, GLsizei mapsize, GLushort *values);
1318void /*APIENTRY*/glPixelStoref (GLenum pname, GLfloat param);
1319void /*APIENTRY*/glPixelStorei (GLenum pname, GLint param);
1320void /*APIENTRY*/glPixelTransferf (GLenum pname, GLfloat param);
1321void /*APIENTRY*/glPixelTransferi (GLenum pname, GLint param);
1322void /*APIENTRY*/glPixelZoom (GLfloat xfactor, GLfloat yfactor);
1323void /*APIENTRY*/glPointSize (GLfloat size);
1324void /*APIENTRY*/glPolygonMode (GLenum face, GLenum mode);
1325void /*APIENTRY*/glPolygonOffset (GLfloat factor, GLfloat units);
1326void /*APIENTRY*/glPolygonStipple (GLubyte *mask);
1327void /*APIENTRY*/glPopAttrib ();
1328void /*APIENTRY*/glPopClientAttrib ();
1329void /*APIENTRY*/glPopMatrix ();
1330void /*APIENTRY*/glPopName ();
1331void /*APIENTRY*/glPrioritizeTextures (GLsizei n, GLuint *textures, GLclampf *priorities);
1332void /*APIENTRY*/glPushAttrib (GLbitfield mask);
1333void /*APIENTRY*/glPushClientAttrib (GLbitfield mask);
1334void /*APIENTRY*/glPushMatrix ();
1335void /*APIENTRY*/glPushName (GLuint name);
1336void /*APIENTRY*/glRasterPos2d (GLdouble x, GLdouble y);
1337void /*APIENTRY*/glRasterPos2dv (GLdouble *v);
1338void /*APIENTRY*/glRasterPos2f (GLfloat x, GLfloat y);
1339void /*APIENTRY*/glRasterPos2fv (GLfloat *v);
1340void /*APIENTRY*/glRasterPos2i (GLint x, GLint y);
1341void /*APIENTRY*/glRasterPos2iv (GLint *v);
1342void /*APIENTRY*/glRasterPos2s (GLshort x, GLshort y);
1343void /*APIENTRY*/glRasterPos2sv (GLshort *v);
1344void /*APIENTRY*/glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
1345void /*APIENTRY*/glRasterPos3dv (GLdouble *v);
1346void /*APIENTRY*/glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
1347void /*APIENTRY*/glRasterPos3fv (GLfloat *v);
1348void /*APIENTRY*/glRasterPos3i (GLint x, GLint y, GLint z);
1349void /*APIENTRY*/glRasterPos3iv (GLint *v);
1350void /*APIENTRY*/glRasterPos3s (GLshort x, GLshort y, GLshort z);
1351void /*APIENTRY*/glRasterPos3sv (GLshort *v);
1352void /*APIENTRY*/glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1353void /*APIENTRY*/glRasterPos4dv (GLdouble *v);
1354void /*APIENTRY*/glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1355void /*APIENTRY*/glRasterPos4fv (GLfloat *v);
1356void /*APIENTRY*/glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
1357void /*APIENTRY*/glRasterPos4iv (GLint *v);
1358void /*APIENTRY*/glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
1359void /*APIENTRY*/glRasterPos4sv (GLshort *v);
1360void /*APIENTRY*/glReadBuffer (GLenum mode);
1361void /*APIENTRY*/glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
1362void /*APIENTRY*/glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
1363void /*APIENTRY*/glRectdv (GLdouble *v1, GLdouble *v2);
1364void /*APIENTRY*/glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
1365void /*APIENTRY*/glRectfv (GLfloat *v1, GLfloat *v2);
1366void /*APIENTRY*/glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
1367void /*APIENTRY*/glRectiv (GLint *v1, GLint *v2);
1368void /*APIENTRY*/glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
1369void /*APIENTRY*/glRectsv (GLshort *v1, GLshort *v2);
1370GLint /*APIENTRY*/glRenderMode (GLenum mode);
1371void /*APIENTRY*/glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
1372void /*APIENTRY*/glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
1373void /*APIENTRY*/glScaled (GLdouble x, GLdouble y, GLdouble z);
1374void /*APIENTRY*/glScalef (GLfloat x, GLfloat y, GLfloat z);
1375void /*APIENTRY*/glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1376void /*APIENTRY*/glSelectBuffer (GLsizei size, GLuint *buffer);
1377void /*APIENTRY*/glShadeModel (GLenum mode);
1378void /*APIENTRY*/glStencilFunc (GLenum func, GLint cref, GLuint mask);
1379void /*APIENTRY*/glStencilMask (GLuint mask);
1380void /*APIENTRY*/glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1381void /*APIENTRY*/glTexCoord1d (GLdouble s);
1382void /*APIENTRY*/glTexCoord1dv (GLdouble *v);
1383void /*APIENTRY*/glTexCoord1f (GLfloat s);
1384void /*APIENTRY*/glTexCoord1fv (GLfloat *v);
1385void /*APIENTRY*/glTexCoord1i (GLint s);
1386void /*APIENTRY*/glTexCoord1iv (GLint *v);
1387void /*APIENTRY*/glTexCoord1s (GLshort s);
1388void /*APIENTRY*/glTexCoord1sv (GLshort *v);
1389void /*APIENTRY*/glTexCoord2d (GLdouble s, GLdouble t);
1390void /*APIENTRY*/glTexCoord2dv (GLdouble *v);
1391void /*APIENTRY*/glTexCoord2f (GLfloat s, GLfloat t);
1392void /*APIENTRY*/glTexCoord2fv (GLfloat *v);
1393void /*APIENTRY*/glTexCoord2i (GLint s, GLint t);
1394void /*APIENTRY*/glTexCoord2iv (GLint *v);
1395void /*APIENTRY*/glTexCoord2s (GLshort s, GLshort t);
1396void /*APIENTRY*/glTexCoord2sv (GLshort *v);
1397void /*APIENTRY*/glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
1398void /*APIENTRY*/glTexCoord3dv (GLdouble *v);
1399void /*APIENTRY*/glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
1400void /*APIENTRY*/glTexCoord3fv (GLfloat *v);
1401void /*APIENTRY*/glTexCoord3i (GLint s, GLint t, GLint r);
1402void /*APIENTRY*/glTexCoord3iv (GLint *v);
1403void /*APIENTRY*/glTexCoord3s (GLshort s, GLshort t, GLshort r);
1404void /*APIENTRY*/glTexCoord3sv (GLshort *v);
1405void /*APIENTRY*/glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1406void /*APIENTRY*/glTexCoord4dv (GLdouble *v);
1407void /*APIENTRY*/glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1408void /*APIENTRY*/glTexCoord4fv (GLfloat *v);
1409void /*APIENTRY*/glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
1410void /*APIENTRY*/glTexCoord4iv (GLint *v);
1411void /*APIENTRY*/glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
1412void /*APIENTRY*/glTexCoord4sv (GLshort *v);
1413void /*APIENTRY*/glTexCoordPointer (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
1414void /*APIENTRY*/glTexEnvf (GLenum target, GLenum pname, GLfloat param);
1415void /*APIENTRY*/glTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
1416void /*APIENTRY*/glTexEnvi (GLenum target, GLenum pname, GLint param);
1417void /*APIENTRY*/glTexEnviv (GLenum target, GLenum pname, GLint *params);
1418void /*APIENTRY*/glTexGend (GLenum coord, GLenum pname, GLdouble param);
1419void /*APIENTRY*/glTexGendv (GLenum coord, GLenum pname, GLdouble *params);
1420void /*APIENTRY*/glTexGenf (GLenum coord, GLenum pname, GLfloat param);
1421void /*APIENTRY*/glTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
1422void /*APIENTRY*/glTexGeni (GLenum coord, GLenum pname, GLint param);
1423void /*APIENTRY*/glTexGeniv (GLenum coord, GLenum pname, GLint *params);
1424void /*APIENTRY*/glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, GLvoid *pixels);
1425void /*APIENTRY*/glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLvoid *pixels);
1426void /*APIENTRY*/glTexParameterf (GLenum target, GLenum pname, GLfloat param);
1427void /*APIENTRY*/glTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
1428void /*APIENTRY*/glTexParameteri (GLenum target, GLenum pname, GLint param);
1429void /*APIENTRY*/glTexParameteriv (GLenum target, GLenum pname, GLint *params);
1430void /*APIENTRY*/glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, GLvoid *pixels);
1431void /*APIENTRY*/glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
1432void /*APIENTRY*/glTranslated (GLdouble x, GLdouble y, GLdouble z);
1433void /*APIENTRY*/glTranslatef (GLfloat x, GLfloat y, GLfloat z);
1434void /*APIENTRY*/glVertex2d (GLdouble x, GLdouble y);
1435void /*APIENTRY*/glVertex2dv (GLdouble *v);
1436void /*APIENTRY*/glVertex2f (GLfloat x, GLfloat y);
1437void /*APIENTRY*/glVertex2fv (GLfloat *v);
1438void /*APIENTRY*/glVertex2i (GLint x, GLint y);
1439void /*APIENTRY*/glVertex2iv (GLint *v);
1440void /*APIENTRY*/glVertex2s (GLshort x, GLshort y);
1441void /*APIENTRY*/glVertex2sv (GLshort *v);
1442void /*APIENTRY*/glVertex3d (GLdouble x, GLdouble y, GLdouble z);
1443void /*APIENTRY*/glVertex3dv (GLdouble *v);
1444void /*APIENTRY*/glVertex3f (GLfloat x, GLfloat y, GLfloat z);
1445void /*APIENTRY*/glVertex3fv (GLfloat *v);
1446void /*APIENTRY*/glVertex3i (GLint x, GLint y, GLint z);
1447void /*APIENTRY*/glVertex3iv (GLint *v);
1448void /*APIENTRY*/glVertex3s (GLshort x, GLshort y, GLshort z);
1449void /*APIENTRY*/glVertex3sv (GLshort *v);
1450void /*APIENTRY*/glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1451void /*APIENTRY*/glVertex4dv (GLdouble *v);
1452void /*APIENTRY*/glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1453void /*APIENTRY*/glVertex4fv (GLfloat *v);
1454void /*APIENTRY*/glVertex4i (GLint x, GLint y, GLint z, GLint w);
1455void /*APIENTRY*/glVertex4iv (GLint *v);
1456void /*APIENTRY*/glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
1457void /*APIENTRY*/glVertex4sv (GLshort *v);
1458void /*APIENTRY*/glVertexPointer (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
1459void /*APIENTRY*/glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
1460
1461
1462/* EXT_vertex_array */
1463typedef void (* PFNGLARRAYELEMENTEXTPROC) (GLint i);
1464typedef void (* PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
1465typedef void (* PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, GLvoid *pointer);
1466typedef void (* PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, GLvoid *pointer);
1467typedef void (* PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, GLvoid *pointer);
1468typedef void (* PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, GLvoid *pointer);
1469typedef void (* PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, GLvoid *pointer);
1470typedef void (* PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, GLboolean *pointer);
1471typedef void (* PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
1472typedef void (* PFNGLARRAYELEMENTARRAYEXTPROC)(GLenum mode, GLsizei count, GLvoid* pi);
1473
1474/* WIN_draw_range_elements */
1475typedef void (* PFNGLDRAWRANGEELEMENTSWINPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLvoid *indices);
1476
1477/* WIN_swap_hint */
1478typedef void (* PFNGLADDSWAPHINTRECTWINPROC)  (GLint x, GLint y, GLsizei width, GLsizei height);
1479
1480/* EXT_paletted_texture */
1481typedef void (* PFNGLCOLORTABLEEXTPROC)
1482    (GLenum target, GLenum internalFormat, GLsizei width, GLenum format,
1483     GLenum type, GLvoid *data);
1484typedef void (* PFNGLCOLORSUBTABLEEXTPROC)
1485    (GLenum target, GLsizei start, GLsizei count, GLenum format,
1486     GLenum type, GLvoid *data);
1487typedef void (* PFNGLGETCOLORTABLEEXTPROC)
1488    (GLenum target, GLenum format, GLenum type, GLvoid *data);
1489typedef void (* PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)
1490    (GLenum target, GLenum pname, GLint *params);
1491typedef void (* PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)
1492    (GLenum target, GLenum pname, GLfloat *params);
1493
1494//import openglu;
Note: See TracBrowser for help on using the browser.