1 #ifndef __gl_h_ 2 #define __gl_h_ 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 /* 9 * Copyright 1991-2000 Silicon Graphics, Inc. This document is 10 * licensed under the SGI Free Software B License. For details, see 11 * http://oss.sgi.com/projects/FreeB/ 12 */ 13 14 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SYMBIAN32__) 15 #define WIN32_LEAN_AND_MEAN 1 16 #include <windows.h> 17 #endif 18 19 #ifndef APIENTRY 20 #define APIENTRY 21 #endif 22 #ifndef GLAPI 23 #define GLAPI extern 24 #endif 25 26 typedef unsigned int GLenum; 27 typedef unsigned char GLboolean; 28 typedef unsigned int GLbitfield; 29 typedef signed char GLbyte; 30 typedef int GLint; 31 typedef int GLsizei; 32 typedef unsigned char GLubyte; 33 typedef unsigned short GLushort; 34 typedef unsigned int GLuint; 35 typedef float GLfloat; 36 typedef float GLclampf; 37 typedef void GLvoid; 38 /* Internal convenience typedefs */ 39 typedef void (*_GLfuncptr)(); 40 41 /*************************************************************/ 42 43 /* Extensions */ 44 #define GL_OES_SC_VERSION_1_0 1 45 #define GL_EXT_paletted_texture 1 46 47 /* ClearBufferMask */ 48 #define GL_DEPTH_BUFFER_BIT 0x00000100 49 #define GL_STENCIL_BUFFER_BIT 0x00000400 50 #define GL_COLOR_BUFFER_BIT 0x00004000 51 52 /* Boolean */ 53 #define GL_FALSE 0 54 #define GL_TRUE 1 55 56 /* BeginMode */ 57 #define GL_POINTS 0x0000 58 #define GL_LINES 0x0001 59 #define GL_LINE_LOOP 0x0002 60 #define GL_LINE_STRIP 0x0003 61 #define GL_TRIANGLES 0x0004 62 #define GL_TRIANGLE_STRIP 0x0005 63 #define GL_TRIANGLE_FAN 0x0006 64 65 /* AlphaFunction */ 66 /* #define GL_LEQUAL 0x0203 */ 67 /* #define GL_ALWAYS 0x0207 */ 68 69 /* BlendingFactorDest */ 70 #define GL_ZERO 0 71 #define GL_ONE 1 72 #define GL_ONE_MINUS_SRC_ALPHA 0x0303 73 74 /* BlendingFactorSrc */ 75 /* #define GL_ONE 1 */ 76 #define GL_SRC_ALPHA_SATURATE 0x0308 77 #define GL_SRC_ALPHA 0x0302 78 79 /* ColorMaterialFace */ 80 /* #define GL_FRONT_AND_BACK 0x0408 */ 81 82 /* ColorMaterialParameter */ 83 /* #define GL_AMBIENT_AND_DIFFUSE 0x1602 */ 84 85 /* ColorPointerType */ 86 /* #define GL_FLOAT 0x1406 */ 87 /* #define GL_UNSIGNED_BYTE 0x1401 */ 88 89 /* CullFaceMode */ 90 #define GL_FRONT 0x0404 91 #define GL_BACK 0x0405 92 #define GL_FRONT_AND_BACK 0x0408 93 94 /* DepthFunction */ 95 /* #define GL_LESS 0x0201 */ 96 /* #define GL_LEQUAL 0x0203 */ 97 /* #define GL_ALWAYS 0x0207 */ 98 99 /* EnableCap */ 100 #define GL_LIGHTING 0x0B50 101 #define GL_TEXTURE_2D 0x0DE1 102 #define GL_CULL_FACE 0x0B44 103 #define GL_ALPHA_TEST 0x0BC0 104 #define GL_BLEND 0x0BE2 105 #define GL_STENCIL_TEST 0x0B90 106 #define GL_DEPTH_TEST 0x0B71 107 #define GL_LIGHT0 0x4000 108 #define GL_LIGHT1 0x4001 109 #define GL_POINT_SMOOTH 0x0B10 110 #define GL_LINE_STIPPLE 0x0B24 111 #define GL_LINE_SMOOTH 0x0B20 112 #define GL_SCISSOR_TEST 0x0C11 113 #define GL_COLOR_MATERIAL 0x0B57 114 #define GL_NORMALIZE 0x0BA1 115 #define GL_RESCALE_NORMAL 0x803A 116 #define GL_POLYGON_OFFSET_FILL 0x8037 117 #define GL_POLYGON_STIPPLE 0x0B42 118 #define GL_VERTEX_ARRAY 0x8074 119 #define GL_NORMAL_ARRAY 0x8075 120 #define GL_COLOR_ARRAY 0x8076 121 #define GL_TEXTURE_COORD_ARRAY 0x8078 122 123 /* ErrorCode */ 124 #define GL_NO_ERROR 0 125 #define GL_INVALID_ENUM 0x0500 126 #define GL_INVALID_VALUE 0x0501 127 #define GL_INVALID_OPERATION 0x0502 128 #define GL_STACK_OVERFLOW 0x0503 129 #define GL_STACK_UNDERFLOW 0x0504 130 #define GL_OUT_OF_MEMORY 0x0505 131 132 /* FogMode */ 133 134 /* FogParameter */ 135 136 /* FrontFaceDirection */ 137 #define GL_CW 0x0900 138 #define GL_CCW 0x0901 139 140 /* GetBooleanv */ 141 #define GL_DEPTH_WRITEMASK 0x0B72 142 #define GL_COLOR_WRITEMASK 0x0C23 143 144 /* GetFloatv */ 145 #define GL_CURRENT_COLOR 0x0B00 146 #define GL_CURRENT_NORMAL 0x0B02 147 #define GL_CURRENT_TEXTURE_COORDS 0x0B03 148 #define GL_CURRENT_RASTER_COLOR 0x0B04 149 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 150 #define GL_POINT_SIZE 0x0B11 151 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 152 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 153 #define GL_LINE_WIDTH 0x0B21 154 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 155 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 156 #define GL_LIGHT_MODEL_AMBIENT 0x0B53 157 #define GL_DEPTH_RANGE 0x0B70 158 #define GL_DEPTH_CLEAR_VALUE 0x0B73 159 #define GL_ALPHA_TEST_REF 0x0BC2 160 #define GL_COLOR_CLEAR_VALUE 0x0C22 161 #define GL_POLYGON_OFFSET_UNITS 0x2A00 162 #define GL_POLYGON_OFFSET_FACTOR 0x8038 163 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D 164 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E 165 166 /* GetIntegerv */ 167 #define GL_MATRIX_MODE 0x0BA0 168 #define GL_VIEWPORT 0x0BA2 169 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3 170 #define GL_PROJECTION_STACK_DEPTH 0x0BA4 171 #define GL_MODELVIEW_MATRIX 0x0BA6 172 #define GL_PROJECTION_MATRIX 0x0BA7 173 #define GL_LINE_STIPPLE_PATTERN 0x0B25 174 #define GL_LINE_STIPPLE_REPEAT 0x0B26 175 #define GL_MAX_LIST_NESTING 0x0B31 176 #define GL_LIST_BASE 0x0B32 177 #define GL_CULL_FACE_MODE 0x0B45 178 #define GL_FRONT_FACE 0x0B46 179 #define GL_DEPTH_FUNC 0x0B74 180 #define GL_STENCIL_CLEAR_VALUE 0x0B91 181 #define GL_STENCIL_FUNC 0x0B92 182 #define GL_STENCIL_VALUE_MASK 0x0B93 183 #define GL_STENCIL_FAIL 0x0B94 184 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 185 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 186 #define GL_STENCIL_REF 0x0B97 187 #define GL_STENCIL_WRITEMASK 0x0B98 188 #define GL_ALPHA_TEST_FUNC 0x0BC1 189 #define GL_BLEND_DST 0x0BE0 190 #define GL_BLEND_SRC 0x0BE1 191 #define GL_SCISSOR_BOX 0x0C10 192 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 193 #define GL_POINT_SMOOTH_HINT 0x0C51 194 #define GL_LINE_SMOOTH_HINT 0x0C52 195 #define GL_POLYGON_SMOOTH_HINT 0x0C53 196 #define GL_UNPACK_ALIGNMENT 0x0CF5 197 #define GL_PACK_ALIGNMENT 0x0D05 198 #define GL_MAX_LIGHTS 0x0D31 199 #define GL_MAX_TEXTURE_SIZE 0x0D33 200 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 201 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 202 #define GL_MAX_VIEWPORT_DIMS 0x0D3A 203 #define GL_SUBPIXEL_BITS 0x0D50 204 #define GL_RED_BITS 0x0D52 205 #define GL_GREEN_BITS 0x0D53 206 #define GL_BLUE_BITS 0x0D54 207 #define GL_ALPHA_BITS 0x0D55 208 #define GL_DEPTH_BITS 0x0D56 209 #define GL_STENCIL_BITS 0x0D57 210 #define GL_VERTEX_ARRAY_SIZE 0x807A 211 #define GL_VERTEX_ARRAY_TYPE 0x807B 212 #define GL_VERTEX_ARRAY_STRIDE 0x807C 213 #define GL_NORMAL_ARRAY_TYPE 0x807E 214 #define GL_NORMAL_ARRAY_STRIDE 0x807F 215 #define GL_COLOR_ARRAY_SIZE 0x8081 216 #define GL_COLOR_ARRAY_TYPE 0x8082 217 #define GL_COLOR_ARRAY_STRIDE 0x8083 218 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 219 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 220 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A 221 #define GL_SHADE_MODEL 0x0B54 222 #define GL_TEXTURE_BINDING_2D 0x8069 223 #define GL_MAX_ELEMENTS_VERTICES 0x80E8 224 #define GL_MAX_ELEMENTS_INDICES 0x80E9 225 #define GL_ACTIVE_TEXTURE 0x84E0 226 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 227 #define GL_MAX_TEXTURE_UNITS 0x84E2 228 229 /* GetMaterialfv */ 230 /* #define GL_AMBIENT 0x1200 */ 231 /* #define GL_DIFFUSE 0x1201 */ 232 /* #define GL_SPECULAR 0x1202 */ 233 /* #define GL_EMISSION 0x1600 */ 234 /* #define GL_SHININESS 0x1601 */ 235 236 /* GetLightfv */ 237 /* #define GL_AMBIENT 0x1200 */ 238 /* #define GL_DIFFUSE 0x1201 */ 239 /* #define GL_SPECULAR 0x1202 */ 240 /* #define GL_POSITION 0x1203 */ 241 242 /* GetPointerv */ 243 #define GL_VERTEX_ARRAY_POINTER 0x808E 244 #define GL_NORMAL_ARRAY_POINTER 0x808F 245 #define GL_COLOR_ARRAY_POINTER 0x8090 246 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 247 248 /* GetTexParameter */ 249 /* #define GL_TEXTURE_MAG_FILTER 0x2800 */ 250 /* #define GL_TEXTURE_MIN_FILTER 0x2801 */ 251 /* #define GL_TEXTURE_WRAP_S 0x2802 */ 252 /* #define GL_TEXTURE_WRAP_T 0x2803 */ 253 254 /* GetTexEnvfv */ 255 /* #define GL_TEXTURE_ENV_MODE 0x2200 */ 256 /* #define GL_TEXTURE_ENV_COLOR 0x2201 */ 257 258 /* HintMode */ 259 #define GL_DONT_CARE 0x1100 260 #define GL_FASTEST 0x1101 261 #define GL_NICEST 0x1102 262 263 /* HintTarget */ 264 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 265 #define GL_POINT_SMOOTH_HINT 0x0C51 266 #define GL_LINE_SMOOTH_HINT 0x0C52 267 268 /* IsEnabled */ 269 /* #define GL_LIGHTING 0x0B50 */ 270 /* #define GL_TEXTURE_2D 0x0DE1 */ 271 /* #define GL_CULL_FACE 0x0B44 */ 272 /* #define GL_ALPHA_TEST 0x0BC0 */ 273 /* #define GL_BLEND 0x0BE2 */ 274 /* #define GL_STENCIL_TEST 0x0B90 */ 275 /* #define GL_DEPTH_TEST 0x0B71 */ 276 /* #define GL_LIGHT0 0x4000 */ 277 /* #define GL_LIGHT1 0x4001 */ 278 /* #define GL_POINT_SMOOTH 0x0B10 */ 279 /* #define GL_LINE_STIPPLE 0x0B24 */ 280 /* #define GL_LINE_SMOOTH 0x0B20 */ 281 /* #define GL_SCISSOR_TEST 0x0C11 */ 282 /* #define GL_COLOR_MATERIAL 0x0B57 */ 283 /* #define GL_NORMALIZE 0x0BA1 */ 284 /* #define GL_RESCALE_NORMAL 0x803A */ 285 /* #define GL_POLYGON_OFFSET_FILL 0x8037 */ 286 /* #define GL_POLYGON_STIPPLE 0x0B42 */ 287 /* #define GL_VERTEX_ARRAY 0x8074 */ 288 /* #define GL_NORMAL_ARRAY 0x8075 */ 289 /* #define GL_COLOR_ARRAY 0x8076 */ 290 /* #define GL_TEXTURE_COORD_ARRAY 0x8078 */ 291 292 /* LightModelParameter */ 293 #define GL_LIGHT_MODEL_AMBIENT 0x0B53 294 295 /* LightParameter */ 296 #define GL_AMBIENT 0x1200 297 #define GL_DIFFUSE 0x1201 298 #define GL_SPECULAR 0x1202 299 #define GL_POSITION 0x1203 300 301 /* DataType */ 302 #define GL_BYTE 0x1400 303 #define GL_UNSIGNED_BYTE 0x1401 304 #define GL_FLOAT 0x1406 305 306 /* LogicOp */ 307 308 /* MaterialFace */ 309 /* #define GL_FRONT_AND_BACK 0x0408 */ 310 311 /* MaterialParameter */ 312 /* #define GL_AMBIENT 0x1200 */ 313 /* #define GL_DIFFUSE 0x1201 */ 314 /* #define GL_SPECULAR 0x1202 */ 315 #define GL_EMISSION 0x1600 316 #define GL_SHININESS 0x1601 317 #define GL_AMBIENT_AND_DIFFUSE 0x1602 318 319 /* MatrixMode */ 320 #define GL_MODELVIEW 0x1700 321 #define GL_PROJECTION 0x1701 322 323 /* NormalPointerType */ 324 /* #define GL_FLOAT 0x1406 */ 325 326 /* PixelFormat */ 327 #define GL_ALPHA 0x1906 328 #define GL_RGB 0x1907 329 #define GL_RGBA 0x1908 330 #define GL_LUMINANCE 0x1909 331 #define GL_LUMINANCE_ALPHA 0x190A 332 #define GL_COLOR_INDEX 0x1900 333 334 /* PixelStoreParameter */ 335 #define GL_UNPACK_ALIGNMENT 0x0CF5 336 #define GL_PACK_ALIGNMENT 0x0D05 337 338 /* PixelType */ 339 /* #define GL_UNSIGNED_BYTE 0x1401 */ 340 341 /* ReadPixels */ 342 #define GL_COLOR 0x1800 343 344 /* ShadingModel */ 345 #define GL_FLAT 0x1D00 346 #define GL_SMOOTH 0x1D01 347 348 /* StencilFunction */ 349 #define GL_NEVER 0x0200 350 #define GL_LESS 0x0201 351 #define GL_EQUAL 0x0202 352 #define GL_LEQUAL 0x0203 353 #define GL_GREATER 0x0204 354 #define GL_NOTEQUAL 0x0205 355 #define GL_GEQUAL 0x0206 356 #define GL_ALWAYS 0x0207 357 358 /* StencilOp */ 359 /* #define GL_ZERO 0 */ 360 #define GL_KEEP 0x1E00 361 #define GL_REPLACE 0x1E01 362 #define GL_INCR 0x1E02 363 #define GL_DECR 0x1E03 364 #define GL_INVERT 0x150A 365 366 /* StringName */ 367 #define GL_VENDOR 0x1F00 368 #define GL_RENDERER 0x1F01 369 #define GL_VERSION 0x1F02 370 #define GL_EXTENSIONS 0x1F03 371 372 /* TexCoordPointerType */ 373 /* #define GL_FLOAT 0x1406 */ 374 375 /* TextureEnvMode */ 376 #define GL_MODULATE 0x2100 377 #define GL_DECAL 0x2101 378 /* #define GL_BLEND 0x0BE2 */ 379 #define GL_ADD 0x0104 380 /* #define GL_REPLACE 0x1E01 */ 381 382 /* TextureEnvParameter */ 383 #define GL_TEXTURE_ENV_MODE 0x2200 384 #define GL_TEXTURE_ENV_COLOR 0x2201 385 386 /* TextureEnvTarget */ 387 #define GL_TEXTURE_ENV 0x2300 388 389 /* TextureMagFilter */ 390 #define GL_NEAREST 0x2600 391 #define GL_LINEAR 0x2601 392 393 /* TextureMinFilter */ 394 /* #define GL_NEAREST 0x2600 */ 395 /* #define GL_LINEAR 0x2601 */ 396 #define GL_NEAREST_MIPMAP_NEAREST 0x2700 397 #define GL_LINEAR_MIPMAP_NEAREST 0x2701 398 #define GL_NEAREST_MIPMAP_LINEAR 0x2702 399 #define GL_LINEAR_MIPMAP_LINEAR 0x2703 400 401 /* TextureParameterName */ 402 #define GL_TEXTURE_MAG_FILTER 0x2800 403 #define GL_TEXTURE_MIN_FILTER 0x2801 404 #define GL_TEXTURE_WRAP_S 0x2802 405 #define GL_TEXTURE_WRAP_T 0x2803 406 407 /* TextureTarget */ 408 /* #define GL_TEXTURE_2D 0x0DE1 */ 409 410 /* TextureUnit */ 411 #define GL_TEXTURE0 0x84C0 412 #define GL_TEXTURE1 0x84C1 413 #define GL_TEXTURE2 0x84C2 414 #define GL_TEXTURE3 0x84C3 415 #define GL_TEXTURE4 0x84C4 416 #define GL_TEXTURE5 0x84C5 417 #define GL_TEXTURE6 0x84C6 418 #define GL_TEXTURE7 0x84C7 419 #define GL_TEXTURE8 0x84C8 420 #define GL_TEXTURE9 0x84C9 421 #define GL_TEXTURE10 0x84CA 422 #define GL_TEXTURE11 0x84CB 423 #define GL_TEXTURE12 0x84CC 424 #define GL_TEXTURE13 0x84CD 425 #define GL_TEXTURE14 0x84CE 426 #define GL_TEXTURE15 0x84CF 427 #define GL_TEXTURE16 0x84D0 428 #define GL_TEXTURE17 0x84D1 429 #define GL_TEXTURE18 0x84D2 430 #define GL_TEXTURE19 0x84D3 431 #define GL_TEXTURE20 0x84D4 432 #define GL_TEXTURE21 0x84D5 433 #define GL_TEXTURE22 0x84D6 434 #define GL_TEXTURE23 0x84D7 435 #define GL_TEXTURE24 0x84D8 436 #define GL_TEXTURE25 0x84D9 437 #define GL_TEXTURE26 0x84DA 438 #define GL_TEXTURE27 0x84DB 439 #define GL_TEXTURE28 0x84DC 440 #define GL_TEXTURE29 0x84DD 441 #define GL_TEXTURE30 0x84DE 442 #define GL_TEXTURE31 0x84DF 443 444 /* TextureWrapMode */ 445 #define GL_REPEAT 0x2901 446 #define GL_CLAMP_TO_EDGE 0x812F 447 448 /* PixelInternalFormat */ 449 #define GL_COLOR_INDEX8_EXT 0x80E5 450 451 /* VertexPointerType */ 452 /* #define GL_FLOAT 0x1406 */ 453 454 /* Paletted Textures Extension */ 455 #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 456 #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 457 #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA 458 #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB 459 #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC 460 #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD 461 #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE 462 #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF 463 464 /*************************************************************/ 465 466 GLAPI void APIENTRY glActiveTexture (GLenum texture); 467 GLAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref); 468 GLAPI void APIENTRY glBegin(GLenum mode); 469 GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); 470 GLAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); 471 GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); 472 GLAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); 473 GLAPI void APIENTRY glClear (GLbitfield mask); 474 GLAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 475 GLAPI void APIENTRY glClearDepthf (GLclampf depth); 476 GLAPI void APIENTRY glClearStencil (GLint s); 477 GLAPI void APIENTRY glClientActiveTexture (GLenum texture); 478 GLAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 479 GLAPI void APIENTRY glColor4fv (const GLfloat *v); 480 GLAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); 481 GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 482 GLAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 483 GLAPI void APIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table); 484 GLAPI void APIENTRY glColorTableEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); 485 GLAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); 486 GLAPI void APIENTRY glCullFace (GLenum mode); 487 GLAPI void APIENTRY glDepthFunc (GLenum func); 488 GLAPI void APIENTRY glDepthMask (GLboolean flag); 489 GLAPI void APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar); 490 GLAPI void APIENTRY glDisable (GLenum cap); 491 GLAPI void APIENTRY glDisableClientState (GLenum array); 492 GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); 493 GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); 494 GLAPI void APIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 495 GLAPI void APIENTRY glEnable (GLenum cap); 496 GLAPI void APIENTRY glEnableClientState (GLenum array); 497 GLAPI void APIENTRY glEnd (void); 498 GLAPI void APIENTRY glEndList (void); 499 GLAPI void APIENTRY glFinish (void); 500 GLAPI void APIENTRY glFlush (void); 501 GLAPI void APIENTRY glFrontFace (GLenum mode); 502 GLAPI void APIENTRY glFrustumf (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); 503 GLAPI GLuint APIENTRY glGenLists (GLsizei range); 504 GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); 505 GLAPI GLenum APIENTRY glGetError (void); 506 GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); 507 GLAPI void APIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, GLvoid *table); 508 GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params); 509 GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params); 510 GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params); 511 GLAPI void APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); 512 GLAPI void APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); 513 GLAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid * *params); 514 GLAPI void APIENTRY glGetPolygonStipple (GLubyte *mask); 515 GLAPI void APIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); 516 GLAPI void APIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); 517 GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); 518 GLAPI const GLubyte * APIENTRY glGetString (GLenum name); 519 GLAPI void APIENTRY glHint (GLenum target, GLenum mode); 520 GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); 521 GLAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); 522 GLAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param); 523 GLAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params); 524 GLAPI void APIENTRY glLineStipple (GLint factor, GLushort pattern); 525 GLAPI void APIENTRY glLineWidth (GLfloat width); 526 GLAPI void APIENTRY glListBase (GLuint base); 527 GLAPI void APIENTRY glLoadIdentity (void); 528 GLAPI void APIENTRY glLoadMatrixf (const GLfloat *m); 529 GLAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); 530 GLAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); 531 GLAPI void APIENTRY glMatrixMode (GLenum mode); 532 GLAPI void APIENTRY glMultMatrixf (const GLfloat *m); 533 GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t); 534 GLAPI void APIENTRY glNewList (GLuint list, GLenum mode); 535 GLAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); 536 GLAPI void APIENTRY glNormal3fv (const GLfloat *v); 537 GLAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); 538 GLAPI void APIENTRY glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); 539 GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); 540 GLAPI void APIENTRY glPointSize (GLfloat size); 541 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); 542 GLAPI void APIENTRY glPolygonStipple (const GLubyte *mask); 543 GLAPI void APIENTRY glPopMatrix (void); 544 GLAPI void APIENTRY glPushMatrix (void); 545 GLAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); 546 GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); 547 GLAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); 548 GLAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); 549 GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); 550 GLAPI void APIENTRY glShadeModel (GLenum mode); 551 GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); 552 GLAPI void APIENTRY glStencilMask (GLuint mask); 553 GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); 554 GLAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 555 GLAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); 556 GLAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); 557 GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 558 GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); 559 GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 560 GLAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); 561 GLAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y); 562 GLAPI void APIENTRY glVertex2fv (const GLfloat *v); 563 GLAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); 564 GLAPI void APIENTRY glVertex3fv (const GLfloat *v); 565 GLAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 566 GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); 567 568 #ifdef __cplusplus 569 } 570 #endif 571 572 #endif /* __gl_h_ */ 573 574