PageRenderTime 533ms CodeModel.GetById 202ms app.highlight 218ms RepoModel.GetById 104ms app.codeStats 0ms

/opengles/include/GLES/gl.h

http://ftk.googlecode.com/
C++ Header | 869 lines | 600 code | 104 blank | 165 comment | 2 complexity | 62b41679f51443a13d95a669e8ed6569 MD5 | raw file
  1#ifndef __gl_h_
  2#define __gl_h_
  3
  4#ifdef __cplusplus
  5extern "C" {
  6#endif
  7
  8/*
  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:
 16**
 17** http://oss.sgi.com/projects/FreeB
 18**
 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.
 24**
 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.
 30**
 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.
 40*/
 41
 42#if defined(__SYMBIAN32__)
 43
 44#	define EGL_PLATFORM_HEADER_INCLUDE <e32def.h>
 45
 46#elif (defined(WIN32) || defined(_WIN32_WCE)) /*&& !defined(APIENTRY) && !defined(__CYGWIN__)*/
 47
 48#	ifndef WIN32_LEAN_AND_MEAN
 49#		define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
 50#	endif
 51
 52#	define EGL_PLATFORM_HEADER_INCLUDE <windows.h>
 53
 54#elif (defined(LINUX) || defined(__linux__))
 55
 56# define GLAPI
 57#	define EGL_PLATFORM_HEADER_INCLUDE <stdlib.h>
 58
 59#elif defined(SYLIXOS_LIB)
 60
 61# define GLAPI
 62#   define EGL_PLATFORM_HEADER_INCLUDE <stdlib.h>
 63
 64#else
 65
 66#	error "Unsupported Operating System"
 67
 68#endif
 69
 70#include EGL_PLATFORM_HEADER_INCLUDE
 71
 72
 73#ifndef APIENTRY
 74#define APIENTRY
 75#endif
 76
 77#ifndef GLAPI
 78	#ifndef STATIC_GLES
 79		#ifdef OGLES_EXPORTS
 80			#define GLAPI __declspec(dllexport)
 81		#else
 82			#define GLAPI __declspec(dllimport)
 83		#endif
 84	#else
 85		#define GLAPI 
 86	#endif
 87#endif
 88
 89typedef unsigned int GLenum;
 90typedef unsigned char GLboolean;
 91typedef unsigned int GLbitfield;
 92typedef signed char GLbyte;
 93typedef short GLshort;
 94typedef int GLint;
 95typedef int GLsizei;
 96typedef unsigned char GLubyte;
 97typedef unsigned short GLushort;
 98typedef unsigned int GLuint;
 99typedef float GLfloat;
100typedef float GLclampf;
101typedef void GLvoid;
102typedef int GLintptr;
103typedef int GLsizeiptr;
104typedef int GLfixed;
105typedef int GLclampx;
106/* Internal convenience typedefs */
107typedef void (*_GLfuncptr)();
108
109/*************************************************************/
110
111/* OpenGL ES core versions */
112#define GL_OES_VERSION_1_0                1
113#define GL_OES_VERSION_1_1                1
114
115/* Extensions */
116#define GL_OES_compressed_paletted_texture 1
117/*#define GL_OES_draw_texture             1*/
118#define GL_OES_matrix_get                 1
119#define GL_OES_matrix_palette		      1
120#define GL_OES_point_size_array           1
121#define GL_OES_point_sprite               1
122#define GL_OES_read_format                1
123
124/* ClearBufferMask */
125#define GL_DEPTH_BUFFER_BIT               0x00000100
126#define GL_STENCIL_BUFFER_BIT             0x00000400
127#define GL_COLOR_BUFFER_BIT               0x00004000
128
129/* Boolean */
130#define GL_FALSE                          0
131#define GL_TRUE                           1
132
133/* BeginMode */
134#define GL_POINTS                         0x0000
135#define GL_LINES                          0x0001
136#define GL_LINE_LOOP                      0x0002
137#define GL_LINE_STRIP                     0x0003
138#define GL_TRIANGLES                      0x0004
139#define GL_TRIANGLE_STRIP                 0x0005
140#define GL_TRIANGLE_FAN                   0x0006
141
142/* AlphaFunction */
143#define GL_NEVER                          0x0200
144#define GL_LESS                           0x0201
145#define GL_EQUAL                          0x0202
146#define GL_LEQUAL                         0x0203
147#define GL_GREATER                        0x0204
148#define GL_NOTEQUAL                       0x0205
149#define GL_GEQUAL                         0x0206
150#define GL_ALWAYS                         0x0207
151
152/* BlendingFactorDest */
153#define GL_ZERO                           0
154#define GL_ONE                            1
155#define GL_SRC_COLOR                      0x0300
156#define GL_ONE_MINUS_SRC_COLOR            0x0301
157#define GL_SRC_ALPHA                      0x0302
158#define GL_ONE_MINUS_SRC_ALPHA            0x0303
159#define GL_DST_ALPHA                      0x0304
160#define GL_ONE_MINUS_DST_ALPHA            0x0305
161
162/* BlendingFactorSrc */
163/*      GL_ZERO */
164/*      GL_ONE */
165#define GL_DST_COLOR                      0x0306
166#define GL_ONE_MINUS_DST_COLOR            0x0307
167#define GL_SRC_ALPHA_SATURATE             0x0308
168/*      GL_SRC_ALPHA */
169/*      GL_ONE_MINUS_SRC_ALPHA */
170/*      GL_DST_ALPHA */
171/*      GL_ONE_MINUS_DST_ALPHA */
172
173/* ClipPlaneName */
174#define GL_CLIP_PLANE0                    0x3000
175#define GL_CLIP_PLANE1                    0x3001
176#define GL_CLIP_PLANE2                    0x3002
177#define GL_CLIP_PLANE3                    0x3003
178#define GL_CLIP_PLANE4                    0x3004
179#define GL_CLIP_PLANE5                    0x3005
180
181/* ColorMaterialFace */
182/*      GL_FRONT_AND_BACK */
183
184/* ColorMaterialParameter */
185/*      GL_AMBIENT_AND_DIFFUSE */
186
187/* ColorPointerType */
188/*      GL_UNSIGNED_BYTE */
189/*      GL_FLOAT */
190/*      GL_FIXED */
191
192/* CullFaceMode */
193#define GL_FRONT                          0x0404
194#define GL_BACK                           0x0405
195#define GL_FRONT_AND_BACK                 0x0408
196
197/* DepthFunction */
198/*      GL_NEVER */
199/*      GL_LESS */
200/*      GL_EQUAL */
201/*      GL_LEQUAL */
202/*      GL_GREATER */
203/*      GL_NOTEQUAL */
204/*      GL_GEQUAL */
205/*      GL_ALWAYS */
206
207/* EnableCap */
208#define GL_FOG                            0x0B60
209#define GL_LIGHTING                       0x0B50
210#define GL_TEXTURE_2D                     0x0DE1
211#define GL_CULL_FACE                      0x0B44
212#define GL_ALPHA_TEST                     0x0BC0
213#define GL_BLEND                          0x0BE2
214#define GL_COLOR_LOGIC_OP                 0x0BF2
215#define GL_DITHER                         0x0BD0
216#define GL_STENCIL_TEST                   0x0B90
217#define GL_DEPTH_TEST                     0x0B71
218/*      GL_LIGHT0 */
219/*      GL_LIGHT1 */
220/*      GL_LIGHT2 */
221/*      GL_LIGHT3 */
222/*      GL_LIGHT4 */
223/*      GL_LIGHT5 */
224/*      GL_LIGHT6 */
225/*      GL_LIGHT7 */
226#define GL_POINT_SMOOTH                   0x0B10
227#define GL_LINE_SMOOTH                    0x0B20
228#define GL_SCISSOR_TEST                   0x0C11
229#define GL_COLOR_MATERIAL                 0x0B57
230#define GL_NORMALIZE                      0x0BA1
231#define GL_RESCALE_NORMAL                 0x803A
232#define GL_POLYGON_OFFSET_FILL            0x8037
233#define GL_VERTEX_ARRAY                   0x8074
234#define GL_NORMAL_ARRAY                   0x8075
235#define GL_COLOR_ARRAY                    0x8076
236#define GL_TEXTURE_COORD_ARRAY            0x8078
237#define GL_MULTISAMPLE                    0x809D
238#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
239#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
240#define GL_SAMPLE_COVERAGE                0x80A0
241
242/* ErrorCode */
243#define GL_NO_ERROR                       0
244#define GL_INVALID_ENUM                   0x0500
245#define GL_INVALID_VALUE                  0x0501
246#define GL_INVALID_OPERATION              0x0502
247#define GL_STACK_OVERFLOW                 0x0503
248#define GL_STACK_UNDERFLOW                0x0504
249#define GL_OUT_OF_MEMORY                  0x0505
250
251/* FogMode */
252/*      GL_LINEAR */
253#define GL_EXP                            0x0800
254#define GL_EXP2                           0x0801
255
256/* FogParameter */
257#define GL_FOG_DENSITY                    0x0B62
258#define GL_FOG_START                      0x0B63
259#define GL_FOG_END                        0x0B64
260#define GL_FOG_MODE                       0x0B65
261#define GL_FOG_COLOR                      0x0B66
262
263/* FrontFaceDirection */
264#define GL_CW                             0x0900
265#define GL_CCW                            0x0901
266
267/* GetPName */
268#define GL_CURRENT_COLOR                  0x0B00
269#define GL_CURRENT_NORMAL                 0x0B02
270#define GL_CURRENT_TEXTURE_COORDS         0x0B03
271#define GL_POINT_SIZE                     0x0B11
272#define GL_POINT_SIZE_MIN                 0x8126
273#define GL_POINT_SIZE_MAX                 0x8127
274#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
275#define GL_POINT_DISTANCE_ATTENUATION     0x8129
276#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
277#define GL_LINE_WIDTH                     0x0B21
278#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
279#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
280#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
281#define GL_CULL_FACE_MODE                 0x0B45
282#define GL_FRONT_FACE                     0x0B46
283#define GL_SHADE_MODEL                    0x0B54
284#define GL_DEPTH_RANGE                    0x0B70
285#define GL_DEPTH_WRITEMASK                0x0B72
286#define GL_DEPTH_CLEAR_VALUE              0x0B73
287#define GL_DEPTH_FUNC                     0x0B74
288#define GL_STENCIL_CLEAR_VALUE            0x0B91
289#define GL_STENCIL_FUNC                   0x0B92
290#define GL_STENCIL_VALUE_MASK             0x0B93
291#define GL_STENCIL_FAIL                   0x0B94
292#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
293#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
294#define GL_STENCIL_REF                    0x0B97
295#define GL_STENCIL_WRITEMASK              0x0B98
296#define GL_MATRIX_MODE                    0x0BA0
297#define GL_VIEWPORT                       0x0BA2
298#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
299#define GL_PROJECTION_STACK_DEPTH         0x0BA4
300#define GL_TEXTURE_STACK_DEPTH            0x0BA5
301#define GL_MODELVIEW_MATRIX               0x0BA6
302#define GL_PROJECTION_MATRIX              0x0BA7
303#define GL_TEXTURE_MATRIX                 0x0BA8
304#define GL_ALPHA_TEST_FUNC                0x0BC1
305#define GL_ALPHA_TEST_REF                 0x0BC2
306#define GL_BLEND_DST                      0x0BE0
307#define GL_BLEND_SRC                      0x0BE1
308#define GL_LOGIC_OP_MODE                  0x0BF0
309#define GL_SCISSOR_BOX                    0x0C10
310#define GL_SCISSOR_TEST                   0x0C11
311#define GL_COLOR_CLEAR_VALUE              0x0C22
312#define GL_COLOR_WRITEMASK                0x0C23
313#define GL_UNPACK_ALIGNMENT               0x0CF5
314#define GL_PACK_ALIGNMENT                 0x0D05
315#define GL_MAX_LIGHTS                     0x0D31
316#define GL_MAX_CLIP_PLANES                0x0D32
317#define GL_MAX_TEXTURE_SIZE               0x0D33
318#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
319#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
320#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
321#define GL_MAX_VIEWPORT_DIMS              0x0D3A
322#define GL_MAX_ELEMENTS_VERTICES          0x80E8
323#define GL_MAX_ELEMENTS_INDICES           0x80E9
324#define GL_MAX_TEXTURE_UNITS              0x84E2
325#define GL_SUBPIXEL_BITS                  0x0D50
326#define GL_RED_BITS                       0x0D52
327#define GL_GREEN_BITS                     0x0D53
328#define GL_BLUE_BITS                      0x0D54
329#define GL_ALPHA_BITS                     0x0D55
330#define GL_DEPTH_BITS                     0x0D56
331#define GL_STENCIL_BITS                   0x0D57
332#define GL_POLYGON_OFFSET_UNITS           0x2A00
333#define GL_POLYGON_OFFSET_FILL            0x8037
334#define GL_POLYGON_OFFSET_FACTOR          0x8038
335#define GL_TEXTURE_BINDING_2D             0x8069
336#define GL_VERTEX_ARRAY_SIZE              0x807A
337#define GL_VERTEX_ARRAY_TYPE              0x807B
338#define GL_VERTEX_ARRAY_STRIDE            0x807C
339#define GL_NORMAL_ARRAY_TYPE              0x807E
340#define GL_NORMAL_ARRAY_STRIDE            0x807F
341#define GL_COLOR_ARRAY_SIZE               0x8081
342#define GL_COLOR_ARRAY_TYPE               0x8082
343#define GL_COLOR_ARRAY_STRIDE             0x8083
344#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
345#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
346#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
347#define GL_VERTEX_ARRAY_POINTER           0x808E
348#define GL_NORMAL_ARRAY_POINTER           0x808F
349#define GL_COLOR_ARRAY_POINTER            0x8090
350#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
351#define GL_SAMPLE_BUFFERS                 0x80A8
352#define GL_SAMPLES                        0x80A9
353#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
354#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
355
356/* GetTextureParameter */
357/*      GL_TEXTURE_MAG_FILTER */
358/*      GL_TEXTURE_MIN_FILTER */
359/*      GL_TEXTURE_WRAP_S */
360/*      GL_TEXTURE_WRAP_T */
361
362#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES   0x8B9A
363#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
364#define GL_NUM_COMPRESSED_TEXTURE_FORMATS       0x86A2
365#define GL_COMPRESSED_TEXTURE_FORMATS           0x86A3
366
367/* OES_matrix_get */
368#define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS   0x898D
369#define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS  0x898E
370#define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS     0x898F
371
372/* HintMode */
373#define GL_DONT_CARE                      0x1100
374#define GL_FASTEST                        0x1101
375#define GL_NICEST                         0x1102
376
377/* HintTarget */
378#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
379#define GL_POINT_SMOOTH_HINT              0x0C51
380#define GL_LINE_SMOOTH_HINT               0x0C52
381#define GL_POLYGON_SMOOTH_HINT            0x0C53
382#define GL_FOG_HINT                       0x0C54
383#define GL_GENERATE_MIPMAP_HINT           0x8192
384
385/* LightModelParameter */
386#define GL_LIGHT_MODEL_AMBIENT            0x0B53
387#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
388
389/* LightParameter */
390#define GL_AMBIENT                        0x1200
391#define GL_DIFFUSE                        0x1201
392#define GL_SPECULAR                       0x1202
393#define GL_POSITION                       0x1203
394#define GL_SPOT_DIRECTION                 0x1204
395#define GL_SPOT_EXPONENT                  0x1205
396#define GL_SPOT_CUTOFF                    0x1206
397#define GL_CONSTANT_ATTENUATION           0x1207
398#define GL_LINEAR_ATTENUATION             0x1208
399#define GL_QUADRATIC_ATTENUATION          0x1209
400
401/* DataType */
402#define GL_BYTE                           0x1400
403#define GL_UNSIGNED_BYTE                  0x1401
404#define GL_SHORT                          0x1402
405#define GL_UNSIGNED_SHORT                 0x1403
406#define GL_FLOAT                          0x1406
407#define GL_FIXED                          0x140C
408
409/* LogicOp */
410#define GL_CLEAR                          0x1500
411#define GL_AND                            0x1501
412#define GL_AND_REVERSE                    0x1502
413#define GL_COPY                           0x1503
414#define GL_AND_INVERTED                   0x1504
415#define GL_NOOP                           0x1505
416#define GL_XOR                            0x1506
417#define GL_OR                             0x1507
418#define GL_NOR                            0x1508
419#define GL_EQUIV                          0x1509
420#define GL_INVERT                         0x150A
421#define GL_OR_REVERSE                     0x150B
422#define GL_COPY_INVERTED                  0x150C
423#define GL_OR_INVERTED                    0x150D
424#define GL_NAND                           0x150E
425#define GL_SET                            0x150F
426
427/* MaterialFace */
428/*      GL_FRONT_AND_BACK */
429
430/* MaterialParameter */
431#define GL_EMISSION                       0x1600
432#define GL_SHININESS                      0x1601
433#define GL_AMBIENT_AND_DIFFUSE            0x1602
434/*      GL_AMBIENT */
435/*      GL_DIFFUSE */
436/*      GL_SPECULAR */
437
438/* MatrixMode */
439#define GL_MODELVIEW                      0x1700
440#define GL_PROJECTION                     0x1701
441#define GL_TEXTURE                        0x1702
442
443/* NormalPointerType */
444/*      GL_BYTE */
445/*      GL_SHORT */
446/*      GL_FLOAT */
447/*      GL_FIXED */
448
449/* PixelFormat */
450#define GL_ALPHA                          0x1906
451#define GL_RGB                            0x1907
452#define GL_RGBA                           0x1908
453#define GL_LUMINANCE                      0x1909
454#define GL_LUMINANCE_ALPHA                0x190A
455
456/* PixelStoreParameter */
457#define GL_UNPACK_ALIGNMENT               0x0CF5
458#define GL_PACK_ALIGNMENT                 0x0D05
459
460/* PixelType */
461/*      GL_UNSIGNED_BYTE */
462#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
463#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
464#define GL_UNSIGNED_SHORT_5_6_5           0x8363
465
466/* ShadingModel */
467#define GL_FLAT                           0x1D00
468#define GL_SMOOTH                         0x1D01
469
470/* StencilFunction */
471/*      GL_NEVER */
472/*      GL_LESS */
473/*      GL_EQUAL */
474/*      GL_LEQUAL */
475/*      GL_GREATER */
476/*      GL_NOTEQUAL */
477/*      GL_GEQUAL */
478/*      GL_ALWAYS */
479
480/* StencilOp */
481/*      GL_ZERO */
482#define GL_KEEP                           0x1E00
483#define GL_REPLACE                        0x1E01
484#define GL_INCR                           0x1E02
485#define GL_DECR                           0x1E03
486/*      GL_INVERT */
487
488/* StringName */
489#define GL_VENDOR                         0x1F00
490#define GL_RENDERER                       0x1F01
491#define GL_VERSION                        0x1F02
492#define GL_EXTENSIONS                     0x1F03
493
494/* TexCoordPointerType */
495/*      GL_SHORT */
496/*      GL_FLOAT */
497/*      GL_FIXED */
498/*      GL_BYTE */
499
500/* TextureEnvMode */
501#define GL_MODULATE                       0x2100
502#define GL_DECAL                          0x2101
503/*      GL_BLEND */
504#define GL_ADD                            0x0104
505/*      GL_REPLACE */
506
507/* TextureEnvParameter */
508#define GL_TEXTURE_ENV_MODE               0x2200
509#define GL_TEXTURE_ENV_COLOR              0x2201
510
511/* TextureEnvTarget */
512#define GL_TEXTURE_ENV                    0x2300
513
514/* TextureMagFilter */
515#define GL_NEAREST                        0x2600
516#define GL_LINEAR                         0x2601
517
518/* TextureMinFilter */
519/*      GL_NEAREST */
520/*      GL_LINEAR */
521#define GL_NEAREST_MIPMAP_NEAREST         0x2700
522#define GL_LINEAR_MIPMAP_NEAREST          0x2701
523#define GL_NEAREST_MIPMAP_LINEAR          0x2702
524#define GL_LINEAR_MIPMAP_LINEAR           0x2703
525
526/* TextureParameterName */
527#define GL_TEXTURE_MAG_FILTER             0x2800
528#define GL_TEXTURE_MIN_FILTER             0x2801
529#define GL_TEXTURE_WRAP_S                 0x2802
530#define GL_TEXTURE_WRAP_T                 0x2803
531#define GL_GENERATE_MIPMAP                0x8191
532
533/* TextureTarget */
534/*      GL_TEXTURE_2D */
535
536/* TextureUnit */
537#define GL_TEXTURE0                       0x84C0
538#define GL_TEXTURE1                       0x84C1
539#define GL_TEXTURE2                       0x84C2
540#define GL_TEXTURE3                       0x84C3
541#define GL_TEXTURE4                       0x84C4
542#define GL_TEXTURE5                       0x84C5
543#define GL_TEXTURE6                       0x84C6
544#define GL_TEXTURE7                       0x84C7
545#define GL_TEXTURE8                       0x84C8
546#define GL_TEXTURE9                       0x84C9
547#define GL_TEXTURE10                      0x84CA
548#define GL_TEXTURE11                      0x84CB
549#define GL_TEXTURE12                      0x84CC
550#define GL_TEXTURE13                      0x84CD
551#define GL_TEXTURE14                      0x84CE
552#define GL_TEXTURE15                      0x84CF
553#define GL_TEXTURE16                      0x84D0
554#define GL_TEXTURE17                      0x84D1
555#define GL_TEXTURE18                      0x84D2
556#define GL_TEXTURE19                      0x84D3
557#define GL_TEXTURE20                      0x84D4
558#define GL_TEXTURE21                      0x84D5
559#define GL_TEXTURE22                      0x84D6
560#define GL_TEXTURE23                      0x84D7
561#define GL_TEXTURE24                      0x84D8
562#define GL_TEXTURE25                      0x84D9
563#define GL_TEXTURE26                      0x84DA
564#define GL_TEXTURE27                      0x84DB
565#define GL_TEXTURE28                      0x84DC
566#define GL_TEXTURE29                      0x84DD
567#define GL_TEXTURE30                      0x84DE
568#define GL_TEXTURE31                      0x84DF
569#define GL_ACTIVE_TEXTURE                 0x84E0
570#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
571
572/* TextureWrapMode */
573#define GL_REPEAT                         0x2901
574#define GL_CLAMP_TO_EDGE                  0x812F
575
576/* PixelInternalFormat */
577#define GL_PALETTE4_RGB8_OES              0x8B90
578#define GL_PALETTE4_RGBA8_OES             0x8B91
579#define GL_PALETTE4_R5_G6_B5_OES          0x8B92
580#define GL_PALETTE4_RGBA4_OES             0x8B93
581#define GL_PALETTE4_RGB5_A1_OES           0x8B94
582#define GL_PALETTE8_RGB8_OES              0x8B95
583#define GL_PALETTE8_RGBA8_OES             0x8B96
584#define GL_PALETTE8_R5_G6_B5_OES          0x8B97
585#define GL_PALETTE8_RGBA4_OES             0x8B98
586#define GL_PALETTE8_RGB5_A1_OES           0x8B99
587
588/* VertexPointerType */
589/*      GL_SHORT */
590/*      GL_FLOAT */
591/*      GL_FIXED */
592/*      GL_BYTE */
593
594/* LightName */
595#define GL_LIGHT0                         0x4000
596#define GL_LIGHT1                         0x4001
597#define GL_LIGHT2                         0x4002
598#define GL_LIGHT3                         0x4003
599#define GL_LIGHT4                         0x4004
600#define GL_LIGHT5                         0x4005
601#define GL_LIGHT6                         0x4006
602#define GL_LIGHT7                         0x4007
603
604/* Buffer Objects */
605#define GL_ARRAY_BUFFER                   0x8892
606#define GL_ELEMENT_ARRAY_BUFFER           0x8893
607
608#define GL_ARRAY_BUFFER_BINDING           0x8894
609#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
610#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
611#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
612#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
613#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
614
615#define GL_STATIC_DRAW                    0x88E4
616#define GL_DYNAMIC_DRAW                   0x88E8
617
618#define GL_WRITE_ONLY                     0x88B9
619
620#define GL_BUFFER_SIZE                    0x8764
621#define GL_BUFFER_USAGE                   0x8765
622#define GL_BUFFER_ACCESS                  0x88BB
623
624
625/* Texture combine + dot3 */
626#define GL_SUBTRACT                       0x84E7
627#define GL_COMBINE                        0x8570
628#define GL_COMBINE_RGB                    0x8571
629#define GL_COMBINE_ALPHA                  0x8572
630#define GL_RGB_SCALE                      0x8573
631#define GL_ADD_SIGNED                     0x8574
632#define GL_INTERPOLATE                    0x8575
633#define GL_CONSTANT                       0x8576
634#define GL_PRIMARY_COLOR                  0x8577
635#define GL_PREVIOUS                       0x8578
636#define GL_OPERAND0_RGB                   0x8590
637#define GL_OPERAND1_RGB                   0x8591
638#define GL_OPERAND2_RGB                   0x8592
639#define GL_OPERAND0_ALPHA                 0x8598
640#define GL_OPERAND1_ALPHA                 0x8599
641#define GL_OPERAND2_ALPHA                 0x859A
642
643#define GL_ALPHA_SCALE                    0x0D1C
644
645#define GL_SRC0_RGB                       0x8580
646#define GL_SRC1_RGB                       0x8581
647#define GL_SRC2_RGB                       0x8582
648#define GL_SRC0_ALPHA                     0x8588
649#define GL_SRC1_ALPHA                     0x8589
650#define GL_SRC2_ALPHA                     0x858A
651
652#define GL_DOT3_RGB                       0x86AE
653#define GL_DOT3_RGBA                      0x86AF
654
655/*****************************************************************************************/
656/*                                 OES extension functions                               */
657/*****************************************************************************************/
658/* OES_point_sprite */
659#define GL_POINT_SPRITE_OES               0x8861
660#define GL_COORD_REPLACE_OES              0x8862
661
662/* OES_point_size_array */
663#define GL_POINT_SIZE_ARRAY_OES           0x8B9C
664#define GL_POINT_SIZE_ARRAY_TYPE_OES      0x898A
665#define GL_POINT_SIZE_ARRAY_STRIDE_OES    0x898B
666#define GL_POINT_SIZE_ARRAY_POINTER_OES   0x898C
667#define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES 0x8B9F
668
669/* OES_matrix_palette */
670#define GL_MAX_VERTEX_UNITS_OES           0x86A4
671#define GL_MAX_PALETTE_MATRICES_OES       0x8842
672#define GL_MATRIX_PALETTE_OES             0x8840
673#define GL_MATRIX_INDEX_ARRAY_OES         0x8844
674#define GL_WEIGHT_ARRAY_OES               0x86AD
675
676#define GL_MATRIX_INDEX_ARRAY_SIZE_OES    0x8846
677#define GL_MATRIX_INDEX_ARRAY_TYPE_OES    0x8847
678#define GL_MATRIX_INDEX_ARRAY_STRIDE_OES  0x8848
679#define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
680#define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
681
682#define GL_WEIGHT_ARRAY_SIZE_OES          0x86AB
683#define GL_WEIGHT_ARRAY_TYPE_OES          0x86A9
684#define GL_WEIGHT_ARRAY_STRIDE_OES        0x86AA
685#define GL_WEIGHT_ARRAY_POINTER_OES       0x86AC
686#define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
687
688/* OES_draw_texture */
689#define GL_TEXTURE_CROP_RECT_OES          0x8B9D
690
691/*************************************************************/
692
693GLAPI void APIENTRY glActiveTexture (GLenum texture);
694GLAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
695GLAPI void APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
696GLAPI void APIENTRY glBindBuffer(GLenum target, GLuint buffer);
697GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
698GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
699GLAPI void APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
700GLAPI void APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
701GLAPI void APIENTRY glClear (GLbitfield mask);
702GLAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
703GLAPI void APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
704GLAPI void APIENTRY glClearDepthf (GLclampf depth);
705GLAPI void APIENTRY glClearDepthx (GLclampx depth);
706GLAPI void APIENTRY glClearStencil (GLint s);
707GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
708GLAPI void APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation);
709GLAPI void APIENTRY glClipPlanef(GLenum plane, const GLfloat *equation);
710GLAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
711GLAPI void APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
712GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
713GLAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
714GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
715GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
716GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
717GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
718GLAPI void APIENTRY glCullFace (GLenum mode);
719GLAPI void APIENTRY glDeleteBuffers(GLsizei n, const GLuint *buffers);
720GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
721GLAPI void APIENTRY glDepthFunc (GLenum func);
722GLAPI void APIENTRY glDepthMask (GLboolean flag);
723GLAPI void APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
724GLAPI void APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar);
725GLAPI void APIENTRY glDisable (GLenum cap);
726GLAPI void APIENTRY glDisableClientState (GLenum array);
727GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
728GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
729GLAPI void APIENTRY glEnable (GLenum cap);
730GLAPI void APIENTRY glEnableClientState (GLenum array);
731GLAPI void APIENTRY glFinish (void);
732GLAPI void APIENTRY glFlush (void);
733GLAPI void APIENTRY glFogf (GLenum pname, GLfloat param);
734GLAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);
735GLAPI void APIENTRY glFogx (GLenum pname, GLfixed param);
736GLAPI void APIENTRY glFogxv (GLenum pname, const GLfixed *params);
737GLAPI void APIENTRY glFrontFace (GLenum mode);
738GLAPI void APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
739GLAPI void APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
740GLAPI void APIENTRY glGetBooleanv(GLenum pname, GLboolean *params);
741GLAPI void APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params);
742GLAPI void APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
743GLAPI void APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
744GLAPI void APIENTRY glGenBuffers(GLsizei n, GLuint *buffers);
745GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
746GLAPI GLenum APIENTRY glGetError (void);
747GLAPI void APIENTRY glGetFixedv(GLenum pname, GLfixed *params);
748GLAPI void APIENTRY glGetFloatv(GLenum pname, GLfloat *params);
749GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
750GLAPI void APIENTRY glGetLightfv(GLenum light, GLenum pname, GLfloat *params);
751GLAPI void APIENTRY glGetLightxv(GLenum light, GLenum pname, GLfixed *params);
752GLAPI void APIENTRY glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
753GLAPI void APIENTRY glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params);
754GLAPI void APIENTRY glGetPointerv(GLenum pname, void **params);
755GLAPI const GLubyte * APIENTRY glGetString (GLenum name);
756GLAPI void APIENTRY glGetTexEnviv(GLenum env, GLenum pname, GLint *params);
757GLAPI void APIENTRY glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params);
758GLAPI void APIENTRY glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params);
759GLAPI void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
760GLAPI void APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
761GLAPI void APIENTRY glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params);
762GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
763GLAPI GLboolean APIENTRY glIsBuffer(GLuint buffer);
764GLAPI GLboolean APIENTRY glIsEnabled(GLenum cap);
765GLAPI GLboolean APIENTRY glIsTexture(GLuint texture);
766GLAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);
767GLAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
768GLAPI void APIENTRY glLightModelx (GLenum pname, GLfixed param);
769GLAPI void APIENTRY glLightModelxv (GLenum pname, const GLfixed *params);
770GLAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
771GLAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
772GLAPI void APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
773GLAPI void APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params);
774GLAPI void APIENTRY glLineWidth (GLfloat width);
775GLAPI void APIENTRY glLineWidthx (GLfixed width);
776GLAPI void APIENTRY glLoadIdentity (void);
777GLAPI void APIENTRY glLoadMatrixf (const GLfloat *m);
778GLAPI void APIENTRY glLoadMatrixx (const GLfixed *m);
779GLAPI void APIENTRY glLogicOp (GLenum opcode);
780GLAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
781GLAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
782GLAPI void APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
783GLAPI void APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params);
784GLAPI void APIENTRY glMatrixMode (GLenum mode);
785GLAPI void APIENTRY glMultMatrixf (const GLfloat *m);
786GLAPI void APIENTRY glMultMatrixx (const GLfixed *m);
787GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
788GLAPI void APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
789GLAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
790GLAPI void APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz);
791GLAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
792GLAPI void APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
793GLAPI void APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
794GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
795GLAPI void APIENTRY glPointParameterf(GLenum pname, GLfloat param);
796GLAPI void APIENTRY glPointParameterfv(GLenum pname, const GLfloat *params);
797GLAPI void APIENTRY glPointParameterx(GLenum pname, GLfixed param);
798GLAPI void APIENTRY glPointParameterxv(GLenum pname, const GLfixed *params);
799GLAPI void APIENTRY glPointSize (GLfloat size);
800GLAPI void APIENTRY glPointSizex (GLfixed size);
801GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
802GLAPI void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
803GLAPI void APIENTRY glPopMatrix (void);
804GLAPI void APIENTRY glPushMatrix (void);
805GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
806GLAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
807GLAPI void APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
808GLAPI void APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
809GLAPI void APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
810GLAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
811GLAPI void APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z);
812GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
813GLAPI void APIENTRY glShadeModel (GLenum mode);
814GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
815GLAPI void APIENTRY glStencilMask (GLuint mask);
816GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
817GLAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
818GLAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
819GLAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
820GLAPI void APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
821GLAPI void APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params);
822GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
823GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
824GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
825GLAPI void APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
826GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
827GLAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
828GLAPI void APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z);
829GLAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
830GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
831
832/*****************************************************************************************/
833/*                                 OES extension functions                               */
834/*****************************************************************************************/
835
836#ifdef GL_OES_matrix_palette
837
838GLAPI void APIENTRY glCurrentPaletteMatrixOES (GLuint matrixpaletteindex);
839GLAPI void APIENTRY glLoadPaletteFromModelViewMatrixOES (void);
840GLAPI void APIENTRY glMatrixIndexPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
841GLAPI void APIENTRY glWeightPointerOES (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
842
843#endif /* OES_matrix_palette */
844
845#ifdef GL_OES_point_size_array
846
847GLAPI void APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer);
848
849#endif /* OES_point_size_array */
850
851#ifdef GL_OES_draw_texture
852
853GLAPI void APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
854GLAPI void APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
855GLAPI void APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
856GLAPI void APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
857
858GLAPI void APIENTRY glDrawTexsvOES (GLshort *coords);
859GLAPI void APIENTRY glDrawTexivOES (GLint *coords);
860GLAPI void APIENTRY glDrawTexfvOES (GLfloat *coords);
861GLAPI void APIENTRY glDrawTexxvOES (GLfixed *coords);
862
863#endif /* GL_OES_draw_texture */
864
865#ifdef __cplusplus
866}
867#endif
868
869#endif /* __gl_h_ */