9 ** License Applicability. Except to the extent portions of this file are
10 ** made subject to an alternative license as permitted in the SGI Free
11 ** Software License B, Version 1.0 (the "License"), the contents of this
12 ** file are subject only to the provisions of the License. You may not use
13 ** this file except in compliance with the License. You may obtain a copy
14 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
17 ** http://oss.sgi.com/projects/FreeB
19 ** Note that, as provided in the License, the Software is distributed on an
20 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
25 ** Original Code. The Original Code is: OpenGL Sample Implementation,
26 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28 ** Copyright in any portions created by third parties is as indicated
29 ** elsewhere herein. All Rights Reserved.
31 ** Additional Notice Provisions: The application programming interfaces
32 ** established by SGI in conjunction with the Original Code are The
33 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
34 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
35 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
36 ** Window System(R) (Version 1.3), released October 19, 1998. This software
37 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
38 ** published by SGI, but has not been independently verified as being
39 ** compliant with the OpenGL(R) version 1.2.1 Specification.
42 #if defined(__SYMBIAN32__)
46 #elif (defined(WIN32) || defined(_WIN32_WCE)) /*&& !defined(APIENTRY) && !defined(__CYGWIN__)*/
48 # ifndef WIN32_LEAN_AND_MEAN
49 # define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
54 #elif defined(__gnu_linux__)
64 # error "Unsupported Operating System"
75 #define GLAPI __declspec(dllexport)
77 #define GLAPI __declspec(dllimport)
81 typedef unsigned int GLenum;
82 typedef unsigned char GLboolean;
83 typedef unsigned int GLbitfield;
84 typedef signed char GLbyte;
85 typedef short GLshort;
88 typedef unsigned char GLubyte;
89 typedef unsigned short GLushort;
90 typedef unsigned int GLuint;
91 typedef float GLfloat;
92 typedef float GLclampf;
95 typedef int GLsizeiptr;
98 /* Internal convenience typedefs */
99 typedef void (*_GLfuncptr)();
101 /*************************************************************/
103 /* OpenGL ES core versions */
104 #define GL_OES_VERSION_1_0 1
105 #define GL_OES_VERSION_1_1 1
108 #define GL_OES_compressed_paletted_texture 1
109 /*#define GL_OES_draw_texture 1*/
110 #define GL_OES_matrix_get 1
111 /*#define GL_OES_matrix_palette 1*/
112 #define GL_OES_point_size_array 1
113 #define GL_OES_point_sprite 1
114 #define GL_OES_read_format 1
116 /* ClearBufferMask */
117 #define GL_DEPTH_BUFFER_BIT 0x00000100
118 #define GL_STENCIL_BUFFER_BIT 0x00000400
119 #define GL_COLOR_BUFFER_BIT 0x00004000
126 #define GL_POINTS 0x0000
127 #define GL_LINES 0x0001
128 #define GL_LINE_LOOP 0x0002
129 #define GL_LINE_STRIP 0x0003
130 #define GL_TRIANGLES 0x0004
131 #define GL_TRIANGLE_STRIP 0x0005
132 #define GL_TRIANGLE_FAN 0x0006
135 #define GL_NEVER 0x0200
136 #define GL_LESS 0x0201
137 #define GL_EQUAL 0x0202
138 #define GL_LEQUAL 0x0203
139 #define GL_GREATER 0x0204
140 #define GL_NOTEQUAL 0x0205
141 #define GL_GEQUAL 0x0206
142 #define GL_ALWAYS 0x0207
144 /* BlendingFactorDest */
147 #define GL_SRC_COLOR 0x0300
148 #define GL_ONE_MINUS_SRC_COLOR 0x0301
149 #define GL_SRC_ALPHA 0x0302
150 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
151 #define GL_DST_ALPHA 0x0304
152 #define GL_ONE_MINUS_DST_ALPHA 0x0305
154 /* BlendingFactorSrc */
157 #define GL_DST_COLOR 0x0306
158 #define GL_ONE_MINUS_DST_COLOR 0x0307
159 #define GL_SRC_ALPHA_SATURATE 0x0308
161 /* GL_ONE_MINUS_SRC_ALPHA */
163 /* GL_ONE_MINUS_DST_ALPHA */
166 #define GL_CLIP_PLANE0 0x3000
167 #define GL_CLIP_PLANE1 0x3001
168 #define GL_CLIP_PLANE2 0x3002
169 #define GL_CLIP_PLANE3 0x3003
170 #define GL_CLIP_PLANE4 0x3004
171 #define GL_CLIP_PLANE5 0x3005
173 /* ColorMaterialFace */
174 /* GL_FRONT_AND_BACK */
176 /* ColorMaterialParameter */
177 /* GL_AMBIENT_AND_DIFFUSE */
179 /* ColorPointerType */
180 /* GL_UNSIGNED_BYTE */
185 #define GL_FRONT 0x0404
186 #define GL_BACK 0x0405
187 #define GL_FRONT_AND_BACK 0x0408
200 #define GL_FOG 0x0B60
201 #define GL_LIGHTING 0x0B50
202 #define GL_TEXTURE_2D 0x0DE1
203 #define GL_CULL_FACE 0x0B44
204 #define GL_ALPHA_TEST 0x0BC0
205 #define GL_BLEND 0x0BE2
206 #define GL_COLOR_LOGIC_OP 0x0BF2
207 #define GL_DITHER 0x0BD0
208 #define GL_STENCIL_TEST 0x0B90
209 #define GL_DEPTH_TEST 0x0B71
218 #define GL_POINT_SMOOTH 0x0B10
219 #define GL_LINE_SMOOTH 0x0B20
220 #define GL_SCISSOR_TEST 0x0C11
221 #define GL_COLOR_MATERIAL 0x0B57
222 #define GL_NORMALIZE 0x0BA1
223 #define GL_RESCALE_NORMAL 0x803A
224 #define GL_POLYGON_OFFSET_FILL 0x8037
225 #define GL_VERTEX_ARRAY 0x8074
226 #define GL_NORMAL_ARRAY 0x8075
227 #define GL_COLOR_ARRAY 0x8076
228 #define GL_TEXTURE_COORD_ARRAY 0x8078
229 #define GL_MULTISAMPLE 0x809D
230 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
231 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
232 #define GL_SAMPLE_COVERAGE 0x80A0
235 #define GL_NO_ERROR 0
236 #define GL_INVALID_ENUM 0x0500
237 #define GL_INVALID_VALUE 0x0501
238 #define GL_INVALID_OPERATION 0x0502
239 #define GL_STACK_OVERFLOW 0x0503
240 #define GL_STACK_UNDERFLOW 0x0504
241 #define GL_OUT_OF_MEMORY 0x0505
245 #define GL_EXP 0x0800
246 #define GL_EXP2 0x0801
249 #define GL_FOG_DENSITY 0x0B62
250 #define GL_FOG_START 0x0B63
251 #define GL_FOG_END 0x0B64
252 #define GL_FOG_MODE 0x0B65
253 #define GL_FOG_COLOR 0x0B66
255 /* FrontFaceDirection */
257 #define GL_CCW 0x0901
260 #define GL_CURRENT_COLOR 0x0B00
261 #define GL_CURRENT_NORMAL 0x0B02
262 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
263 #define GL_POINT_SIZE 0x0B11
264 #define GL_POINT_SIZE_MIN 0x8126
265 #define GL_POINT_SIZE_MAX 0x8127
266 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
267 #define GL_POINT_DISTANCE_ATTENUATION 0x8129
268 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
269 #define GL_LINE_WIDTH 0x0B21
270 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
271 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
272 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
273 #define GL_CULL_FACE_MODE 0x0B45
274 #define GL_FRONT_FACE 0x0B46
275 #define GL_SHADE_MODEL 0x0B54
276 #define GL_DEPTH_RANGE 0x0B70
277 #define GL_DEPTH_WRITEMASK 0x0B72
278 #define GL_DEPTH_CLEAR_VALUE 0x0B73
279 #define GL_DEPTH_FUNC 0x0B74
280 #define GL_STENCIL_CLEAR_VALUE 0x0B91
281 #define GL_STENCIL_FUNC 0x0B92
282 #define GL_STENCIL_VALUE_MASK 0x0B93
283 #define GL_STENCIL_FAIL 0x0B94
284 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
285 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
286 #define GL_STENCIL_REF 0x0B97
287 #define GL_STENCIL_WRITEMASK 0x0B98
288 #define GL_MATRIX_MODE 0x0BA0
289 #define GL_VIEWPORT 0x0BA2
290 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
291 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
292 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
293 #define GL_MODELVIEW_MATRIX 0x0BA6
294 #define GL_PROJECTION_MATRIX 0x0BA7
295 #define GL_TEXTURE_MATRIX 0x0BA8
296 #define GL_ALPHA_TEST_FUNC 0x0BC1
297 #define GL_ALPHA_TEST_REF 0x0BC2
298 #define GL_BLEND_DST 0x0BE0
299 #define GL_BLEND_SRC 0x0BE1
300 #define GL_LOGIC_OP_MODE 0x0BF0
301 #define GL_SCISSOR_BOX 0x0C10
302 #define GL_SCISSOR_TEST 0x0C11
303 #define GL_COLOR_CLEAR_VALUE 0x0C22
304 #define GL_COLOR_WRITEMASK 0x0C23
305 #define GL_UNPACK_ALIGNMENT 0x0CF5
306 #define GL_PACK_ALIGNMENT 0x0D05
307 #define GL_MAX_LIGHTS 0x0D31
308 #define GL_MAX_CLIP_PLANES 0x0D32
309 #define GL_MAX_TEXTURE_SIZE 0x0D33
310 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
311 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
312 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
313 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
314 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
315 #define GL_MAX_ELEMENTS_INDICES 0x80E9
316 #define GL_MAX_TEXTURE_UNITS 0x84E2
317 #define GL_SUBPIXEL_BITS 0x0D50
318 #define GL_RED_BITS 0x0D52
319 #define GL_GREEN_BITS 0x0D53
320 #define GL_BLUE_BITS 0x0D54
321 #define GL_ALPHA_BITS 0x0D55
322 #define GL_DEPTH_BITS 0x0D56
323 #define GL_STENCIL_BITS 0x0D57
324 #define GL_POLYGON_OFFSET_UNITS 0x2A00
325 #define GL_POLYGON_OFFSET_FILL 0x8037
326 #define GL_POLYGON_OFFSET_FACTOR 0x8038
327 #define GL_TEXTURE_BINDING_2D 0x8069
328 #define GL_VERTEX_ARRAY_SIZE 0x807A
329 #define GL_VERTEX_ARRAY_TYPE 0x807B
330 #define GL_VERTEX_ARRAY_STRIDE 0x807C
331 #define GL_NORMAL_ARRAY_TYPE 0x807E
332 #define GL_NORMAL_ARRAY_STRIDE 0x807F
333 #define GL_COLOR_ARRAY_SIZE 0x8081
334 #define GL_COLOR_ARRAY_TYPE 0x8082
335 #define GL_COLOR_ARRAY_STRIDE 0x8083
336 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
337 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
338 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
339 #define GL_VERTEX_ARRAY_POINTER 0x808E
340 #define GL_NORMAL_ARRAY_POINTER 0x808F
341 #define GL_COLOR_ARRAY_POINTER 0x8090
342 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
343 #define GL_SAMPLE_BUFFERS 0x80A8
344 #define GL_SAMPLES 0x80A9
345 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
346 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
348 /* GetTextureParameter */
349 /* GL_TEXTURE_MAG_FILTER */
350 /* GL_TEXTURE_MIN_FILTER */
351 /* GL_TEXTURE_WRAP_S */
352 /* GL_TEXTURE_WRAP_T */
354 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
355 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
356 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
357 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
360 #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS 0x898D
361 #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS 0x898E
362 #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS 0x898F
365 #define GL_DONT_CARE 0x1100
366 #define GL_FASTEST 0x1101
367 #define GL_NICEST 0x1102
370 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
371 #define GL_POINT_SMOOTH_HINT 0x0C51
372 #define GL_LINE_SMOOTH_HINT 0x0C52
373 #define GL_POLYGON_SMOOTH_HINT 0x0C53
374 #define GL_FOG_HINT 0x0C54
375 #define GL_GENERATE_MIPMAP_HINT 0x8192
377 /* LightModelParameter */
378 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
379 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
382 #define GL_AMBIENT 0x1200
383 #define GL_DIFFUSE 0x1201
384 #define GL_SPECULAR 0x1202
385 #define GL_POSITION 0x1203
386 #define GL_SPOT_DIRECTION 0x1204
387 #define GL_SPOT_EXPONENT 0x1205
388 #define GL_SPOT_CUTOFF 0x1206
389 #define GL_CONSTANT_ATTENUATION 0x1207
390 #define GL_LINEAR_ATTENUATION 0x1208
391 #define GL_QUADRATIC_ATTENUATION 0x1209
394 #define GL_BYTE 0x1400
395 #define GL_UNSIGNED_BYTE 0x1401
396 #define GL_SHORT 0x1402
397 #define GL_UNSIGNED_SHORT 0x1403
398 #define GL_FLOAT 0x1406
399 #define GL_FIXED 0x140C
402 #define GL_CLEAR 0x1500
403 #define GL_AND 0x1501
404 #define GL_AND_REVERSE 0x1502
405 #define GL_COPY 0x1503
406 #define GL_AND_INVERTED 0x1504
407 #define GL_NOOP 0x1505
408 #define GL_XOR 0x1506
410 #define GL_NOR 0x1508
411 #define GL_EQUIV 0x1509
412 #define GL_INVERT 0x150A
413 #define GL_OR_REVERSE 0x150B
414 #define GL_COPY_INVERTED 0x150C
415 #define GL_OR_INVERTED 0x150D
416 #define GL_NAND 0x150E
417 #define GL_SET 0x150F
420 /* GL_FRONT_AND_BACK */
422 /* MaterialParameter */
423 #define GL_EMISSION 0x1600
424 #define GL_SHININESS 0x1601
425 #define GL_AMBIENT_AND_DIFFUSE 0x1602
431 #define GL_MODELVIEW 0x1700
432 #define GL_PROJECTION 0x1701
433 #define GL_TEXTURE 0x1702
435 /* NormalPointerType */
442 #define GL_ALPHA 0x1906
443 #define GL_RGB 0x1907
444 #define GL_RGBA 0x1908
445 #define GL_LUMINANCE 0x1909
446 #define GL_LUMINANCE_ALPHA 0x190A
448 /* PixelStoreParameter */
449 #define GL_UNPACK_ALIGNMENT 0x0CF5
450 #define GL_PACK_ALIGNMENT 0x0D05
453 /* GL_UNSIGNED_BYTE */
454 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
455 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
456 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
459 #define GL_FLAT 0x1D00
460 #define GL_SMOOTH 0x1D01
462 /* StencilFunction */
474 #define GL_KEEP 0x1E00
475 #define GL_REPLACE 0x1E01
476 #define GL_INCR 0x1E02
477 #define GL_DECR 0x1E03
481 #define GL_VENDOR 0x1F00
482 #define GL_RENDERER 0x1F01
483 #define GL_VERSION 0x1F02
484 #define GL_EXTENSIONS 0x1F03
486 /* TexCoordPointerType */
493 #define GL_MODULATE 0x2100
494 #define GL_DECAL 0x2101
496 #define GL_ADD 0x0104
499 /* TextureEnvParameter */
500 #define GL_TEXTURE_ENV_MODE 0x2200
501 #define GL_TEXTURE_ENV_COLOR 0x2201
503 /* TextureEnvTarget */
504 #define GL_TEXTURE_ENV 0x2300
506 /* TextureMagFilter */
507 #define GL_NEAREST 0x2600
508 #define GL_LINEAR 0x2601
510 /* TextureMinFilter */
513 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
514 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
515 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
516 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
518 /* TextureParameterName */
519 #define GL_TEXTURE_MAG_FILTER 0x2800
520 #define GL_TEXTURE_MIN_FILTER 0x2801
521 #define GL_TEXTURE_WRAP_S 0x2802
522 #define GL_TEXTURE_WRAP_T 0x2803
523 #define GL_GENERATE_MIPMAP 0x8191
529 #define GL_TEXTURE0 0x84C0
530 #define GL_TEXTURE1 0x84C1
531 #define GL_TEXTURE2 0x84C2
532 #define GL_TEXTURE3 0x84C3
533 #define GL_TEXTURE4 0x84C4
534 #define GL_TEXTURE5 0x84C5
535 #define GL_TEXTURE6 0x84C6
536 #define GL_TEXTURE7 0x84C7
537 #define GL_TEXTURE8 0x84C8
538 #define GL_TEXTURE9 0x84C9
539 #define GL_TEXTURE10 0x84CA
540 #define GL_TEXTURE11 0x84CB
541 #define GL_TEXTURE12 0x84CC
542 #define GL_TEXTURE13 0x84CD
543 #define GL_TEXTURE14 0x84CE
544 #define GL_TEXTURE15 0x84CF
545 #define GL_TEXTURE16 0x84D0
546 #define GL_TEXTURE17 0x84D1
547 #define GL_TEXTURE18 0x84D2
548 #define GL_TEXTURE19 0x84D3
549 #define GL_TEXTURE20 0x84D4
550 #define GL_TEXTURE21 0x84D5
551 #define GL_TEXTURE22 0x84D6
552 #define GL_TEXTURE23 0x84D7
553 #define GL_TEXTURE24 0x84D8
554 #define GL_TEXTURE25 0x84D9
555 #define GL_TEXTURE26 0x84DA
556 #define GL_TEXTURE27 0x84DB
557 #define GL_TEXTURE28 0x84DC
558 #define GL_TEXTURE29 0x84DD
559 #define GL_TEXTURE30 0x84DE
560 #define GL_TEXTURE31 0x84DF
561 #define GL_ACTIVE_TEXTURE 0x84E0
562 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
564 /* TextureWrapMode */
565 #define GL_REPEAT 0x2901
566 #define GL_CLAMP_TO_EDGE 0x812F
568 /* PixelInternalFormat */
569 #define GL_PALETTE4_RGB8_OES 0x8B90
570 #define GL_PALETTE4_RGBA8_OES 0x8B91
571 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
572 #define GL_PALETTE4_RGBA4_OES 0x8B93
573 #define GL_PALETTE4_RGB5_A1_OES 0x8B94
574 #define GL_PALETTE8_RGB8_OES 0x8B95
575 #define GL_PALETTE8_RGBA8_OES 0x8B96
576 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
577 #define GL_PALETTE8_RGBA4_OES 0x8B98
578 #define GL_PALETTE8_RGB5_A1_OES 0x8B99
580 /* VertexPointerType */
587 #define GL_LIGHT0 0x4000
588 #define GL_LIGHT1 0x4001
589 #define GL_LIGHT2 0x4002
590 #define GL_LIGHT3 0x4003
591 #define GL_LIGHT4 0x4004
592 #define GL_LIGHT5 0x4005
593 #define GL_LIGHT6 0x4006
594 #define GL_LIGHT7 0x4007
597 #define GL_ARRAY_BUFFER 0x8892
598 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
600 #define GL_ARRAY_BUFFER_BINDING 0x8894
601 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
602 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
603 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
604 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
605 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
607 #define GL_STATIC_DRAW 0x88E4
608 #define GL_DYNAMIC_DRAW 0x88E8
610 #define GL_WRITE_ONLY 0x88B9
612 #define GL_BUFFER_SIZE 0x8764
613 #define GL_BUFFER_USAGE 0x8765
614 #define GL_BUFFER_ACCESS 0x88BB
617 /* Texture combine + dot3 */
618 #define GL_SUBTRACT 0x84E7
619 #define GL_COMBINE 0x8570
620 #define GL_COMBINE_RGB 0x8571
621 #define GL_COMBINE_ALPHA 0x8572
622 #define GL_RGB_SCALE 0x8573
623 #define GL_ADD_SIGNED 0x8574
624 #define GL_INTERPOLATE 0x8575
625 #define GL_CONSTANT 0x8576
626 #define GL_PRIMARY_COLOR 0x8577
627 #define GL_PREVIOUS 0x8578
628 #define GL_OPERAND0_RGB 0x8590
629 #define GL_OPERAND1_RGB 0x8591
630 #define GL_OPERAND2_RGB 0x8592
631 #define GL_OPERAND0_ALPHA 0x8598
632 #define GL_OPERAND1_ALPHA 0x8599
633 #define GL_OPERAND2_ALPHA 0x859A
635 #define GL_ALPHA_SCALE 0x0D1C
637 #define GL_SRC0_RGB 0x8580
638 #define GL_SRC1_RGB 0x8581
639 #define GL_SRC2_RGB 0x8582
640 #define GL_SRC0_ALPHA 0x8588
641 #define GL_SRC1_ALPHA 0x8589
642 #define GL_SRC2_ALPHA 0x858A
644 #define GL_DOT3_RGB 0x86AE
645 #define GL_DOT3_RGBA 0x86AF
647 /*****************************************************************************************/
648 /* OES extension functions */
649 /*****************************************************************************************/
650 /* OES_point_sprite */
651 #define GL_POINT_SPRITE_OES 0x8861
652 #define GL_COORD_REPLACE_OES 0x8862
654 /* OES_point_size_array */
655 #define GL_POINT_SIZE_ARRAY_OES 0x8B9C
656 #define GL_POINT_SIZE_ARRAY_TYPE_OES 0x898A
657 #define GL_POINT_SIZE_ARRAY_STRIDE_OES 0x898B
658 #define GL_POINT_SIZE_ARRAY_POINTER_OES 0x898C
659 #define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES 0x8B9F
661 /* OES_matrix_palette */
662 #define GL_MAX_VERTEX_UNITS_OES 0x86A4
663 #define GL_MAX_PALETTE_MATRICES_OES 0x8842
664 #define GL_MATRIX_PALETTE_OES 0x8840
665 #define GL_MATRIX_INDEX_ARRAY_OES 0x8844
666 #define GL_WEIGHT_ARRAY_OES 0x86AD
668 #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
669 #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
670 #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
671 #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
672 #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
674 #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
675 #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
676 #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
677 #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
678 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
680 /* OES_draw_texture */
681 #define GL_TEXTURE_CROP_RECT_OES 0x8B9D
683 /*************************************************************/
685 GLAPI void APIENTRY glActiveTexture (GLenum texture);
686 GLAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
687 GLAPI void APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
688 GLAPI void APIENTRY glBindBuffer(GLenum target, GLuint buffer);
689 GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
690 GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
691 GLAPI void APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
692 GLAPI void APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
693 GLAPI void APIENTRY glClear (GLbitfield mask);
694 GLAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
695 GLAPI void APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
696 GLAPI void APIENTRY glClearDepthf (GLclampf depth);
697 GLAPI void APIENTRY glClearDepthx (GLclampx depth);
698 GLAPI void APIENTRY glClearStencil (GLint s);
699 GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
700 GLAPI void APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation);
701 GLAPI void APIENTRY glClipPlanef(GLenum plane, const GLfloat *equation);
702 GLAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
703 GLAPI void APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
704 GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
705 GLAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
706 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
707 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
708 GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
709 GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
710 GLAPI void APIENTRY glCullFace (GLenum mode);
711 GLAPI void APIENTRY glDeleteBuffers(GLsizei n, const GLuint *buffers);
712 GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
713 GLAPI void APIENTRY glDepthFunc (GLenum func);
714 GLAPI void APIENTRY glDepthMask (GLboolean flag);
715 GLAPI void APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
716 GLAPI void APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar);
717 GLAPI void APIENTRY glDisable (GLenum cap);
718 GLAPI void APIENTRY glDisableClientState (GLenum array);
719 GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
720 GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
721 GLAPI void APIENTRY glEnable (GLenum cap);
722 GLAPI void APIENTRY glEnableClientState (GLenum array);
723 GLAPI void APIENTRY glFinish (void);
724 GLAPI void APIENTRY glFlush (void);
725 GLAPI void APIENTRY glFogf (GLenum pname, GLfloat param);
726 GLAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);
727 GLAPI void APIENTRY glFogx (GLenum pname, GLfixed param);
728 GLAPI void APIENTRY glFogxv (GLenum pname, const GLfixed *params);
729 GLAPI void APIENTRY glFrontFace (GLenum mode);
730 GLAPI void APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
731 GLAPI void APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
732 GLAPI void APIENTRY glGetBooleanv(GLenum pname, GLboolean *params);
733 GLAPI void APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params);
734 GLAPI void APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
735 GLAPI void APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
736 GLAPI void APIENTRY glGenBuffers(GLsizei n, GLuint *buffers);
737 GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
738 GLAPI GLenum APIENTRY glGetError (void);
739 GLAPI void APIENTRY glGetFixedv(GLenum pname, GLfixed *params);
740 GLAPI void APIENTRY glGetFloatv(GLenum pname, GLfloat *params);
741 GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
742 GLAPI void APIENTRY glGetLightfv(GLenum light, GLenum pname, GLfloat *params);
743 GLAPI void APIENTRY glGetLightxv(GLenum light, GLenum pname, GLfixed *params);
744 GLAPI void APIENTRY glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
745 GLAPI void APIENTRY glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params);
746 GLAPI void APIENTRY glGetPointerv(GLenum pname, void **params);
747 GLAPI const GLubyte * APIENTRY glGetString (GLenum name);
748 GLAPI void APIENTRY glGetTexEnviv(GLenum env, GLenum pname, GLint *params);
749 GLAPI void APIENTRY glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params);
750 GLAPI void APIENTRY glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params);
751 GLAPI void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
752 GLAPI void APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
753 GLAPI void APIENTRY glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params);
754 GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
755 GLAPI GLboolean APIENTRY glIsBuffer(GLuint buffer);
756 GLAPI GLboolean APIENTRY glIsEnabled(GLenum cap);
757 GLAPI GLboolean APIENTRY glIsTexture(GLuint texture);
758 GLAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);
759 GLAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
760 GLAPI void APIENTRY glLightModelx (GLenum pname, GLfixed param);
761 GLAPI void APIENTRY glLightModelxv (GLenum pname, const GLfixed *params);
762 GLAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
763 GLAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
764 GLAPI void APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
765 GLAPI void APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params);
766 GLAPI void APIENTRY glLineWidth (GLfloat width);
767 GLAPI void APIENTRY glLineWidthx (GLfixed width);
768 GLAPI void APIENTRY glLoadIdentity (void);
769 GLAPI void APIENTRY glLoadMatrixf (const GLfloat *m);
770 GLAPI void APIENTRY glLoadMatrixx (const GLfixed *m);
771 GLAPI void APIENTRY glLogicOp (GLenum opcode);
772 GLAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
773 GLAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
774 GLAPI void APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
775 GLAPI void APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params);
776 GLAPI void APIENTRY glMatrixMode (GLenum mode);
777 GLAPI void APIENTRY glMultMatrixf (const GLfloat *m);
778 GLAPI void APIENTRY glMultMatrixx (const GLfixed *m);
779 GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
780 GLAPI void APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
781 GLAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
782 GLAPI void APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz);
783 GLAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
784 GLAPI void APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
785 GLAPI void APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
786 GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
787 GLAPI void APIENTRY glPointParameterf(GLenum pname, GLfloat param);
788 GLAPI void APIENTRY glPointParameterfv(GLenum pname, const GLfloat *params);
789 GLAPI void APIENTRY glPointParameterx(GLenum pname, GLfixed param);
790 GLAPI void APIENTRY glPointParameterxv(GLenum pname, const GLfixed *params);
791 GLAPI void APIENTRY glPointSize (GLfloat size);
792 GLAPI void APIENTRY glPointSizex (GLfixed size);
793 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
794 GLAPI void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
795 GLAPI void APIENTRY glPopMatrix (void);
796 GLAPI void APIENTRY glPushMatrix (void);
797 GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
798 GLAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
799 GLAPI void APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
800 GLAPI void APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
801 GLAPI void APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
802 GLAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
803 GLAPI void APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z);
804 GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
805 GLAPI void APIENTRY glShadeModel (GLenum mode);
806 GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
807 GLAPI void APIENTRY glStencilMask (GLuint mask);
808 GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
809 GLAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
810 GLAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
811 GLAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
812 GLAPI void APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
813 GLAPI void APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params);
814 GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
815 GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
816 GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
817 GLAPI void APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
818 GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
819 GLAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
820 GLAPI void APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z);
821 GLAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
822 GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
824 /*****************************************************************************************/
825 /* OES extension functions */
826 /*****************************************************************************************/
828 #ifdef GL_OES_matrix_palette
830 GLAPI void APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex);
831 GLAPI void APIENTRY glLoadPaletteFromModelViewMatrixOES (void);
832 GLAPI void APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
833 GLAPI void APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
835 #endif /* OES_matrix_palette */
837 #ifdef GL_OES_point_size_array
839 GLAPI void APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer);
841 #endif /* OES_point_size_array */
843 #ifdef GL_OES_draw_texture
845 GLAPI void APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
846 GLAPI void APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
847 GLAPI void APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
848 GLAPI void APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
850 GLAPI void APIENTRY glDrawTexsvOES (GLshort *coords);
851 GLAPI void APIENTRY glDrawTexivOES (GLint *coords);
852 GLAPI void APIENTRY glDrawTexfvOES (GLfloat *coords);
853 GLAPI void APIENTRY glDrawTexxvOES (GLfixed *coords);
855 #endif /* GL_OES_draw_texture */