gl.h revision 848b8605
1848b8605Smrg#ifndef __gl_h_
2848b8605Smrg#define __gl_h_
3848b8605Smrg
4848b8605Smrg/* $Revision: 1.1.1.1 $ on $Date: 2019/03/08 10:19:24 $ */
5848b8605Smrg
6848b8605Smrg#include <GLES/glplatform.h>
7848b8605Smrg
8848b8605Smrg#ifdef __cplusplus
9848b8605Smrgextern "C" {
10848b8605Smrg#endif
11848b8605Smrg
12848b8605Smrg/*
13848b8605Smrg * This document is licensed under the SGI Free Software B License Version
14848b8605Smrg * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
15848b8605Smrg */
16848b8605Smrg
17848b8605Smrgtypedef void             GLvoid;
18848b8605Smrgtypedef char             GLchar;
19848b8605Smrgtypedef unsigned int     GLenum;
20848b8605Smrgtypedef unsigned char    GLboolean;
21848b8605Smrgtypedef unsigned int     GLbitfield;
22848b8605Smrgtypedef khronos_int8_t   GLbyte;
23848b8605Smrgtypedef short            GLshort;
24848b8605Smrgtypedef int              GLint;
25848b8605Smrgtypedef int              GLsizei;
26848b8605Smrgtypedef khronos_uint8_t  GLubyte;
27848b8605Smrgtypedef unsigned short   GLushort;
28848b8605Smrgtypedef unsigned int     GLuint;
29848b8605Smrgtypedef khronos_float_t  GLfloat;
30848b8605Smrgtypedef khronos_float_t  GLclampf;
31848b8605Smrgtypedef khronos_int32_t  GLfixed;
32848b8605Smrgtypedef khronos_int32_t  GLclampx;
33848b8605Smrg
34848b8605Smrgtypedef khronos_intptr_t GLintptr;
35848b8605Smrgtypedef khronos_ssize_t  GLsizeiptr;
36848b8605Smrg
37848b8605Smrg
38848b8605Smrg/*************************************************************/
39848b8605Smrg
40848b8605Smrg/* OpenGL ES core versions */
41848b8605Smrg#define GL_VERSION_ES_CM_1_0          1
42848b8605Smrg#define GL_VERSION_ES_CL_1_0          1
43848b8605Smrg#define GL_VERSION_ES_CM_1_1          1
44848b8605Smrg#define GL_VERSION_ES_CL_1_1          1
45848b8605Smrg
46848b8605Smrg/* ClearBufferMask */
47848b8605Smrg#define GL_DEPTH_BUFFER_BIT               0x00000100
48848b8605Smrg#define GL_STENCIL_BUFFER_BIT             0x00000400
49848b8605Smrg#define GL_COLOR_BUFFER_BIT               0x00004000
50848b8605Smrg
51848b8605Smrg/* Boolean */
52848b8605Smrg#define GL_FALSE                          0
53848b8605Smrg#define GL_TRUE                           1
54848b8605Smrg
55848b8605Smrg/* BeginMode */
56848b8605Smrg#define GL_POINTS                         0x0000
57848b8605Smrg#define GL_LINES                          0x0001
58848b8605Smrg#define GL_LINE_LOOP                      0x0002
59848b8605Smrg#define GL_LINE_STRIP                     0x0003
60848b8605Smrg#define GL_TRIANGLES                      0x0004
61848b8605Smrg#define GL_TRIANGLE_STRIP                 0x0005
62848b8605Smrg#define GL_TRIANGLE_FAN                   0x0006
63848b8605Smrg
64848b8605Smrg/* AlphaFunction */
65848b8605Smrg#define GL_NEVER                          0x0200
66848b8605Smrg#define GL_LESS                           0x0201
67848b8605Smrg#define GL_EQUAL                          0x0202
68848b8605Smrg#define GL_LEQUAL                         0x0203
69848b8605Smrg#define GL_GREATER                        0x0204
70848b8605Smrg#define GL_NOTEQUAL                       0x0205
71848b8605Smrg#define GL_GEQUAL                         0x0206
72848b8605Smrg#define GL_ALWAYS                         0x0207
73848b8605Smrg
74848b8605Smrg/* BlendingFactorDest */
75848b8605Smrg#define GL_ZERO                           0
76848b8605Smrg#define GL_ONE                            1
77848b8605Smrg#define GL_SRC_COLOR                      0x0300
78848b8605Smrg#define GL_ONE_MINUS_SRC_COLOR            0x0301
79848b8605Smrg#define GL_SRC_ALPHA                      0x0302
80848b8605Smrg#define GL_ONE_MINUS_SRC_ALPHA            0x0303
81848b8605Smrg#define GL_DST_ALPHA                      0x0304
82848b8605Smrg#define GL_ONE_MINUS_DST_ALPHA            0x0305
83848b8605Smrg
84848b8605Smrg/* BlendingFactorSrc */
85848b8605Smrg/*      GL_ZERO */
86848b8605Smrg/*      GL_ONE */
87848b8605Smrg#define GL_DST_COLOR                      0x0306
88848b8605Smrg#define GL_ONE_MINUS_DST_COLOR            0x0307
89848b8605Smrg#define GL_SRC_ALPHA_SATURATE             0x0308
90848b8605Smrg/*      GL_SRC_ALPHA */
91848b8605Smrg/*      GL_ONE_MINUS_SRC_ALPHA */
92848b8605Smrg/*      GL_DST_ALPHA */
93848b8605Smrg/*      GL_ONE_MINUS_DST_ALPHA */
94848b8605Smrg
95848b8605Smrg/* ClipPlaneName */
96848b8605Smrg#define GL_CLIP_PLANE0                    0x3000
97848b8605Smrg#define GL_CLIP_PLANE1                    0x3001
98848b8605Smrg#define GL_CLIP_PLANE2                    0x3002
99848b8605Smrg#define GL_CLIP_PLANE3                    0x3003
100848b8605Smrg#define GL_CLIP_PLANE4                    0x3004
101848b8605Smrg#define GL_CLIP_PLANE5                    0x3005
102848b8605Smrg
103848b8605Smrg/* ColorMaterialFace */
104848b8605Smrg/*      GL_FRONT_AND_BACK */
105848b8605Smrg
106848b8605Smrg/* ColorMaterialParameter */
107848b8605Smrg/*      GL_AMBIENT_AND_DIFFUSE */
108848b8605Smrg
109848b8605Smrg/* ColorPointerType */
110848b8605Smrg/*      GL_UNSIGNED_BYTE */
111848b8605Smrg/*      GL_FLOAT */
112848b8605Smrg/*      GL_FIXED */
113848b8605Smrg
114848b8605Smrg/* CullFaceMode */
115848b8605Smrg#define GL_FRONT                          0x0404
116848b8605Smrg#define GL_BACK                           0x0405
117848b8605Smrg#define GL_FRONT_AND_BACK                 0x0408
118848b8605Smrg
119848b8605Smrg/* DepthFunction */
120848b8605Smrg/*      GL_NEVER */
121848b8605Smrg/*      GL_LESS */
122848b8605Smrg/*      GL_EQUAL */
123848b8605Smrg/*      GL_LEQUAL */
124848b8605Smrg/*      GL_GREATER */
125848b8605Smrg/*      GL_NOTEQUAL */
126848b8605Smrg/*      GL_GEQUAL */
127848b8605Smrg/*      GL_ALWAYS */
128848b8605Smrg
129848b8605Smrg/* EnableCap */
130848b8605Smrg#define GL_FOG                            0x0B60
131848b8605Smrg#define GL_LIGHTING                       0x0B50
132848b8605Smrg#define GL_TEXTURE_2D                     0x0DE1
133848b8605Smrg#define GL_CULL_FACE                      0x0B44
134848b8605Smrg#define GL_ALPHA_TEST                     0x0BC0
135848b8605Smrg#define GL_BLEND                          0x0BE2
136848b8605Smrg#define GL_COLOR_LOGIC_OP                 0x0BF2
137848b8605Smrg#define GL_DITHER                         0x0BD0
138848b8605Smrg#define GL_STENCIL_TEST                   0x0B90
139848b8605Smrg#define GL_DEPTH_TEST                     0x0B71
140848b8605Smrg/*      GL_LIGHT0 */
141848b8605Smrg/*      GL_LIGHT1 */
142848b8605Smrg/*      GL_LIGHT2 */
143848b8605Smrg/*      GL_LIGHT3 */
144848b8605Smrg/*      GL_LIGHT4 */
145848b8605Smrg/*      GL_LIGHT5 */
146848b8605Smrg/*      GL_LIGHT6 */
147848b8605Smrg/*      GL_LIGHT7 */
148848b8605Smrg#define GL_POINT_SMOOTH                   0x0B10
149848b8605Smrg#define GL_LINE_SMOOTH                    0x0B20
150848b8605Smrg#define GL_SCISSOR_TEST                   0x0C11
151848b8605Smrg#define GL_COLOR_MATERIAL                 0x0B57
152848b8605Smrg#define GL_NORMALIZE                      0x0BA1
153848b8605Smrg#define GL_RESCALE_NORMAL                 0x803A
154848b8605Smrg#define GL_POLYGON_OFFSET_FILL            0x8037
155848b8605Smrg#define GL_VERTEX_ARRAY                   0x8074
156848b8605Smrg#define GL_NORMAL_ARRAY                   0x8075
157848b8605Smrg#define GL_COLOR_ARRAY                    0x8076
158848b8605Smrg#define GL_TEXTURE_COORD_ARRAY            0x8078
159848b8605Smrg#define GL_MULTISAMPLE                    0x809D
160848b8605Smrg#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
161848b8605Smrg#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
162848b8605Smrg#define GL_SAMPLE_COVERAGE                0x80A0
163848b8605Smrg
164848b8605Smrg/* ErrorCode */
165848b8605Smrg#define GL_NO_ERROR                       0
166848b8605Smrg#define GL_INVALID_ENUM                   0x0500
167848b8605Smrg#define GL_INVALID_VALUE                  0x0501
168848b8605Smrg#define GL_INVALID_OPERATION              0x0502
169848b8605Smrg#define GL_STACK_OVERFLOW                 0x0503
170848b8605Smrg#define GL_STACK_UNDERFLOW                0x0504
171848b8605Smrg#define GL_OUT_OF_MEMORY                  0x0505
172848b8605Smrg
173848b8605Smrg/* FogMode */
174848b8605Smrg/*      GL_LINEAR */
175848b8605Smrg#define GL_EXP                            0x0800
176848b8605Smrg#define GL_EXP2                           0x0801
177848b8605Smrg
178848b8605Smrg/* FogParameter */
179848b8605Smrg#define GL_FOG_DENSITY                    0x0B62
180848b8605Smrg#define GL_FOG_START                      0x0B63
181848b8605Smrg#define GL_FOG_END                        0x0B64
182848b8605Smrg#define GL_FOG_MODE                       0x0B65
183848b8605Smrg#define GL_FOG_COLOR                      0x0B66
184848b8605Smrg
185848b8605Smrg/* FrontFaceDirection */
186848b8605Smrg#define GL_CW                             0x0900
187848b8605Smrg#define GL_CCW                            0x0901
188848b8605Smrg
189848b8605Smrg/* GetPName */
190848b8605Smrg#define GL_CURRENT_COLOR                  0x0B00
191848b8605Smrg#define GL_CURRENT_NORMAL                 0x0B02
192848b8605Smrg#define GL_CURRENT_TEXTURE_COORDS         0x0B03
193848b8605Smrg#define GL_POINT_SIZE                     0x0B11
194848b8605Smrg#define GL_POINT_SIZE_MIN                 0x8126
195848b8605Smrg#define GL_POINT_SIZE_MAX                 0x8127
196848b8605Smrg#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
197848b8605Smrg#define GL_POINT_DISTANCE_ATTENUATION     0x8129
198848b8605Smrg#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
199848b8605Smrg#define GL_LINE_WIDTH                     0x0B21
200848b8605Smrg#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
201848b8605Smrg#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
202848b8605Smrg#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
203848b8605Smrg#define GL_CULL_FACE_MODE                 0x0B45
204848b8605Smrg#define GL_FRONT_FACE                     0x0B46
205848b8605Smrg#define GL_SHADE_MODEL                    0x0B54
206848b8605Smrg#define GL_DEPTH_RANGE                    0x0B70
207848b8605Smrg#define GL_DEPTH_WRITEMASK                0x0B72
208848b8605Smrg#define GL_DEPTH_CLEAR_VALUE              0x0B73
209848b8605Smrg#define GL_DEPTH_FUNC                     0x0B74
210848b8605Smrg#define GL_STENCIL_CLEAR_VALUE            0x0B91
211848b8605Smrg#define GL_STENCIL_FUNC                   0x0B92
212848b8605Smrg#define GL_STENCIL_VALUE_MASK             0x0B93
213848b8605Smrg#define GL_STENCIL_FAIL                   0x0B94
214848b8605Smrg#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
215848b8605Smrg#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
216848b8605Smrg#define GL_STENCIL_REF                    0x0B97
217848b8605Smrg#define GL_STENCIL_WRITEMASK              0x0B98
218848b8605Smrg#define GL_MATRIX_MODE                    0x0BA0
219848b8605Smrg#define GL_VIEWPORT                       0x0BA2
220848b8605Smrg#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
221848b8605Smrg#define GL_PROJECTION_STACK_DEPTH         0x0BA4
222848b8605Smrg#define GL_TEXTURE_STACK_DEPTH            0x0BA5
223848b8605Smrg#define GL_MODELVIEW_MATRIX               0x0BA6
224848b8605Smrg#define GL_PROJECTION_MATRIX              0x0BA7
225848b8605Smrg#define GL_TEXTURE_MATRIX                 0x0BA8
226848b8605Smrg#define GL_ALPHA_TEST_FUNC                0x0BC1
227848b8605Smrg#define GL_ALPHA_TEST_REF                 0x0BC2
228848b8605Smrg#define GL_BLEND_DST                      0x0BE0
229848b8605Smrg#define GL_BLEND_SRC                      0x0BE1
230848b8605Smrg#define GL_LOGIC_OP_MODE                  0x0BF0
231848b8605Smrg#define GL_SCISSOR_BOX                    0x0C10
232848b8605Smrg#define GL_SCISSOR_TEST                   0x0C11
233848b8605Smrg#define GL_COLOR_CLEAR_VALUE              0x0C22
234848b8605Smrg#define GL_COLOR_WRITEMASK                0x0C23
235848b8605Smrg#define GL_UNPACK_ALIGNMENT               0x0CF5
236848b8605Smrg#define GL_PACK_ALIGNMENT                 0x0D05
237848b8605Smrg#define GL_MAX_LIGHTS                     0x0D31
238848b8605Smrg#define GL_MAX_CLIP_PLANES                0x0D32
239848b8605Smrg#define GL_MAX_TEXTURE_SIZE               0x0D33
240848b8605Smrg#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
241848b8605Smrg#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
242848b8605Smrg#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
243848b8605Smrg#define GL_MAX_VIEWPORT_DIMS              0x0D3A
244848b8605Smrg#define GL_MAX_TEXTURE_UNITS              0x84E2
245848b8605Smrg#define GL_SUBPIXEL_BITS                  0x0D50
246848b8605Smrg#define GL_RED_BITS                       0x0D52
247848b8605Smrg#define GL_GREEN_BITS                     0x0D53
248848b8605Smrg#define GL_BLUE_BITS                      0x0D54
249848b8605Smrg#define GL_ALPHA_BITS                     0x0D55
250848b8605Smrg#define GL_DEPTH_BITS                     0x0D56
251848b8605Smrg#define GL_STENCIL_BITS                   0x0D57
252848b8605Smrg#define GL_POLYGON_OFFSET_UNITS           0x2A00
253848b8605Smrg#define GL_POLYGON_OFFSET_FILL            0x8037
254848b8605Smrg#define GL_POLYGON_OFFSET_FACTOR          0x8038
255848b8605Smrg#define GL_TEXTURE_BINDING_2D             0x8069
256848b8605Smrg#define GL_VERTEX_ARRAY_SIZE              0x807A
257848b8605Smrg#define GL_VERTEX_ARRAY_TYPE              0x807B
258848b8605Smrg#define GL_VERTEX_ARRAY_STRIDE            0x807C
259848b8605Smrg#define GL_NORMAL_ARRAY_TYPE              0x807E
260848b8605Smrg#define GL_NORMAL_ARRAY_STRIDE            0x807F
261848b8605Smrg#define GL_COLOR_ARRAY_SIZE               0x8081
262848b8605Smrg#define GL_COLOR_ARRAY_TYPE               0x8082
263848b8605Smrg#define GL_COLOR_ARRAY_STRIDE             0x8083
264848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
265848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
266848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
267848b8605Smrg#define GL_VERTEX_ARRAY_POINTER           0x808E
268848b8605Smrg#define GL_NORMAL_ARRAY_POINTER           0x808F
269848b8605Smrg#define GL_COLOR_ARRAY_POINTER            0x8090
270848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
271848b8605Smrg#define GL_SAMPLE_BUFFERS                 0x80A8
272848b8605Smrg#define GL_SAMPLES                        0x80A9
273848b8605Smrg#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
274848b8605Smrg#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
275848b8605Smrg
276848b8605Smrg/* GetTextureParameter */
277848b8605Smrg/*      GL_TEXTURE_MAG_FILTER */
278848b8605Smrg/*      GL_TEXTURE_MIN_FILTER */
279848b8605Smrg/*      GL_TEXTURE_WRAP_S */
280848b8605Smrg/*      GL_TEXTURE_WRAP_T */
281848b8605Smrg
282848b8605Smrg#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
283848b8605Smrg#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
284848b8605Smrg
285848b8605Smrg/* HintMode */
286848b8605Smrg#define GL_DONT_CARE                      0x1100
287848b8605Smrg#define GL_FASTEST                        0x1101
288848b8605Smrg#define GL_NICEST                         0x1102
289848b8605Smrg
290848b8605Smrg/* HintTarget */
291848b8605Smrg#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
292848b8605Smrg#define GL_POINT_SMOOTH_HINT              0x0C51
293848b8605Smrg#define GL_LINE_SMOOTH_HINT               0x0C52
294848b8605Smrg#define GL_FOG_HINT                       0x0C54
295848b8605Smrg#define GL_GENERATE_MIPMAP_HINT           0x8192
296848b8605Smrg
297848b8605Smrg/* LightModelParameter */
298848b8605Smrg#define GL_LIGHT_MODEL_AMBIENT            0x0B53
299848b8605Smrg#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
300848b8605Smrg
301848b8605Smrg/* LightParameter */
302848b8605Smrg#define GL_AMBIENT                        0x1200
303848b8605Smrg#define GL_DIFFUSE                        0x1201
304848b8605Smrg#define GL_SPECULAR                       0x1202
305848b8605Smrg#define GL_POSITION                       0x1203
306848b8605Smrg#define GL_SPOT_DIRECTION                 0x1204
307848b8605Smrg#define GL_SPOT_EXPONENT                  0x1205
308848b8605Smrg#define GL_SPOT_CUTOFF                    0x1206
309848b8605Smrg#define GL_CONSTANT_ATTENUATION           0x1207
310848b8605Smrg#define GL_LINEAR_ATTENUATION             0x1208
311848b8605Smrg#define GL_QUADRATIC_ATTENUATION          0x1209
312848b8605Smrg
313848b8605Smrg/* DataType */
314848b8605Smrg#define GL_BYTE                           0x1400
315848b8605Smrg#define GL_UNSIGNED_BYTE                  0x1401
316848b8605Smrg#define GL_SHORT                          0x1402
317848b8605Smrg#define GL_UNSIGNED_SHORT                 0x1403
318848b8605Smrg#define GL_FLOAT                          0x1406
319848b8605Smrg#define GL_FIXED                          0x140C
320848b8605Smrg
321848b8605Smrg/* LogicOp */
322848b8605Smrg#define GL_CLEAR                          0x1500
323848b8605Smrg#define GL_AND                            0x1501
324848b8605Smrg#define GL_AND_REVERSE                    0x1502
325848b8605Smrg#define GL_COPY                           0x1503
326848b8605Smrg#define GL_AND_INVERTED                   0x1504
327848b8605Smrg#define GL_NOOP                           0x1505
328848b8605Smrg#define GL_XOR                            0x1506
329848b8605Smrg#define GL_OR                             0x1507
330848b8605Smrg#define GL_NOR                            0x1508
331848b8605Smrg#define GL_EQUIV                          0x1509
332848b8605Smrg#define GL_INVERT                         0x150A
333848b8605Smrg#define GL_OR_REVERSE                     0x150B
334848b8605Smrg#define GL_COPY_INVERTED                  0x150C
335848b8605Smrg#define GL_OR_INVERTED                    0x150D
336848b8605Smrg#define GL_NAND                           0x150E
337848b8605Smrg#define GL_SET                            0x150F
338848b8605Smrg
339848b8605Smrg/* MaterialFace */
340848b8605Smrg/*      GL_FRONT_AND_BACK */
341848b8605Smrg
342848b8605Smrg/* MaterialParameter */
343848b8605Smrg#define GL_EMISSION                       0x1600
344848b8605Smrg#define GL_SHININESS                      0x1601
345848b8605Smrg#define GL_AMBIENT_AND_DIFFUSE            0x1602
346848b8605Smrg/*      GL_AMBIENT */
347848b8605Smrg/*      GL_DIFFUSE */
348848b8605Smrg/*      GL_SPECULAR */
349848b8605Smrg
350848b8605Smrg/* MatrixMode */
351848b8605Smrg#define GL_MODELVIEW                      0x1700
352848b8605Smrg#define GL_PROJECTION                     0x1701
353848b8605Smrg#define GL_TEXTURE                        0x1702
354848b8605Smrg
355848b8605Smrg/* NormalPointerType */
356848b8605Smrg/*      GL_BYTE */
357848b8605Smrg/*      GL_SHORT */
358848b8605Smrg/*      GL_FLOAT */
359848b8605Smrg/*      GL_FIXED */
360848b8605Smrg
361848b8605Smrg/* PixelFormat */
362848b8605Smrg#define GL_ALPHA                          0x1906
363848b8605Smrg#define GL_RGB                            0x1907
364848b8605Smrg#define GL_RGBA                           0x1908
365848b8605Smrg#define GL_LUMINANCE                      0x1909
366848b8605Smrg#define GL_LUMINANCE_ALPHA                0x190A
367848b8605Smrg
368848b8605Smrg/* PixelStoreParameter */
369848b8605Smrg#define GL_UNPACK_ALIGNMENT               0x0CF5
370848b8605Smrg#define GL_PACK_ALIGNMENT                 0x0D05
371848b8605Smrg
372848b8605Smrg/* PixelType */
373848b8605Smrg/*      GL_UNSIGNED_BYTE */
374848b8605Smrg#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
375848b8605Smrg#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
376848b8605Smrg#define GL_UNSIGNED_SHORT_5_6_5           0x8363
377848b8605Smrg
378848b8605Smrg/* ShadingModel */
379848b8605Smrg#define GL_FLAT                           0x1D00
380848b8605Smrg#define GL_SMOOTH                         0x1D01
381848b8605Smrg
382848b8605Smrg/* StencilFunction */
383848b8605Smrg/*      GL_NEVER */
384848b8605Smrg/*      GL_LESS */
385848b8605Smrg/*      GL_EQUAL */
386848b8605Smrg/*      GL_LEQUAL */
387848b8605Smrg/*      GL_GREATER */
388848b8605Smrg/*      GL_NOTEQUAL */
389848b8605Smrg/*      GL_GEQUAL */
390848b8605Smrg/*      GL_ALWAYS */
391848b8605Smrg
392848b8605Smrg/* StencilOp */
393848b8605Smrg/*      GL_ZERO */
394848b8605Smrg#define GL_KEEP                           0x1E00
395848b8605Smrg#define GL_REPLACE                        0x1E01
396848b8605Smrg#define GL_INCR                           0x1E02
397848b8605Smrg#define GL_DECR                           0x1E03
398848b8605Smrg/*      GL_INVERT */
399848b8605Smrg
400848b8605Smrg/* StringName */
401848b8605Smrg#define GL_VENDOR                         0x1F00
402848b8605Smrg#define GL_RENDERER                       0x1F01
403848b8605Smrg#define GL_VERSION                        0x1F02
404848b8605Smrg#define GL_EXTENSIONS                     0x1F03
405848b8605Smrg
406848b8605Smrg/* TexCoordPointerType */
407848b8605Smrg/*      GL_SHORT */
408848b8605Smrg/*      GL_FLOAT */
409848b8605Smrg/*      GL_FIXED */
410848b8605Smrg/*      GL_BYTE */
411848b8605Smrg
412848b8605Smrg/* TextureEnvMode */
413848b8605Smrg#define GL_MODULATE                       0x2100
414848b8605Smrg#define GL_DECAL                          0x2101
415848b8605Smrg/*      GL_BLEND */
416848b8605Smrg#define GL_ADD                            0x0104
417848b8605Smrg/*      GL_REPLACE */
418848b8605Smrg
419848b8605Smrg/* TextureEnvParameter */
420848b8605Smrg#define GL_TEXTURE_ENV_MODE               0x2200
421848b8605Smrg#define GL_TEXTURE_ENV_COLOR              0x2201
422848b8605Smrg
423848b8605Smrg/* TextureEnvTarget */
424848b8605Smrg#define GL_TEXTURE_ENV                    0x2300
425848b8605Smrg
426848b8605Smrg/* TextureMagFilter */
427848b8605Smrg#define GL_NEAREST                        0x2600
428848b8605Smrg#define GL_LINEAR                         0x2601
429848b8605Smrg
430848b8605Smrg/* TextureMinFilter */
431848b8605Smrg/*      GL_NEAREST */
432848b8605Smrg/*      GL_LINEAR */
433848b8605Smrg#define GL_NEAREST_MIPMAP_NEAREST         0x2700
434848b8605Smrg#define GL_LINEAR_MIPMAP_NEAREST          0x2701
435848b8605Smrg#define GL_NEAREST_MIPMAP_LINEAR          0x2702
436848b8605Smrg#define GL_LINEAR_MIPMAP_LINEAR           0x2703
437848b8605Smrg
438848b8605Smrg/* TextureParameterName */
439848b8605Smrg#define GL_TEXTURE_MAG_FILTER             0x2800
440848b8605Smrg#define GL_TEXTURE_MIN_FILTER             0x2801
441848b8605Smrg#define GL_TEXTURE_WRAP_S                 0x2802
442848b8605Smrg#define GL_TEXTURE_WRAP_T                 0x2803
443848b8605Smrg#define GL_GENERATE_MIPMAP                0x8191
444848b8605Smrg
445848b8605Smrg/* TextureTarget */
446848b8605Smrg/*      GL_TEXTURE_2D */
447848b8605Smrg
448848b8605Smrg/* TextureUnit */
449848b8605Smrg#define GL_TEXTURE0                       0x84C0
450848b8605Smrg#define GL_TEXTURE1                       0x84C1
451848b8605Smrg#define GL_TEXTURE2                       0x84C2
452848b8605Smrg#define GL_TEXTURE3                       0x84C3
453848b8605Smrg#define GL_TEXTURE4                       0x84C4
454848b8605Smrg#define GL_TEXTURE5                       0x84C5
455848b8605Smrg#define GL_TEXTURE6                       0x84C6
456848b8605Smrg#define GL_TEXTURE7                       0x84C7
457848b8605Smrg#define GL_TEXTURE8                       0x84C8
458848b8605Smrg#define GL_TEXTURE9                       0x84C9
459848b8605Smrg#define GL_TEXTURE10                      0x84CA
460848b8605Smrg#define GL_TEXTURE11                      0x84CB
461848b8605Smrg#define GL_TEXTURE12                      0x84CC
462848b8605Smrg#define GL_TEXTURE13                      0x84CD
463848b8605Smrg#define GL_TEXTURE14                      0x84CE
464848b8605Smrg#define GL_TEXTURE15                      0x84CF
465848b8605Smrg#define GL_TEXTURE16                      0x84D0
466848b8605Smrg#define GL_TEXTURE17                      0x84D1
467848b8605Smrg#define GL_TEXTURE18                      0x84D2
468848b8605Smrg#define GL_TEXTURE19                      0x84D3
469848b8605Smrg#define GL_TEXTURE20                      0x84D4
470848b8605Smrg#define GL_TEXTURE21                      0x84D5
471848b8605Smrg#define GL_TEXTURE22                      0x84D6
472848b8605Smrg#define GL_TEXTURE23                      0x84D7
473848b8605Smrg#define GL_TEXTURE24                      0x84D8
474848b8605Smrg#define GL_TEXTURE25                      0x84D9
475848b8605Smrg#define GL_TEXTURE26                      0x84DA
476848b8605Smrg#define GL_TEXTURE27                      0x84DB
477848b8605Smrg#define GL_TEXTURE28                      0x84DC
478848b8605Smrg#define GL_TEXTURE29                      0x84DD
479848b8605Smrg#define GL_TEXTURE30                      0x84DE
480848b8605Smrg#define GL_TEXTURE31                      0x84DF
481848b8605Smrg#define GL_ACTIVE_TEXTURE                 0x84E0
482848b8605Smrg#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
483848b8605Smrg
484848b8605Smrg/* TextureWrapMode */
485848b8605Smrg#define GL_REPEAT                         0x2901
486848b8605Smrg#define GL_CLAMP_TO_EDGE                  0x812F
487848b8605Smrg
488848b8605Smrg/* VertexPointerType */
489848b8605Smrg/*      GL_SHORT */
490848b8605Smrg/*      GL_FLOAT */
491848b8605Smrg/*      GL_FIXED */
492848b8605Smrg/*      GL_BYTE */
493848b8605Smrg
494848b8605Smrg/* LightName */
495848b8605Smrg#define GL_LIGHT0                         0x4000
496848b8605Smrg#define GL_LIGHT1                         0x4001
497848b8605Smrg#define GL_LIGHT2                         0x4002
498848b8605Smrg#define GL_LIGHT3                         0x4003
499848b8605Smrg#define GL_LIGHT4                         0x4004
500848b8605Smrg#define GL_LIGHT5                         0x4005
501848b8605Smrg#define GL_LIGHT6                         0x4006
502848b8605Smrg#define GL_LIGHT7                         0x4007
503848b8605Smrg
504848b8605Smrg/* Buffer Objects */
505848b8605Smrg#define GL_ARRAY_BUFFER                   0x8892
506848b8605Smrg#define GL_ELEMENT_ARRAY_BUFFER           0x8893
507848b8605Smrg
508848b8605Smrg#define GL_ARRAY_BUFFER_BINDING               0x8894
509848b8605Smrg#define GL_ELEMENT_ARRAY_BUFFER_BINDING       0x8895
510848b8605Smrg#define GL_VERTEX_ARRAY_BUFFER_BINDING        0x8896
511848b8605Smrg#define GL_NORMAL_ARRAY_BUFFER_BINDING        0x8897
512848b8605Smrg#define GL_COLOR_ARRAY_BUFFER_BINDING         0x8898
513848b8605Smrg#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
514848b8605Smrg
515848b8605Smrg#define GL_STATIC_DRAW                    0x88E4
516848b8605Smrg#define GL_DYNAMIC_DRAW                   0x88E8
517848b8605Smrg
518848b8605Smrg#define GL_BUFFER_SIZE                    0x8764
519848b8605Smrg#define GL_BUFFER_USAGE                   0x8765
520848b8605Smrg
521848b8605Smrg/* Texture combine + dot3 */
522848b8605Smrg#define GL_SUBTRACT                       0x84E7
523848b8605Smrg#define GL_COMBINE                        0x8570
524848b8605Smrg#define GL_COMBINE_RGB                    0x8571
525848b8605Smrg#define GL_COMBINE_ALPHA                  0x8572
526848b8605Smrg#define GL_RGB_SCALE                      0x8573
527848b8605Smrg#define GL_ADD_SIGNED                     0x8574
528848b8605Smrg#define GL_INTERPOLATE                    0x8575
529848b8605Smrg#define GL_CONSTANT                       0x8576
530848b8605Smrg#define GL_PRIMARY_COLOR                  0x8577
531848b8605Smrg#define GL_PREVIOUS                       0x8578
532848b8605Smrg#define GL_OPERAND0_RGB                   0x8590
533848b8605Smrg#define GL_OPERAND1_RGB                   0x8591
534848b8605Smrg#define GL_OPERAND2_RGB                   0x8592
535848b8605Smrg#define GL_OPERAND0_ALPHA                 0x8598
536848b8605Smrg#define GL_OPERAND1_ALPHA                 0x8599
537848b8605Smrg#define GL_OPERAND2_ALPHA                 0x859A
538848b8605Smrg
539848b8605Smrg#define GL_ALPHA_SCALE                    0x0D1C
540848b8605Smrg
541848b8605Smrg#define GL_SRC0_RGB                       0x8580
542848b8605Smrg#define GL_SRC1_RGB                       0x8581
543848b8605Smrg#define GL_SRC2_RGB                       0x8582
544848b8605Smrg#define GL_SRC0_ALPHA                     0x8588
545848b8605Smrg#define GL_SRC1_ALPHA                     0x8589
546848b8605Smrg#define GL_SRC2_ALPHA                     0x858A
547848b8605Smrg
548848b8605Smrg#define GL_DOT3_RGB                       0x86AE
549848b8605Smrg#define GL_DOT3_RGBA                      0x86AF
550848b8605Smrg
551848b8605Smrg/*------------------------------------------------------------------------*
552848b8605Smrg * required OES extension tokens
553848b8605Smrg *------------------------------------------------------------------------*/
554848b8605Smrg
555848b8605Smrg/* OES_read_format */
556848b8605Smrg#ifndef GL_OES_read_format
557848b8605Smrg#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES                   0x8B9A
558848b8605Smrg#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES                 0x8B9B
559848b8605Smrg#endif
560848b8605Smrg
561848b8605Smrg/* GL_OES_compressed_paletted_texture */
562848b8605Smrg#ifndef GL_OES_compressed_paletted_texture
563848b8605Smrg#define GL_PALETTE4_RGB8_OES                                    0x8B90
564848b8605Smrg#define GL_PALETTE4_RGBA8_OES                                   0x8B91
565848b8605Smrg#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
566848b8605Smrg#define GL_PALETTE4_RGBA4_OES                                   0x8B93
567848b8605Smrg#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
568848b8605Smrg#define GL_PALETTE8_RGB8_OES                                    0x8B95
569848b8605Smrg#define GL_PALETTE8_RGBA8_OES                                   0x8B96
570848b8605Smrg#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
571848b8605Smrg#define GL_PALETTE8_RGBA4_OES                                   0x8B98
572848b8605Smrg#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
573848b8605Smrg#endif
574848b8605Smrg
575848b8605Smrg/* OES_point_size_array */
576848b8605Smrg#ifndef GL_OES_point_size_array
577848b8605Smrg#define GL_POINT_SIZE_ARRAY_OES                                 0x8B9C
578848b8605Smrg#define GL_POINT_SIZE_ARRAY_TYPE_OES                            0x898A
579848b8605Smrg#define GL_POINT_SIZE_ARRAY_STRIDE_OES                          0x898B
580848b8605Smrg#define GL_POINT_SIZE_ARRAY_POINTER_OES                         0x898C
581848b8605Smrg#define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES                  0x8B9F
582848b8605Smrg#endif
583848b8605Smrg
584848b8605Smrg/* GL_OES_point_sprite */
585848b8605Smrg#ifndef GL_OES_point_sprite
586848b8605Smrg#define GL_POINT_SPRITE_OES                                     0x8861
587848b8605Smrg#define GL_COORD_REPLACE_OES                                    0x8862
588848b8605Smrg#endif
589848b8605Smrg
590848b8605Smrg/*************************************************************/
591848b8605Smrg
592848b8605Smrg/* Available only in Common profile */
593848b8605SmrgGL_API void GL_APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
594848b8605SmrgGL_API void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
595848b8605SmrgGL_API void GL_APIENTRY glClearDepthf (GLclampf depth);
596848b8605SmrgGL_API void GL_APIENTRY glClipPlanef (GLenum plane, const GLfloat *equation);
597848b8605SmrgGL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
598848b8605SmrgGL_API void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
599848b8605SmrgGL_API void GL_APIENTRY glFogf (GLenum pname, GLfloat param);
600848b8605SmrgGL_API void GL_APIENTRY glFogfv (GLenum pname, const GLfloat *params);
601848b8605SmrgGL_API void GL_APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
602848b8605SmrgGL_API void GL_APIENTRY glGetClipPlanef (GLenum pname, GLfloat eqn[4]);
603848b8605SmrgGL_API void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *params);
604848b8605SmrgGL_API void GL_APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
605848b8605SmrgGL_API void GL_APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
606848b8605SmrgGL_API void GL_APIENTRY glGetTexEnvfv (GLenum env, GLenum pname, GLfloat *params);
607848b8605SmrgGL_API void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
608848b8605SmrgGL_API void GL_APIENTRY glLightModelf (GLenum pname, GLfloat param);
609848b8605SmrgGL_API void GL_APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
610848b8605SmrgGL_API void GL_APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
611848b8605SmrgGL_API void GL_APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
612848b8605SmrgGL_API void GL_APIENTRY glLineWidth (GLfloat width);
613848b8605SmrgGL_API void GL_APIENTRY glLoadMatrixf (const GLfloat *m);
614848b8605SmrgGL_API void GL_APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
615848b8605SmrgGL_API void GL_APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
616848b8605SmrgGL_API void GL_APIENTRY glMultMatrixf (const GLfloat *m);
617848b8605SmrgGL_API void GL_APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
618848b8605SmrgGL_API void GL_APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
619848b8605SmrgGL_API void GL_APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
620848b8605SmrgGL_API void GL_APIENTRY glPointParameterf (GLenum pname, GLfloat param);
621848b8605SmrgGL_API void GL_APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
622848b8605SmrgGL_API void GL_APIENTRY glPointSize (GLfloat size);
623848b8605SmrgGL_API void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
624848b8605SmrgGL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
625848b8605SmrgGL_API void GL_APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
626848b8605SmrgGL_API void GL_APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
627848b8605SmrgGL_API void GL_APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
628848b8605SmrgGL_API void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
629848b8605SmrgGL_API void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
630848b8605SmrgGL_API void GL_APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
631848b8605Smrg
632848b8605Smrg/* Available in both Common and Common-Lite profiles */
633848b8605SmrgGL_API void GL_APIENTRY glActiveTexture (GLenum texture);
634848b8605SmrgGL_API void GL_APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
635848b8605SmrgGL_API void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
636848b8605SmrgGL_API void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
637848b8605SmrgGL_API void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
638848b8605SmrgGL_API void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
639848b8605SmrgGL_API void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
640848b8605SmrgGL_API void GL_APIENTRY glClear (GLbitfield mask);
641848b8605SmrgGL_API void GL_APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
642848b8605SmrgGL_API void GL_APIENTRY glClearDepthx (GLclampx depth);
643848b8605SmrgGL_API void GL_APIENTRY glClearStencil (GLint s);
644848b8605SmrgGL_API void GL_APIENTRY glClientActiveTexture (GLenum texture);
645848b8605SmrgGL_API void GL_APIENTRY glClipPlanex (GLenum plane, const GLfixed *equation);
646848b8605SmrgGL_API void GL_APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
647848b8605SmrgGL_API void GL_APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
648848b8605SmrgGL_API void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
649848b8605SmrgGL_API void GL_APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
650848b8605SmrgGL_API void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
651848b8605SmrgGL_API void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
652848b8605SmrgGL_API void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
653848b8605SmrgGL_API void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
654848b8605SmrgGL_API void GL_APIENTRY glCullFace (GLenum mode);
655848b8605SmrgGL_API void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
656848b8605SmrgGL_API void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
657848b8605SmrgGL_API void GL_APIENTRY glDepthFunc (GLenum func);
658848b8605SmrgGL_API void GL_APIENTRY glDepthMask (GLboolean flag);
659848b8605SmrgGL_API void GL_APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar);
660848b8605SmrgGL_API void GL_APIENTRY glDisable (GLenum cap);
661848b8605SmrgGL_API void GL_APIENTRY glDisableClientState (GLenum array);
662848b8605SmrgGL_API void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
663848b8605SmrgGL_API void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
664848b8605SmrgGL_API void GL_APIENTRY glEnable (GLenum cap);
665848b8605SmrgGL_API void GL_APIENTRY glEnableClientState (GLenum array);
666848b8605SmrgGL_API void GL_APIENTRY glFinish (void);
667848b8605SmrgGL_API void GL_APIENTRY glFlush (void);
668848b8605SmrgGL_API void GL_APIENTRY glFogx (GLenum pname, GLfixed param);
669848b8605SmrgGL_API void GL_APIENTRY glFogxv (GLenum pname, const GLfixed *params);
670848b8605SmrgGL_API void GL_APIENTRY glFrontFace (GLenum mode);
671848b8605SmrgGL_API void GL_APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
672848b8605SmrgGL_API void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
673848b8605SmrgGL_API void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
674848b8605SmrgGL_API void GL_APIENTRY glGetClipPlanex (GLenum pname, GLfixed eqn[4]);
675848b8605SmrgGL_API void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
676848b8605SmrgGL_API void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures);
677848b8605SmrgGL_API GLenum GL_APIENTRY glGetError (void);
678848b8605SmrgGL_API void GL_APIENTRY glGetFixedv (GLenum pname, GLfixed *params);
679848b8605SmrgGL_API void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *params);
680848b8605SmrgGL_API void GL_APIENTRY glGetLightxv (GLenum light, GLenum pname, GLfixed *params);
681848b8605SmrgGL_API void GL_APIENTRY glGetMaterialxv (GLenum face, GLenum pname, GLfixed *params);
682848b8605SmrgGL_API void GL_APIENTRY glGetPointerv (GLenum pname, GLvoid **params);
683848b8605SmrgGL_API const GLubyte * GL_APIENTRY glGetString (GLenum name);
684848b8605SmrgGL_API void GL_APIENTRY glGetTexEnviv (GLenum env, GLenum pname, GLint *params);
685848b8605SmrgGL_API void GL_APIENTRY glGetTexEnvxv (GLenum env, GLenum pname, GLfixed *params);
686848b8605SmrgGL_API void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
687848b8605SmrgGL_API void GL_APIENTRY glGetTexParameterxv (GLenum target, GLenum pname, GLfixed *params);
688848b8605SmrgGL_API void GL_APIENTRY glHint (GLenum target, GLenum mode);
689848b8605SmrgGL_API GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
690848b8605SmrgGL_API GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
691848b8605SmrgGL_API GLboolean GL_APIENTRY glIsTexture (GLuint texture);
692848b8605SmrgGL_API void GL_APIENTRY glLightModelx (GLenum pname, GLfixed param);
693848b8605SmrgGL_API void GL_APIENTRY glLightModelxv (GLenum pname, const GLfixed *params);
694848b8605SmrgGL_API void GL_APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
695848b8605SmrgGL_API void GL_APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params);
696848b8605SmrgGL_API void GL_APIENTRY glLineWidthx (GLfixed width);
697848b8605SmrgGL_API void GL_APIENTRY glLoadIdentity (void);
698848b8605SmrgGL_API void GL_APIENTRY glLoadMatrixx (const GLfixed *m);
699848b8605SmrgGL_API void GL_APIENTRY glLogicOp (GLenum opcode);
700848b8605SmrgGL_API void GL_APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
701848b8605SmrgGL_API void GL_APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params);
702848b8605SmrgGL_API void GL_APIENTRY glMatrixMode (GLenum mode);
703848b8605SmrgGL_API void GL_APIENTRY glMultMatrixx (const GLfixed *m);
704848b8605SmrgGL_API void GL_APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
705848b8605SmrgGL_API void GL_APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz);
706848b8605SmrgGL_API void GL_APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
707848b8605SmrgGL_API void GL_APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
708848b8605SmrgGL_API void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
709848b8605SmrgGL_API void GL_APIENTRY glPointParameterx (GLenum pname, GLfixed param);
710848b8605SmrgGL_API void GL_APIENTRY glPointParameterxv (GLenum pname, const GLfixed *params);
711848b8605SmrgGL_API void GL_APIENTRY glPointSizex (GLfixed size);
712848b8605SmrgGL_API void GL_APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
713848b8605SmrgGL_API void GL_APIENTRY glPopMatrix (void);
714848b8605SmrgGL_API void GL_APIENTRY glPushMatrix (void);
715848b8605SmrgGL_API void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
716848b8605SmrgGL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
717848b8605SmrgGL_API void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
718848b8605SmrgGL_API void GL_APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
719848b8605SmrgGL_API void GL_APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z);
720848b8605SmrgGL_API void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
721848b8605SmrgGL_API void GL_APIENTRY glShadeModel (GLenum mode);
722848b8605SmrgGL_API void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
723848b8605SmrgGL_API void GL_APIENTRY glStencilMask (GLuint mask);
724848b8605SmrgGL_API void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
725848b8605SmrgGL_API void GL_APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
726848b8605SmrgGL_API void GL_APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
727848b8605SmrgGL_API void GL_APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
728848b8605SmrgGL_API void GL_APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
729848b8605SmrgGL_API void GL_APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params);
730848b8605SmrgGL_API void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
731848b8605SmrgGL_API void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
732848b8605SmrgGL_API void GL_APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
733848b8605SmrgGL_API void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
734848b8605SmrgGL_API void GL_APIENTRY glTexParameterxv (GLenum target, GLenum pname, const GLfixed *params);
735848b8605SmrgGL_API void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
736848b8605SmrgGL_API void GL_APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z);
737848b8605SmrgGL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
738848b8605SmrgGL_API void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
739848b8605Smrg
740848b8605Smrg/*------------------------------------------------------------------------*
741848b8605Smrg * Required OES extension functions
742848b8605Smrg *------------------------------------------------------------------------*/
743848b8605Smrg
744848b8605Smrg/* GL_OES_read_format */
745848b8605Smrg#ifndef GL_OES_read_format
746848b8605Smrg#define GL_OES_read_format 1
747848b8605Smrg#endif
748848b8605Smrg
749848b8605Smrg/* GL_OES_compressed_paletted_texture */
750848b8605Smrg#ifndef GL_OES_compressed_paletted_texture
751848b8605Smrg#define GL_OES_compressed_paletted_texture 1
752848b8605Smrg#endif
753848b8605Smrg
754848b8605Smrg/* GL_OES_point_size_array */
755848b8605Smrg#ifndef GL_OES_point_size_array
756848b8605Smrg#define GL_OES_point_size_array 1
757848b8605SmrgGL_API void GL_APIENTRY glPointSizePointerOES (GLenum type, GLsizei stride, const GLvoid *pointer);
758848b8605Smrg#endif
759848b8605Smrg
760848b8605Smrg/* GL_OES_point_sprite */
761848b8605Smrg#ifndef GL_OES_point_sprite
762848b8605Smrg#define GL_OES_point_sprite 1
763848b8605Smrg#endif
764848b8605Smrg
765848b8605Smrg#ifdef __cplusplus
766848b8605Smrg}
767848b8605Smrg#endif
768848b8605Smrg
769848b8605Smrg#endif /* __gl_h_ */
770848b8605Smrg
771