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