• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef __gl_h_
2 #define __gl_h_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9 ** License Applicability. Except to the extent portions of this file are
10 ** made subject to an alternative license as permitted in the SGI Free
11 ** Software License B, Version 1.0 (the "License"), the contents of this
12 ** file are subject only to the provisions of the License. You may not use
13 ** this file except in compliance with the License. You may obtain a copy
14 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16 **
17 ** http://oss.sgi.com/projects/FreeB
18 **
19 ** Note that, as provided in the License, the Software is distributed on an
20 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24 **
25 ** Original Code. The Original Code is: OpenGL Sample Implementation,
26 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28 ** Copyright in any portions created by third parties is as indicated
29 ** elsewhere herein. All Rights Reserved.
30 **
31 ** Additional Notice Provisions: The application programming interfaces
32 ** established by SGI in conjunction with the Original Code are The
33 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
34 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
35 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
36 ** Window System(R) (Version 1.3), released October 19, 1998. This software
37 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
38 ** published by SGI, but has not been independently verified as being
39 ** compliant with the OpenGL(R) version 1.2.1 Specification.
40 */
41 
42 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
43 #define WIN32_LEAN_AND_MEAN 1
44 #include <windows.h>
45 #endif
46 
47 #ifndef APIENTRY
48 #define APIENTRY
49 #endif
50 #ifndef GLAPI
51 #define GLAPI extern
52 #endif
53 
54 typedef unsigned int GLenum;
55 typedef unsigned char GLboolean;
56 typedef unsigned int GLbitfield;
57 typedef signed char GLbyte;
58 typedef short GLshort;
59 typedef int GLint;
60 typedef int GLsizei;
61 typedef unsigned char GLubyte;
62 typedef unsigned short GLushort;
63 typedef unsigned int GLuint;
64 typedef float GLfloat;
65 typedef float GLclampf;
66 typedef void GLvoid;
67 typedef int GLintptrARB;
68 typedef int GLsizeiptrARB;
69 typedef int GLfixed;
70 typedef int GLclampx;
71 /* Internal convenience typedefs */
72 typedef void (*_GLfuncptr)();
73 
74 /*************************************************************/
75 
76 /* Extensions */
77 #define GL_OES_VERSION_1_0                1
78 #define GL_OES_read_format                1
79 #define GL_OES_compressed_paletted_texture 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 /* ColorMaterialFace */
131 /*      GL_FRONT_AND_BACK */
132 
133 /* ColorMaterialParameter */
134 /*      GL_AMBIENT_AND_DIFFUSE */
135 
136 /* ColorPointerType */
137 /*      GL_UNSIGNED_BYTE */
138 /*      GL_FLOAT */
139 /*      GL_FIXED */
140 
141 /* CullFaceMode */
142 #define GL_FRONT                          0x0404
143 #define GL_BACK                           0x0405
144 #define GL_FRONT_AND_BACK                 0x0408
145 
146 /* DepthFunction */
147 /*      GL_NEVER */
148 /*      GL_LESS */
149 /*      GL_EQUAL */
150 /*      GL_LEQUAL */
151 /*      GL_GREATER */
152 /*      GL_NOTEQUAL */
153 /*      GL_GEQUAL */
154 /*      GL_ALWAYS */
155 
156 /* EnableCap */
157 #define GL_FOG                            0x0B60
158 #define GL_LIGHTING                       0x0B50
159 #define GL_TEXTURE_2D                     0x0DE1
160 #define GL_CULL_FACE                      0x0B44
161 #define GL_ALPHA_TEST                     0x0BC0
162 #define GL_BLEND                          0x0BE2
163 #define GL_COLOR_LOGIC_OP                 0x0BF2
164 #define GL_DITHER                         0x0BD0
165 #define GL_STENCIL_TEST                   0x0B90
166 #define GL_DEPTH_TEST                     0x0B71
167 /*      GL_LIGHT0 */
168 /*      GL_LIGHT1 */
169 /*      GL_LIGHT2 */
170 /*      GL_LIGHT3 */
171 /*      GL_LIGHT4 */
172 /*      GL_LIGHT5 */
173 /*      GL_LIGHT6 */
174 /*      GL_LIGHT7 */
175 #define GL_POINT_SMOOTH                   0x0B10
176 #define GL_LINE_SMOOTH                    0x0B20
177 #define GL_SCISSOR_TEST                   0x0C11
178 #define GL_COLOR_MATERIAL                 0x0B57
179 #define GL_NORMALIZE                      0x0BA1
180 #define GL_RESCALE_NORMAL                 0x803A
181 #define GL_POLYGON_OFFSET_FILL            0x8037
182 #define GL_VERTEX_ARRAY                   0x8074
183 #define GL_NORMAL_ARRAY                   0x8075
184 #define GL_COLOR_ARRAY                    0x8076
185 #define GL_TEXTURE_COORD_ARRAY            0x8078
186 #define GL_MULTISAMPLE                    0x809D
187 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
188 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
189 #define GL_SAMPLE_COVERAGE                0x80A0
190 
191 /* ErrorCode */
192 #define GL_NO_ERROR                       0
193 #define GL_INVALID_ENUM                   0x0500
194 #define GL_INVALID_VALUE                  0x0501
195 #define GL_INVALID_OPERATION              0x0502
196 #define GL_STACK_OVERFLOW                 0x0503
197 #define GL_STACK_UNDERFLOW                0x0504
198 #define GL_OUT_OF_MEMORY                  0x0505
199 
200 /* FogMode */
201 /*      GL_LINEAR */
202 #define GL_EXP                            0x0800
203 #define GL_EXP2                           0x0801
204 
205 /* FogParameter */
206 #define GL_FOG_DENSITY                    0x0B62
207 #define GL_FOG_START                      0x0B63
208 #define GL_FOG_END                        0x0B64
209 #define GL_FOG_MODE                       0x0B65
210 #define GL_FOG_COLOR                      0x0B66
211 
212 /* FrontFaceDirection */
213 #define GL_CW                             0x0900
214 #define GL_CCW                            0x0901
215 
216 /* GetPName */
217 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
218 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
219 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
220 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
221 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
222 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
223 #define GL_MAX_LIGHTS                     0x0D31
224 #define GL_MAX_TEXTURE_SIZE               0x0D33
225 #define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
226 #define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
227 #define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
228 #define GL_MAX_VIEWPORT_DIMS              0x0D3A
229 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
230 #define GL_MAX_ELEMENTS_INDICES           0x80E9
231 #define GL_MAX_TEXTURE_UNITS              0x84E2
232 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
233 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
234 #define GL_SUBPIXEL_BITS                  0x0D50
235 #define GL_RED_BITS                       0x0D52
236 #define GL_GREEN_BITS                     0x0D53
237 #define GL_BLUE_BITS                      0x0D54
238 #define GL_ALPHA_BITS                     0x0D55
239 #define GL_DEPTH_BITS                     0x0D56
240 #define GL_STENCIL_BITS                   0x0D57
241 
242 /* HintMode */
243 #define GL_DONT_CARE                      0x1100
244 #define GL_FASTEST                        0x1101
245 #define GL_NICEST                         0x1102
246 
247 /* HintTarget */
248 #define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
249 #define GL_POINT_SMOOTH_HINT              0x0C51
250 #define GL_LINE_SMOOTH_HINT               0x0C52
251 #define GL_POLYGON_SMOOTH_HINT            0x0C53
252 #define GL_FOG_HINT                       0x0C54
253 
254 /* LightModelParameter */
255 #define GL_LIGHT_MODEL_AMBIENT            0x0B53
256 #define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
257 
258 /* LightParameter */
259 #define GL_AMBIENT                        0x1200
260 #define GL_DIFFUSE                        0x1201
261 #define GL_SPECULAR                       0x1202
262 #define GL_POSITION                       0x1203
263 #define GL_SPOT_DIRECTION                 0x1204
264 #define GL_SPOT_EXPONENT                  0x1205
265 #define GL_SPOT_CUTOFF                    0x1206
266 #define GL_CONSTANT_ATTENUATION           0x1207
267 #define GL_LINEAR_ATTENUATION             0x1208
268 #define GL_QUADRATIC_ATTENUATION          0x1209
269 
270 /* DataType */
271 #define GL_BYTE                           0x1400
272 #define GL_UNSIGNED_BYTE                  0x1401
273 #define GL_SHORT                          0x1402
274 #define GL_UNSIGNED_SHORT                 0x1403
275 #define GL_FLOAT                          0x1406
276 #define GL_FIXED                          0x140C
277 
278 /* LogicOp */
279 #define GL_CLEAR                          0x1500
280 #define GL_AND                            0x1501
281 #define GL_AND_REVERSE                    0x1502
282 #define GL_COPY                           0x1503
283 #define GL_AND_INVERTED                   0x1504
284 #define GL_NOOP                           0x1505
285 #define GL_XOR                            0x1506
286 #define GL_OR                             0x1507
287 #define GL_NOR                            0x1508
288 #define GL_EQUIV                          0x1509
289 #define GL_INVERT                         0x150A
290 #define GL_OR_REVERSE                     0x150B
291 #define GL_COPY_INVERTED                  0x150C
292 #define GL_OR_INVERTED                    0x150D
293 #define GL_NAND                           0x150E
294 #define GL_SET                            0x150F
295 
296 /* MaterialFace */
297 /*      GL_FRONT_AND_BACK */
298 
299 /* MaterialParameter */
300 #define GL_EMISSION                       0x1600
301 #define GL_SHININESS                      0x1601
302 #define GL_AMBIENT_AND_DIFFUSE            0x1602
303 /*      GL_AMBIENT */
304 /*      GL_DIFFUSE */
305 /*      GL_SPECULAR */
306 
307 /* MatrixMode */
308 #define GL_MODELVIEW                      0x1700
309 #define GL_PROJECTION                     0x1701
310 #define GL_TEXTURE                        0x1702
311 
312 /* NormalPointerType */
313 /*      GL_BYTE */
314 /*      GL_SHORT */
315 /*      GL_FLOAT */
316 /*      GL_FIXED */
317 
318 /* PixelFormat */
319 #define GL_ALPHA                          0x1906
320 #define GL_RGB                            0x1907
321 #define GL_RGBA                           0x1908
322 #define GL_LUMINANCE                      0x1909
323 #define GL_LUMINANCE_ALPHA                0x190A
324 
325 /* PixelStoreParameter */
326 #define GL_UNPACK_ALIGNMENT               0x0CF5
327 #define GL_PACK_ALIGNMENT                 0x0D05
328 
329 /* PixelType */
330 /*      GL_UNSIGNED_BYTE */
331 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
332 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
333 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
334 
335 /* ShadingModel */
336 #define GL_FLAT                           0x1D00
337 #define GL_SMOOTH                         0x1D01
338 
339 /* StencilFunction */
340 /*      GL_NEVER */
341 /*      GL_LESS */
342 /*      GL_EQUAL */
343 /*      GL_LEQUAL */
344 /*      GL_GREATER */
345 /*      GL_NOTEQUAL */
346 /*      GL_GEQUAL */
347 /*      GL_ALWAYS */
348 
349 /* StencilOp */
350 /*      GL_ZERO */
351 #define GL_KEEP                           0x1E00
352 #define GL_REPLACE                        0x1E01
353 #define GL_INCR                           0x1E02
354 #define GL_DECR                           0x1E03
355 /*      GL_INVERT */
356 
357 /* StringName */
358 #define GL_VENDOR                         0x1F00
359 #define GL_RENDERER                       0x1F01
360 #define GL_VERSION                        0x1F02
361 #define GL_EXTENSIONS                     0x1F03
362 
363 /* TexCoordPointerType */
364 /*      GL_SHORT */
365 /*      GL_FLOAT */
366 /*      GL_FIXED */
367 /*      GL_BYTE */
368 
369 /* TextureEnvMode */
370 #define GL_MODULATE                       0x2100
371 #define GL_DECAL                          0x2101
372 /*      GL_BLEND */
373 #define GL_ADD                            0x0104
374 /*      GL_REPLACE */
375 
376 /* TextureEnvParameter */
377 #define GL_TEXTURE_ENV_MODE               0x2200
378 #define GL_TEXTURE_ENV_COLOR              0x2201
379 
380 /* TextureEnvTarget */
381 #define GL_TEXTURE_ENV                    0x2300
382 
383 /* TextureMagFilter */
384 #define GL_NEAREST                        0x2600
385 #define GL_LINEAR                         0x2601
386 
387 /* TextureMinFilter */
388 /*      GL_NEAREST */
389 /*      GL_LINEAR */
390 #define GL_NEAREST_MIPMAP_NEAREST         0x2700
391 #define GL_LINEAR_MIPMAP_NEAREST          0x2701
392 #define GL_NEAREST_MIPMAP_LINEAR          0x2702
393 #define GL_LINEAR_MIPMAP_LINEAR           0x2703
394 
395 /* TextureParameterName */
396 #define GL_TEXTURE_MAG_FILTER             0x2800
397 #define GL_TEXTURE_MIN_FILTER             0x2801
398 #define GL_TEXTURE_WRAP_S                 0x2802
399 #define GL_TEXTURE_WRAP_T                 0x2803
400 
401 /* TextureTarget */
402 /*      GL_TEXTURE_2D */
403 
404 /* TextureUnit */
405 #define GL_TEXTURE0                       0x84C0
406 #define GL_TEXTURE1                       0x84C1
407 #define GL_TEXTURE2                       0x84C2
408 #define GL_TEXTURE3                       0x84C3
409 #define GL_TEXTURE4                       0x84C4
410 #define GL_TEXTURE5                       0x84C5
411 #define GL_TEXTURE6                       0x84C6
412 #define GL_TEXTURE7                       0x84C7
413 #define GL_TEXTURE8                       0x84C8
414 #define GL_TEXTURE9                       0x84C9
415 #define GL_TEXTURE10                      0x84CA
416 #define GL_TEXTURE11                      0x84CB
417 #define GL_TEXTURE12                      0x84CC
418 #define GL_TEXTURE13                      0x84CD
419 #define GL_TEXTURE14                      0x84CE
420 #define GL_TEXTURE15                      0x84CF
421 #define GL_TEXTURE16                      0x84D0
422 #define GL_TEXTURE17                      0x84D1
423 #define GL_TEXTURE18                      0x84D2
424 #define GL_TEXTURE19                      0x84D3
425 #define GL_TEXTURE20                      0x84D4
426 #define GL_TEXTURE21                      0x84D5
427 #define GL_TEXTURE22                      0x84D6
428 #define GL_TEXTURE23                      0x84D7
429 #define GL_TEXTURE24                      0x84D8
430 #define GL_TEXTURE25                      0x84D9
431 #define GL_TEXTURE26                      0x84DA
432 #define GL_TEXTURE27                      0x84DB
433 #define GL_TEXTURE28                      0x84DC
434 #define GL_TEXTURE29                      0x84DD
435 #define GL_TEXTURE30                      0x84DE
436 #define GL_TEXTURE31                      0x84DF
437 
438 /* TextureWrapMode */
439 #define GL_REPEAT                         0x2901
440 #define GL_CLAMP_TO_EDGE                  0x812F
441 
442 /* PixelInternalFormat */
443 #define GL_PALETTE4_RGB8_OES              0x8B90
444 #define GL_PALETTE4_RGBA8_OES             0x8B91
445 #define GL_PALETTE4_R5_G6_B5_OES          0x8B92
446 #define GL_PALETTE4_RGBA4_OES             0x8B93
447 #define GL_PALETTE4_RGB5_A1_OES           0x8B94
448 #define GL_PALETTE8_RGB8_OES              0x8B95
449 #define GL_PALETTE8_RGBA8_OES             0x8B96
450 #define GL_PALETTE8_R5_G6_B5_OES          0x8B97
451 #define GL_PALETTE8_RGBA4_OES             0x8B98
452 #define GL_PALETTE8_RGB5_A1_OES           0x8B99
453 
454 /* VertexPointerType */
455 /*      GL_SHORT */
456 /*      GL_FLOAT */
457 /*      GL_FIXED */
458 /*      GL_BYTE */
459 
460 /* LightName */
461 #define GL_LIGHT0                         0x4000
462 #define GL_LIGHT1                         0x4001
463 #define GL_LIGHT2                         0x4002
464 #define GL_LIGHT3                         0x4003
465 #define GL_LIGHT4                         0x4004
466 #define GL_LIGHT5                         0x4005
467 #define GL_LIGHT6                         0x4006
468 #define GL_LIGHT7                         0x4007
469 
470 
471 /*************************************************************/
472 
473 GLAPI void APIENTRY glActiveTexture (GLenum texture);
474 GLAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
475 GLAPI void APIENTRY glAlphaFuncx (GLenum func, GLclampx ref);
476 GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
477 GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
478 GLAPI void APIENTRY glClear (GLbitfield mask);
479 GLAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
480 GLAPI void APIENTRY glClearColorx (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
481 GLAPI void APIENTRY glClearDepthf (GLclampf depth);
482 GLAPI void APIENTRY glClearDepthx (GLclampx depth);
483 GLAPI void APIENTRY glClearStencil (GLint s);
484 GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
485 GLAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
486 GLAPI void APIENTRY glColor4x (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
487 GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
488 GLAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
489 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
490 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
491 GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
492 GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
493 GLAPI void APIENTRY glCullFace (GLenum mode);
494 GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
495 GLAPI void APIENTRY glDepthFunc (GLenum func);
496 GLAPI void APIENTRY glDepthMask (GLboolean flag);
497 GLAPI void APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
498 GLAPI void APIENTRY glDepthRangex (GLclampx zNear, GLclampx zFar);
499 GLAPI void APIENTRY glDisable (GLenum cap);
500 GLAPI void APIENTRY glDisableClientState (GLenum array);
501 GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
502 GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
503 GLAPI void APIENTRY glEnable (GLenum cap);
504 GLAPI void APIENTRY glEnableClientState (GLenum array);
505 GLAPI void APIENTRY glFinish (void);
506 GLAPI void APIENTRY glFlush (void);
507 GLAPI void APIENTRY glFogf (GLenum pname, GLfloat param);
508 GLAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);
509 GLAPI void APIENTRY glFogx (GLenum pname, GLfixed param);
510 GLAPI void APIENTRY glFogxv (GLenum pname, const GLfixed *params);
511 GLAPI void APIENTRY glFrontFace (GLenum mode);
512 GLAPI void APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
513 GLAPI void APIENTRY glFrustumx (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
514 GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
515 GLAPI GLenum APIENTRY glGetError (void);
516 GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
517 GLAPI const GLubyte * APIENTRY glGetString (GLenum name);
518 GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
519 GLAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);
520 GLAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
521 GLAPI void APIENTRY glLightModelx (GLenum pname, GLfixed param);
522 GLAPI void APIENTRY glLightModelxv (GLenum pname, const GLfixed *params);
523 GLAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
524 GLAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
525 GLAPI void APIENTRY glLightx (GLenum light, GLenum pname, GLfixed param);
526 GLAPI void APIENTRY glLightxv (GLenum light, GLenum pname, const GLfixed *params);
527 GLAPI void APIENTRY glLineWidth (GLfloat width);
528 GLAPI void APIENTRY glLineWidthx (GLfixed width);
529 GLAPI void APIENTRY glLoadIdentity (void);
530 GLAPI void APIENTRY glLoadMatrixf (const GLfloat *m);
531 GLAPI void APIENTRY glLoadMatrixx (const GLfixed *m);
532 GLAPI void APIENTRY glLogicOp (GLenum opcode);
533 GLAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
534 GLAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
535 GLAPI void APIENTRY glMaterialx (GLenum face, GLenum pname, GLfixed param);
536 GLAPI void APIENTRY glMaterialxv (GLenum face, GLenum pname, const GLfixed *params);
537 GLAPI void APIENTRY glMatrixMode (GLenum mode);
538 GLAPI void APIENTRY glMultMatrixf (const GLfloat *m);
539 GLAPI void APIENTRY glMultMatrixx (const GLfixed *m);
540 GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
541 GLAPI void APIENTRY glMultiTexCoord4x (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
542 GLAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
543 GLAPI void APIENTRY glNormal3x (GLfixed nx, GLfixed ny, GLfixed nz);
544 GLAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
545 GLAPI void APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
546 GLAPI void APIENTRY glOrthox (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
547 GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
548 GLAPI void APIENTRY glPointSize (GLfloat size);
549 GLAPI void APIENTRY glPointSizex (GLfixed size);
550 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
551 GLAPI void APIENTRY glPolygonOffsetx (GLfixed factor, GLfixed units);
552 GLAPI void APIENTRY glPopMatrix (void);
553 GLAPI void APIENTRY glPushMatrix (void);
554 GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
555 GLAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
556 GLAPI void APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
557 GLAPI void APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
558 GLAPI void APIENTRY glSampleCoveragex (GLclampx value, GLboolean invert);
559 GLAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
560 GLAPI void APIENTRY glScalex (GLfixed x, GLfixed y, GLfixed z);
561 GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
562 GLAPI void APIENTRY glShadeModel (GLenum mode);
563 GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
564 GLAPI void APIENTRY glStencilMask (GLuint mask);
565 GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
566 GLAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
567 GLAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
568 GLAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
569 GLAPI void APIENTRY glTexEnvx (GLenum target, GLenum pname, GLfixed param);
570 GLAPI void APIENTRY glTexEnvxv (GLenum target, GLenum pname, const GLfixed *params);
571 GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
572 GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
573 GLAPI void APIENTRY glTexParameterx (GLenum target, GLenum pname, GLfixed param);
574 GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
575 GLAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
576 GLAPI void APIENTRY glTranslatex (GLfixed x, GLfixed y, GLfixed z);
577 GLAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
578 GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
579 
580 #ifdef __cplusplus
581 }
582 #endif
583 
584 #endif /* __gl_h_ */
585