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