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