comparison include/SDL_opengl.h @ 1205:2ab21d9a20da

Updated to the latest glext.h
author Sam Lantinga <slouken@libsdl.org>
date Wed, 14 Dec 2005 05:55:17 +0000
parents 66761191fc11
children c9b51268668f
comparison
equal deleted inserted replaced
1204:f9794ee91dfc 1205:2ab21d9a20da
77 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A 77 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
78 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 78 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
79 ** 79 **
80 ** Original Code. The Original Code is: OpenGL Sample Implementation, 80 ** Original Code. The Original Code is: OpenGL Sample Implementation,
81 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, 81 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
82 ** Inc. The Original Code is Copyright (c) 1991-2002 Silicon Graphics, Inc. 82 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
83 ** Copyright in any portions created by third parties is as indicated 83 ** Copyright in any portions created by third parties is as indicated
84 ** elsewhere herein. All Rights Reserved. 84 ** elsewhere herein. All Rights Reserved.
85 ** 85 **
86 ** Additional Notice Provisions: This software was created using the 86 ** Additional Notice Provisions: This software was created using the
87 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has 87 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
105 #endif 105 #endif
106 106
107 /*************************************************************/ 107 /*************************************************************/
108 108
109 /* Header file version number, required by OpenGL ABI for Linux */ 109 /* Header file version number, required by OpenGL ABI for Linux */
110 /* glext.h last updated 2003/1/12 */ 110 /* glext.h last updated 2005/06/20 */
111 /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */ 111 /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
112 #define GL_GLEXT_VERSION 21 112 #define GL_GLEXT_VERSION 29
113 113
114 #ifndef GL_VERSION_1_2 114 #ifndef GL_VERSION_1_2
115 #define GL_UNSIGNED_BYTE_3_3_2 0x8032 115 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
116 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 116 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
117 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 117 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
304 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 304 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
305 #define GL_TEXTURE_COMPRESSED 0x86A1 305 #define GL_TEXTURE_COMPRESSED 0x86A1
306 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 306 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
307 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 307 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
308 #define GL_CLAMP_TO_BORDER 0x812D 308 #define GL_CLAMP_TO_BORDER 0x812D
309 #define GL_CLAMP_TO_BORDER_SGIS 0x812D
310 #define GL_COMBINE 0x8570 309 #define GL_COMBINE 0x8570
311 #define GL_COMBINE_RGB 0x8571 310 #define GL_COMBINE_RGB 0x8571
312 #define GL_COMBINE_ALPHA 0x8572 311 #define GL_COMBINE_ALPHA 0x8572
313 #define GL_SOURCE0_RGB 0x8580 312 #define GL_SOURCE0_RGB 0x8580
314 #define GL_SOURCE1_RGB 0x8581 313 #define GL_SOURCE1_RGB 0x8581
410 #define GL_STATIC_COPY 0x88E6 409 #define GL_STATIC_COPY 0x88E6
411 #define GL_DYNAMIC_DRAW 0x88E8 410 #define GL_DYNAMIC_DRAW 0x88E8
412 #define GL_DYNAMIC_READ 0x88E9 411 #define GL_DYNAMIC_READ 0x88E9
413 #define GL_DYNAMIC_COPY 0x88EA 412 #define GL_DYNAMIC_COPY 0x88EA
414 #define GL_SAMPLES_PASSED 0x8914 413 #define GL_SAMPLES_PASSED 0x8914
415 #define GL_FOG_COORD_SOURCE GL_FOG_COORDINATE_SOURCE 414 #define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
416 #define GL_FOG_COORD GL_FOG_COORDINATE 415 #define GL_FOG_COORD GL_FOG_COORDINATE
417 #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE 416 #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
418 #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE 417 #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
419 #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE 418 #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
420 #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER 419 #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
424 #define GL_SRC1_RGB GL_SOURCE1_RGB 423 #define GL_SRC1_RGB GL_SOURCE1_RGB
425 #define GL_SRC2_RGB GL_SOURCE2_RGB 424 #define GL_SRC2_RGB GL_SOURCE2_RGB
426 #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA 425 #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA
427 #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA 426 #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA
428 #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA 427 #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA
428 #endif
429
430 #ifndef GL_VERSION_2_0
431 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
432 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
433 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
434 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
435 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
436 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
437 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
438 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
439 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
440 #define GL_STENCIL_BACK_FUNC 0x8800
441 #define GL_STENCIL_BACK_FAIL 0x8801
442 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
443 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
444 #define GL_MAX_DRAW_BUFFERS 0x8824
445 #define GL_DRAW_BUFFER0 0x8825
446 #define GL_DRAW_BUFFER1 0x8826
447 #define GL_DRAW_BUFFER2 0x8827
448 #define GL_DRAW_BUFFER3 0x8828
449 #define GL_DRAW_BUFFER4 0x8829
450 #define GL_DRAW_BUFFER5 0x882A
451 #define GL_DRAW_BUFFER6 0x882B
452 #define GL_DRAW_BUFFER7 0x882C
453 #define GL_DRAW_BUFFER8 0x882D
454 #define GL_DRAW_BUFFER9 0x882E
455 #define GL_DRAW_BUFFER10 0x882F
456 #define GL_DRAW_BUFFER11 0x8830
457 #define GL_DRAW_BUFFER12 0x8831
458 #define GL_DRAW_BUFFER13 0x8832
459 #define GL_DRAW_BUFFER14 0x8833
460 #define GL_DRAW_BUFFER15 0x8834
461 #define GL_BLEND_EQUATION_ALPHA 0x883D
462 #define GL_POINT_SPRITE 0x8861
463 #define GL_COORD_REPLACE 0x8862
464 #define GL_MAX_VERTEX_ATTRIBS 0x8869
465 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
466 #define GL_MAX_TEXTURE_COORDS 0x8871
467 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
468 #define GL_FRAGMENT_SHADER 0x8B30
469 #define GL_VERTEX_SHADER 0x8B31
470 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
471 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
472 #define GL_MAX_VARYING_FLOATS 0x8B4B
473 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
474 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
475 #define GL_SHADER_TYPE 0x8B4F
476 #define GL_FLOAT_VEC2 0x8B50
477 #define GL_FLOAT_VEC3 0x8B51
478 #define GL_FLOAT_VEC4 0x8B52
479 #define GL_INT_VEC2 0x8B53
480 #define GL_INT_VEC3 0x8B54
481 #define GL_INT_VEC4 0x8B55
482 #define GL_BOOL 0x8B56
483 #define GL_BOOL_VEC2 0x8B57
484 #define GL_BOOL_VEC3 0x8B58
485 #define GL_BOOL_VEC4 0x8B59
486 #define GL_FLOAT_MAT2 0x8B5A
487 #define GL_FLOAT_MAT3 0x8B5B
488 #define GL_FLOAT_MAT4 0x8B5C
489 #define GL_SAMPLER_1D 0x8B5D
490 #define GL_SAMPLER_2D 0x8B5E
491 #define GL_SAMPLER_3D 0x8B5F
492 #define GL_SAMPLER_CUBE 0x8B60
493 #define GL_SAMPLER_1D_SHADOW 0x8B61
494 #define GL_SAMPLER_2D_SHADOW 0x8B62
495 #define GL_DELETE_STATUS 0x8B80
496 #define GL_COMPILE_STATUS 0x8B81
497 #define GL_LINK_STATUS 0x8B82
498 #define GL_VALIDATE_STATUS 0x8B83
499 #define GL_INFO_LOG_LENGTH 0x8B84
500 #define GL_ATTACHED_SHADERS 0x8B85
501 #define GL_ACTIVE_UNIFORMS 0x8B86
502 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
503 #define GL_SHADER_SOURCE_LENGTH 0x8B88
504 #define GL_ACTIVE_ATTRIBUTES 0x8B89
505 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
506 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
507 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
508 #define GL_CURRENT_PROGRAM 0x8B8D
509 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
510 #define GL_LOWER_LEFT 0x8CA1
511 #define GL_UPPER_LEFT 0x8CA2
512 #define GL_STENCIL_BACK_REF 0x8CA3
513 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
514 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
429 #endif 515 #endif
430 516
431 #ifndef GL_ARB_multitexture 517 #ifndef GL_ARB_multitexture
432 #define GL_TEXTURE0_ARB 0x84C0 518 #define GL_TEXTURE0_ARB 0x84C0
433 #define GL_TEXTURE1_ARB 0x84C1 519 #define GL_TEXTURE1_ARB 0x84C1
802 #define GL_BOOL_VEC3_ARB 0x8B58 888 #define GL_BOOL_VEC3_ARB 0x8B58
803 #define GL_BOOL_VEC4_ARB 0x8B59 889 #define GL_BOOL_VEC4_ARB 0x8B59
804 #define GL_FLOAT_MAT2_ARB 0x8B5A 890 #define GL_FLOAT_MAT2_ARB 0x8B5A
805 #define GL_FLOAT_MAT3_ARB 0x8B5B 891 #define GL_FLOAT_MAT3_ARB 0x8B5B
806 #define GL_FLOAT_MAT4_ARB 0x8B5C 892 #define GL_FLOAT_MAT4_ARB 0x8B5C
893 #define GL_SAMPLER_1D_ARB 0x8B5D
894 #define GL_SAMPLER_2D_ARB 0x8B5E
895 #define GL_SAMPLER_3D_ARB 0x8B5F
896 #define GL_SAMPLER_CUBE_ARB 0x8B60
897 #define GL_SAMPLER_1D_SHADOW_ARB 0x8B61
898 #define GL_SAMPLER_2D_SHADOW_ARB 0x8B62
899 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
900 #define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
807 #define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 901 #define GL_OBJECT_DELETE_STATUS_ARB 0x8B80
808 #define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 902 #define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
809 #define GL_OBJECT_LINK_STATUS_ARB 0x8B82 903 #define GL_OBJECT_LINK_STATUS_ARB 0x8B82
810 #define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 904 #define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83
811 #define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 905 #define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
826 #endif 920 #endif
827 921
828 #ifndef GL_ARB_fragment_shader 922 #ifndef GL_ARB_fragment_shader
829 #define GL_FRAGMENT_SHADER_ARB 0x8B30 923 #define GL_FRAGMENT_SHADER_ARB 0x8B30
830 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 924 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
925 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
831 #endif 926 #endif
832 927
833 #ifndef GL_ARB_shading_language_100 928 #ifndef GL_ARB_shading_language_100
929 #define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C
834 #endif 930 #endif
835 931
836 #ifndef GL_ARB_texture_non_power_of_two 932 #ifndef GL_ARB_texture_non_power_of_two
837 #endif 933 #endif
838 934
839 #ifndef GL_ARB_point_sprite 935 #ifndef GL_ARB_point_sprite
840 #define GL_POINT_SPRITE_ARB 0x8861 936 #define GL_POINT_SPRITE_ARB 0x8861
841 #define GL_COORD_REPLACE_ARB 0x8862 937 #define GL_COORD_REPLACE_ARB 0x8862
938 #endif
939
940 #ifndef GL_ARB_fragment_program_shadow
941 #endif
942
943 #ifndef GL_ARB_draw_buffers
944 #define GL_MAX_DRAW_BUFFERS_ARB 0x8824
945 #define GL_DRAW_BUFFER0_ARB 0x8825
946 #define GL_DRAW_BUFFER1_ARB 0x8826
947 #define GL_DRAW_BUFFER2_ARB 0x8827
948 #define GL_DRAW_BUFFER3_ARB 0x8828
949 #define GL_DRAW_BUFFER4_ARB 0x8829
950 #define GL_DRAW_BUFFER5_ARB 0x882A
951 #define GL_DRAW_BUFFER6_ARB 0x882B
952 #define GL_DRAW_BUFFER7_ARB 0x882C
953 #define GL_DRAW_BUFFER8_ARB 0x882D
954 #define GL_DRAW_BUFFER9_ARB 0x882E
955 #define GL_DRAW_BUFFER10_ARB 0x882F
956 #define GL_DRAW_BUFFER11_ARB 0x8830
957 #define GL_DRAW_BUFFER12_ARB 0x8831
958 #define GL_DRAW_BUFFER13_ARB 0x8832
959 #define GL_DRAW_BUFFER14_ARB 0x8833
960 #define GL_DRAW_BUFFER15_ARB 0x8834
961 #endif
962
963 #ifndef GL_ARB_texture_rectangle
964 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
965 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
966 #define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7
967 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
968 #endif
969
970 #ifndef GL_ARB_color_buffer_float
971 #define GL_RGBA_FLOAT_MODE_ARB 0x8820
972 #define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
973 #define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
974 #define GL_CLAMP_READ_COLOR_ARB 0x891C
975 #define GL_FIXED_ONLY_ARB 0x891D
976 #endif
977
978 #ifndef GL_ARB_half_float_pixel
979 #define GL_HALF_FLOAT_ARB 0x140B
980 #endif
981
982 #ifndef GL_ARB_texture_float
983 #define GL_TEXTURE_RED_TYPE_ARB 0x8C10
984 #define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11
985 #define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12
986 #define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13
987 #define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
988 #define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15
989 #define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16
990 #define GL_UNSIGNED_NORMALIZED_ARB 0x8C17
991 #define GL_RGBA32F_ARB 0x8814
992 #define GL_RGB32F_ARB 0x8815
993 #define GL_ALPHA32F_ARB 0x8816
994 #define GL_INTENSITY32F_ARB 0x8817
995 #define GL_LUMINANCE32F_ARB 0x8818
996 #define GL_LUMINANCE_ALPHA32F_ARB 0x8819
997 #define GL_RGBA16F_ARB 0x881A
998 #define GL_RGB16F_ARB 0x881B
999 #define GL_ALPHA16F_ARB 0x881C
1000 #define GL_INTENSITY16F_ARB 0x881D
1001 #define GL_LUMINANCE16F_ARB 0x881E
1002 #define GL_LUMINANCE_ALPHA16F_ARB 0x881F
1003 #endif
1004
1005 #ifndef GL_ARB_pixel_buffer_object
1006 #define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
1007 #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
1008 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
1009 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
842 #endif 1010 #endif
843 1011
844 #ifndef GL_EXT_abgr 1012 #ifndef GL_EXT_abgr
845 #define GL_ABGR_EXT 0x8000 1013 #define GL_ABGR_EXT 0x8000
846 #endif 1014 #endif
1167 #define GL_TEXTURE_GEQUAL_R_SGIX 0x819D 1335 #define GL_TEXTURE_GEQUAL_R_SGIX 0x819D
1168 #endif 1336 #endif
1169 1337
1170 #ifndef GL_SGIS_texture_edge_clamp 1338 #ifndef GL_SGIS_texture_edge_clamp
1171 #define GL_CLAMP_TO_EDGE_SGIS 0x812F 1339 #define GL_CLAMP_TO_EDGE_SGIS 0x812F
1340 #endif
1341
1342 #ifndef GL_SGIS_texture_border_clamp
1343 #define GL_CLAMP_TO_BORDER_SGIS 0x812D
1172 #endif 1344 #endif
1173 1345
1174 #ifndef GL_EXT_blend_minmax 1346 #ifndef GL_EXT_blend_minmax
1175 #define GL_FUNC_ADD_EXT 0x8006 1347 #define GL_FUNC_ADD_EXT 0x8006
1176 #define GL_MIN_EXT 0x8007 1348 #define GL_MIN_EXT 0x8007
2712 #define GL_DRAW_BUFFER13_ATI 0x8832 2884 #define GL_DRAW_BUFFER13_ATI 0x8832
2713 #define GL_DRAW_BUFFER14_ATI 0x8833 2885 #define GL_DRAW_BUFFER14_ATI 0x8833
2714 #define GL_DRAW_BUFFER15_ATI 0x8834 2886 #define GL_DRAW_BUFFER15_ATI 0x8834
2715 #endif 2887 #endif
2716 2888
2889 #ifndef GL_ATI_pixel_format_float
2890 #define GL_TYPE_RGBA_FLOAT_ATI 0x8820
2891 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
2892 #endif
2893
2717 #ifndef GL_ATI_texture_env_combine3 2894 #ifndef GL_ATI_texture_env_combine3
2718 #define GL_MODULATE_ADD_ATI 0x8744 2895 #define GL_MODULATE_ADD_ATI 0x8744
2719 #define GL_MODULATE_SIGNED_ADD_ATI 0x8745 2896 #define GL_MODULATE_SIGNED_ADD_ATI 0x8745
2720 #define GL_MODULATE_SUBTRACT_ATI 0x8746 2897 #define GL_MODULATE_SUBTRACT_ATI 0x8746
2721 #endif 2898 #endif
2798 #endif 2975 #endif
2799 2976
2800 #ifndef GL_ATI_vertex_attrib_array_object 2977 #ifndef GL_ATI_vertex_attrib_array_object
2801 #endif 2978 #endif
2802 2979
2980 #ifndef GL_OES_read_format
2981 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
2982 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
2983 #endif
2984
2803 #ifndef GL_EXT_depth_bounds_test 2985 #ifndef GL_EXT_depth_bounds_test
2804 #define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 2986 #define GL_DEPTH_BOUNDS_TEST_EXT 0x8890
2805 #define GL_DEPTH_BOUNDS_EXT 0x8891 2987 #define GL_DEPTH_BOUNDS_EXT 0x8891
2806 #endif 2988 #endif
2807 2989
2824 #define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA 3006 #define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA
2825 #define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB 3007 #define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB
2826 #define GL_YCBCR_MESA 0x8757 3008 #define GL_YCBCR_MESA 0x8757
2827 #endif 3009 #endif
2828 3010
3011 #ifndef GL_EXT_pixel_buffer_object
3012 #define GL_PIXEL_PACK_BUFFER_EXT 0x88EB
3013 #define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC
3014 #define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED
3015 #define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
3016 #endif
3017
3018 #ifndef GL_NV_fragment_program_option
3019 #endif
3020
3021 #ifndef GL_NV_fragment_program2
3022 #define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
3023 #define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5
3024 #define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6
3025 #define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7
3026 #define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8
3027 #endif
3028
3029 #ifndef GL_NV_vertex_program2_option
3030 /* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */
3031 /* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */
3032 #endif
3033
3034 #ifndef GL_NV_vertex_program3
3035 /* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */
3036 #endif
3037
3038 #ifndef GL_EXT_framebuffer_object
3039 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
3040 #define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8
3041 #define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6
3042 #define GL_RENDERBUFFER_BINDING_EXT 0x8CA7
3043 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
3044 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
3045 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
3046 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
3047 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
3048 #define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5
3049 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
3050 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
3051 #define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8
3052 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
3053 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
3054 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
3055 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
3056 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD
3057 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
3058 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
3059 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
3060 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
3061 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
3062 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
3063 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
3064 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
3065 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
3066 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
3067 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
3068 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
3069 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
3070 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
3071 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
3072 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
3073 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
3074 #define GL_DEPTH_ATTACHMENT_EXT 0x8D00
3075 #define GL_STENCIL_ATTACHMENT_EXT 0x8D20
3076 #define GL_FRAMEBUFFER_EXT 0x8D40
3077 #define GL_RENDERBUFFER_EXT 0x8D41
3078 #define GL_RENDERBUFFER_WIDTH_EXT 0x8D42
3079 #define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43
3080 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
3081 #define GL_STENCIL_INDEX1_EXT 0x8D46
3082 #define GL_STENCIL_INDEX4_EXT 0x8D47
3083 #define GL_STENCIL_INDEX8_EXT 0x8D48
3084 #define GL_STENCIL_INDEX16_EXT 0x8D49
3085 #define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50
3086 #define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51
3087 #define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52
3088 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53
3089 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54
3090 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55
3091 #endif
3092
3093 #ifndef GL_GREMEDY_string_marker
3094 #endif
3095
2829 3096
2830 /*************************************************************/ 3097 /*************************************************************/
2831 3098
2832 #include <stddef.h> 3099 #include <stddef.h>
3100 #ifndef GL_VERSION_2_0
3101 /* GL type for program/shader text */
3102 typedef char GLchar; /* native character */
3103 #endif
3104
2833 #ifndef GL_VERSION_1_5 3105 #ifndef GL_VERSION_1_5
2834 /* GL types for handling large vertex buffer objects */ 3106 /* GL types for handling large vertex buffer objects */
2835 typedef ptrdiff_t GLintptr; 3107 typedef ptrdiff_t GLintptr;
2836 typedef ptrdiff_t GLsizeiptr; 3108 typedef ptrdiff_t GLsizeiptr;
2837 #endif 3109 #endif
2841 typedef ptrdiff_t GLintptrARB; 3113 typedef ptrdiff_t GLintptrARB;
2842 typedef ptrdiff_t GLsizeiptrARB; 3114 typedef ptrdiff_t GLsizeiptrARB;
2843 #endif 3115 #endif
2844 3116
2845 #ifndef GL_ARB_shader_objects 3117 #ifndef GL_ARB_shader_objects
2846 /* GL types for handling shader object handles and characters */ 3118 /* GL types for handling shader object handles and program/shader text */
2847 typedef char GLcharARB; /* native character */ 3119 typedef char GLcharARB; /* native character */
2848 typedef unsigned int GLhandleARB; /* shader object handle */ 3120 typedef unsigned int GLhandleARB; /* shader object handle */
2849 #endif 3121 #endif
2850 3122
3123 /* GL types for "half" precision (s10e5) float data in host memory */
3124 #ifndef GL_ARB_half_float_pixel
3125 typedef unsigned short GLhalfARB;
3126 #endif
3127
2851 #ifndef GL_NV_half_float 3128 #ifndef GL_NV_half_float
2852 /* GL type for representing NVIDIA "half" floating point type in host memory */
2853 typedef unsigned short GLhalfNV; 3129 typedef unsigned short GLhalfNV;
2854 #endif 3130 #endif
2855 3131
2856 #ifndef GL_VERSION_1_2 3132 #ifndef GL_VERSION_1_2
2857 #define GL_VERSION_1_2 1 3133 #define GL_VERSION_1_2 1
3171 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); 3447 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
3172 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); 3448 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3173 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); 3449 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
3174 #endif 3450 #endif
3175 3451
3452 #ifndef GL_VERSION_2_0
3453 #define GL_VERSION_2_0 1
3454 #ifdef GL_GLEXT_PROTOTYPES
3455 GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum);
3456 GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *);
3457 GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
3458 GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
3459 GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint);
3460 GLAPI void APIENTRY glAttachShader (GLuint, GLuint);
3461 GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *);
3462 GLAPI void APIENTRY glCompileShader (GLuint);
3463 GLAPI GLuint APIENTRY glCreateProgram (void);
3464 GLAPI GLuint APIENTRY glCreateShader (GLenum);
3465 GLAPI void APIENTRY glDeleteProgram (GLuint);
3466 GLAPI void APIENTRY glDeleteShader (GLuint);
3467 GLAPI void APIENTRY glDetachShader (GLuint, GLuint);
3468 GLAPI void APIENTRY glDisableVertexAttribArray (GLuint);
3469 GLAPI void APIENTRY glEnableVertexAttribArray (GLuint);
3470 GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
3471 GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
3472 GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *);
3473 GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *);
3474 GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *);
3475 GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
3476 GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *);
3477 GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *);
3478 GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *);
3479 GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *);
3480 GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *);
3481 GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *);
3482 GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
3483 GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
3484 GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *);
3485 GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *);
3486 GLAPI GLboolean APIENTRY glIsProgram (GLuint);
3487 GLAPI GLboolean APIENTRY glIsShader (GLuint);
3488 GLAPI void APIENTRY glLinkProgram (GLuint);
3489 GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *);
3490 GLAPI void APIENTRY glUseProgram (GLuint);
3491 GLAPI void APIENTRY glUniform1f (GLint, GLfloat);
3492 GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat);
3493 GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
3494 GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat);
3495 GLAPI void APIENTRY glUniform1i (GLint, GLint);
3496 GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint);
3497 GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint);
3498 GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint);
3499 GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *);
3500 GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *);
3501 GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *);
3502 GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *);
3503 GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *);
3504 GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *);
3505 GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *);
3506 GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *);
3507 GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *);
3508 GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *);
3509 GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *);
3510 GLAPI void APIENTRY glValidateProgram (GLuint);
3511 GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble);
3512 GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *);
3513 GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat);
3514 GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *);
3515 GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort);
3516 GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *);
3517 GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble);
3518 GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *);
3519 GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat);
3520 GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *);
3521 GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort);
3522 GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *);
3523 GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble);
3524 GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *);
3525 GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
3526 GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *);
3527 GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
3528 GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *);
3529 GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *);
3530 GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *);
3531 GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *);
3532 GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
3533 GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *);
3534 GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *);
3535 GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *);
3536 GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *);
3537 GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
3538 GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *);
3539 GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
3540 GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *);
3541 GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *);
3542 GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort);
3543 GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *);
3544 GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *);
3545 GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *);
3546 GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *);
3547 GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *);
3548 #endif /* GL_GLEXT_PROTOTYPES */
3549 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
3550 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
3551 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
3552 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
3553 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
3554 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
3555 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
3556 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
3557 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
3558 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
3559 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
3560 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
3561 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
3562 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
3563 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
3564 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3565 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3566 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
3567 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
3568 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
3569 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3570 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
3571 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3572 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
3573 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
3574 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
3575 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
3576 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
3577 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
3578 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
3579 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
3580 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
3581 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
3582 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
3583 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
3584 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
3585 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
3586 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
3587 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
3588 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
3589 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
3590 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
3591 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
3592 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
3593 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3594 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3595 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3596 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3597 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
3598 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
3599 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
3600 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
3601 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3602 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3603 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3604 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
3605 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
3606 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
3607 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
3608 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
3609 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
3610 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
3611 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
3612 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
3613 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
3614 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
3615 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
3616 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
3617 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
3618 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
3619 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
3620 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
3621 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
3622 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
3623 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
3624 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
3625 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
3626 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
3627 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
3628 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
3629 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
3630 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
3631 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3632 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
3633 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3634 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
3635 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
3636 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
3637 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
3638 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
3639 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
3640 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
3641 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
3642 #endif
3643
3176 #ifndef GL_ARB_multitexture 3644 #ifndef GL_ARB_multitexture
3177 #define GL_ARB_multitexture 1 3645 #define GL_ARB_multitexture 1
3178 #ifdef GL_GLEXT_PROTOTYPES 3646 #ifdef GL_GLEXT_PROTOTYPES
3179 GLAPI void APIENTRY glActiveTextureARB (GLenum); 3647 GLAPI void APIENTRY glActiveTextureARB (GLenum);
3180 GLAPI void APIENTRY glClientActiveTextureARB (GLenum); 3648 GLAPI void APIENTRY glClientActiveTextureARB (GLenum);
3363 3831
3364 #ifndef GL_ARB_texture_env_dot3 3832 #ifndef GL_ARB_texture_env_dot3
3365 #define GL_ARB_texture_env_dot3 1 3833 #define GL_ARB_texture_env_dot3 1
3366 #endif 3834 #endif
3367 3835
3368 #ifndef GL_ARB_texture_mirror_repeat 3836 #ifndef GL_ARB_texture_mirrored_repeat
3369 #define GL_ARB_texture_mirror_repeat 1 3837 #define GL_ARB_texture_mirrored_repeat 1
3370 #endif 3838 #endif
3371 3839
3372 #ifndef GL_ARB_depth_texture 3840 #ifndef GL_ARB_depth_texture
3373 #define GL_ARB_depth_texture 1 3841 #define GL_ARB_depth_texture 1
3374 #endif 3842 #endif
3712 #define GL_ARB_texture_non_power_of_two 1 4180 #define GL_ARB_texture_non_power_of_two 1
3713 #endif 4181 #endif
3714 4182
3715 #ifndef GL_ARB_point_sprite 4183 #ifndef GL_ARB_point_sprite
3716 #define GL_ARB_point_sprite 1 4184 #define GL_ARB_point_sprite 1
4185 #endif
4186
4187 #ifndef GL_ARB_fragment_program_shadow
4188 #define GL_ARB_fragment_program_shadow 1
4189 #endif
4190
4191 #ifndef GL_ARB_draw_buffers
4192 #define GL_ARB_draw_buffers 1
4193 #ifdef GL_GLEXT_PROTOTYPES
4194 GLAPI void APIENTRY glDrawBuffersARB (GLsizei, const GLenum *);
4195 #endif /* GL_GLEXT_PROTOTYPES */
4196 typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
4197 #endif
4198
4199 #ifndef GL_ARB_texture_rectangle
4200 #define GL_ARB_texture_rectangle 1
4201 #endif
4202
4203 #ifndef GL_ARB_color_buffer_float
4204 #define GL_ARB_color_buffer_float 1
4205 #ifdef GL_GLEXT_PROTOTYPES
4206 GLAPI void APIENTRY glClampColorARB (GLenum, GLenum);
4207 #endif /* GL_GLEXT_PROTOTYPES */
4208 typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
4209 #endif
4210
4211 #ifndef GL_ARB_half_float_pixel
4212 #define GL_ARB_half_float_pixel 1
4213 #endif
4214
4215 #ifndef GL_ARB_texture_float
4216 #define GL_ARB_texture_float 1
4217 #endif
4218
4219 #ifndef GL_ARB_pixel_buffer_object
4220 #define GL_ARB_pixel_buffer_object 1
3717 #endif 4221 #endif
3718 4222
3719 #ifndef GL_EXT_abgr 4223 #ifndef GL_EXT_abgr
3720 #define GL_EXT_abgr 1 4224 #define GL_EXT_abgr 1
3721 #endif 4225 #endif
5740 GLAPI void APIENTRY glDrawBuffersATI (GLsizei, const GLenum *); 6244 GLAPI void APIENTRY glDrawBuffersATI (GLsizei, const GLenum *);
5741 #endif /* GL_GLEXT_PROTOTYPES */ 6245 #endif /* GL_GLEXT_PROTOTYPES */
5742 typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); 6246 typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
5743 #endif 6247 #endif
5744 6248
6249 #ifndef GL_ATI_pixel_format_float
6250 #define GL_ATI_pixel_format_float 1
6251 /* This is really a WGL extension, but defines some associated GL enums.
6252 * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string.
6253 */
6254 #endif
6255
5745 #ifndef GL_ATI_texture_env_combine3 6256 #ifndef GL_ATI_texture_env_combine3
5746 #define GL_ATI_texture_env_combine3 1 6257 #define GL_ATI_texture_env_combine3 1
5747 #endif 6258 #endif
5748 6259
5749 #ifndef GL_ATI_texture_float 6260 #ifndef GL_ATI_texture_float
5929 typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); 6440 typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
5930 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); 6441 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
5931 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); 6442 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
5932 #endif 6443 #endif
5933 6444
6445 #ifndef GL_OES_read_format
6446 #define GL_OES_read_format 1
6447 #endif
6448
5934 #ifndef GL_EXT_depth_bounds_test 6449 #ifndef GL_EXT_depth_bounds_test
5935 #define GL_EXT_depth_bounds_test 1 6450 #define GL_EXT_depth_bounds_test 1
5936 #ifdef GL_GLEXT_PROTOTYPES 6451 #ifdef GL_GLEXT_PROTOTYPES
5937 GLAPI void APIENTRY glDepthBoundsEXT (GLclampd, GLclampd); 6452 GLAPI void APIENTRY glDepthBoundsEXT (GLclampd, GLclampd);
5938 #endif /* GL_GLEXT_PROTOTYPES */ 6453 #endif /* GL_GLEXT_PROTOTYPES */
5957 6472
5958 #ifndef GL_MESA_ycbcr_texture 6473 #ifndef GL_MESA_ycbcr_texture
5959 #define GL_MESA_ycbcr_texture 1 6474 #define GL_MESA_ycbcr_texture 1
5960 #endif 6475 #endif
5961 6476
6477 #ifndef GL_EXT_pixel_buffer_object
6478 #define GL_EXT_pixel_buffer_object 1
6479 #endif
6480
6481 #ifndef GL_NV_fragment_program_option
6482 #define GL_NV_fragment_program_option 1
6483 #endif
6484
6485 #ifndef GL_NV_fragment_program2
6486 #define GL_NV_fragment_program2 1
6487 #endif
6488
6489 #ifndef GL_NV_vertex_program2_option
6490 #define GL_NV_vertex_program2_option 1
6491 #endif
6492
6493 #ifndef GL_NV_vertex_program3
6494 #define GL_NV_vertex_program3 1
6495 #endif
6496
6497 #ifndef GL_EXT_framebuffer_object
6498 #define GL_EXT_framebuffer_object 1
6499 #ifdef GL_GLEXT_PROTOTYPES
6500 GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint);
6501 GLAPI void APIENTRY glBindRenderbufferEXT (GLenum, GLuint);
6502 GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei, const GLuint *);
6503 GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei, GLuint *);
6504 GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum, GLenum, GLsizei, GLsizei);
6505 GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum, GLenum, GLint *);
6506 GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint);
6507 GLAPI void APIENTRY glBindFramebufferEXT (GLenum, GLuint);
6508 GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei, const GLuint *);
6509 GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei, GLuint *);
6510 GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum);
6511 GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum, GLenum, GLenum, GLuint, GLint);
6512 GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum, GLenum, GLenum, GLuint, GLint);
6513 GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLint);
6514 GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum, GLenum, GLenum, GLuint);
6515 GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum, GLenum, GLenum, GLint *);
6516 GLAPI void APIENTRY glGenerateMipmapEXT (GLenum);
6517 #endif /* GL_GLEXT_PROTOTYPES */
6518 typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
6519 typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
6520 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
6521 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
6522 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
6523 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
6524 typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
6525 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
6526 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
6527 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
6528 typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
6529 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
6530 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
6531 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
6532 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
6533 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
6534 typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
6535 #endif
6536
6537 #ifndef GL_GREMEDY_string_marker
6538 #define GL_GREMEDY_string_marker 1
6539 #ifdef GL_GLEXT_PROTOTYPES
6540 GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei, const GLvoid *);
6541 #endif /* GL_GLEXT_PROTOTYPES */
6542 typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string);
6543 #endif
6544
5962 6545
5963 #ifdef __cplusplus 6546 #ifdef __cplusplus
5964 } 6547 }
5965 #endif 6548 #endif
5966 6549