2 * (C) Copyright IBM Corporation 2002, 2004
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * on the rights to use, copy, modify, merge, publish, distribute, sub
9 * license, and/or sell copies of the Software, and to permit persons to whom
10 * the Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
19 * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22 * USE OR OTHER DEALINGS IN THE SOFTWARE.
26 * \file glxextensions.h
28 * \author Ian Romanick <idr@us.ibm.com>
30 /* $XFree86: xc/lib/GL/glx/glxextensions.h,v 1.2tsi Exp $ */
32 #ifndef GLX_GLXEXTENSIONS_H
33 #define GLX_GLXEXTENSIONS_H
36 ARB_get_proc_address_bit
= 0,
38 ARB_render_texture_bit
,
39 ATI_pixel_format_float_bit
,
41 EXT_visual_rating_bit
,
42 EXT_import_context_bit
,
44 MESA_allocate_memory_bit
, /* Replaces MESA_agp_offset & NV_vertex_array_range */
45 MESA_copy_sub_buffer_bit
,
47 MESA_pixmap_colormap_bit
,
48 MESA_release_buffers_bit
,
49 MESA_set_3dfx_mode_bit
,
50 MESA_swap_control_bit
,
51 MESA_swap_frame_usage_bit
,
53 NV_render_depth_texture_bit
,
54 NV_render_texture_rectangle_bit
,
55 NV_vertex_array_range_bit
,
59 SGI_make_current_read_bit
,
62 SGIS_blended_overlay_bit
,
68 SGIX_swap_barrier_bit
,
70 SGIX_video_resize_bit
,
71 SGIX_video_source_bit
,
72 SGIX_visual_select_group_bit
,
73 SUN_get_transparent_index_bit
77 GL_ARB_depth_texture_bit
= 0,
78 GL_ARB_fragment_program_bit
,
80 GL_ARB_multisample_bit
,
81 GL_ARB_multitexture_bit
,
82 GL_ARB_occlusion_query_bit
,
83 GL_ARB_point_parameters_bit
,
84 GL_ARB_point_sprite_bit
,
86 GL_ARB_shadow_ambient_bit
,
87 GL_ARB_texture_border_clamp_bit
,
88 GL_ARB_texture_cube_map_bit
,
89 GL_ARB_texture_compression_bit
,
90 GL_ARB_texture_env_add_bit
,
91 GL_ARB_texture_env_combine_bit
,
92 GL_ARB_texture_env_crossbar_bit
,
93 GL_ARB_texture_env_dot3_bit
,
94 GL_ARB_texture_mirrored_repeat_bit
,
95 GL_ARB_texture_non_power_of_two_bit
,
96 GL_ARB_texture_rectangle_bit
,
97 GL_ARB_transpose_matrix_bit
,
98 GL_ARB_vertex_buffer_object_bit
,
99 GL_ARB_vertex_program_bit
,
100 GL_ARB_window_pos_bit
,
103 GL_EXT_blend_color_bit
,
104 GL_EXT_blend_equation_separate_bit
,
105 GL_EXT_blend_func_separate_bit
,
106 GL_EXT_blend_logic_op_bit
,
107 GL_EXT_blend_minmax_bit
,
108 GL_EXT_blend_subtract_bit
,
109 GL_EXT_clip_volume_hint_bit
,
110 GL_EXT_compiled_vertex_array_bit
,
111 GL_EXT_convolution_bit
,
112 GL_EXT_copy_texture_bit
,
113 GL_EXT_cull_vertex_bit
,
114 GL_EXT_depth_bounds_test_bit
,
115 GL_EXT_draw_range_elements_bit
,
116 GL_EXT_fog_coord_bit
,
117 GL_EXT_multi_draw_arrays_bit
,
118 GL_EXT_packed_pixels_bit
,
119 GL_EXT_paletted_texture_bit
,
120 GL_EXT_pixel_buffer_object_bit
,
121 GL_EXT_polygon_offset_bit
,
122 GL_EXT_rescale_normal_bit
,
123 GL_EXT_secondary_color_bit
,
124 GL_EXT_separate_specular_color_bit
,
125 GL_EXT_shadow_funcs_bit
,
126 GL_EXT_shared_texture_palette_bit
,
127 GL_EXT_stencil_two_side_bit
,
128 GL_EXT_stencil_wrap_bit
,
129 GL_EXT_subtexture_bit
,
131 GL_EXT_texture3D_bit
,
132 GL_EXT_texture_compression_s3tc_bit
,
133 GL_EXT_texture_edge_clamp_bit
,
134 GL_EXT_texture_env_combine_bit
,
135 GL_EXT_texture_env_dot3_bit
,
136 GL_EXT_texture_filter_anisotropic_bit
,
137 GL_EXT_texture_lod_bit
,
138 GL_EXT_texture_lod_bias_bit
,
139 GL_EXT_texture_mirror_clamp_bit
,
140 GL_EXT_texture_object_bit
,
141 GL_EXT_vertex_array_bit
,
142 GL_3DFX_texture_compression_FXT1_bit
,
143 GL_APPLE_packed_pixels_bit
,
144 GL_APPLE_ycbcr_422_bit
,
145 GL_ATI_texture_env_combine3_bit
,
146 GL_ATI_texture_float_bit
,
147 GL_ATI_texture_mirror_once_bit
,
148 GL_HP_convolution_border_modes_bit
,
149 GL_HP_occlusion_test_bit
,
150 GL_IBM_cull_vertex_bit
,
151 GL_IBM_pixel_filter_hint_bit
,
152 GL_IBM_rasterpos_clip_bit
,
153 GL_IBM_texture_clamp_nodraw_bit
,
154 GL_INGR_interlace_read_bit
,
155 GL_MESA_pack_invert_bit
,
156 GL_MESA_ycbcr_texture_bit
,
157 GL_NV_blend_square_bit
,
158 GL_NV_copy_depth_to_color_bit
,
159 GL_NV_depth_clamp_bit
,
160 GL_NV_fog_distance_bit
,
161 GL_NV_light_max_exponent_bit
,
162 GL_NV_multisample_filter_hint_bit
,
163 GL_NV_point_sprite_bit
,
164 GL_NV_texgen_reflection_bit
,
165 GL_NV_texture_compression_vtc_bit
,
166 GL_NV_texture_env_combine4_bit
,
167 GL_OES_read_format_bit
,
168 GL_SGIS_generate_mipmap_bit
,
169 GL_SGIS_multisample_bit
,
170 GL_SGIS_texture_lod_bit
,
171 GL_SGIX_blend_alpha_minmax_bit
,
173 GL_SGIX_depth_texture_bit
,
174 GL_SGIX_fog_offset_bit
,
176 GL_SGIX_texture_coordinate_clamp_bit
,
177 GL_SGIX_texture_lod_bias_bit
,
178 GL_SGIX_texture_range_bit
,
179 GL_SGIX_texture_scale_bias_bit
,
180 GL_SGIX_vertex_preclip_bit
,
181 GL_SGIX_vertex_preclip_hint_bit
,
183 GL_SUN_convolution_border_modes_bit
,
184 GL_SUN_slice_accum_bit
,
186 /* This *MUST* go here. If it gets put after the duplicate values it will
187 * get the value after the last duplicate.
192 /* Alias extension bits. These extensions exist in either vendor-specific
193 * or EXT form and were later promoted to either EXT or ARB form. In all
194 * cases, the meaning is *exactly* the same. That's why
195 * EXT_texture_env_combine is *NOT* an alias of ARB_texture_env_combine and
196 * EXT_texture_env_dot3 is *NOT* an alias of ARB_texture_env_dot3. Be
197 * careful! When in doubt, src/mesa/main/extensions.c in the Mesa tree
198 * is a great reference.
201 GL_ATI_blend_equation_separate_bit
= GL_EXT_blend_equation_separate_bit
,
202 GL_ATIX_texture_env_combine3_bit
= GL_ATI_texture_env_combine3_bit
,
203 GL_EXT_point_parameters_bit
= GL_ARB_point_parameters_bit
,
204 GL_EXT_texture_env_add_bit
= GL_ARB_texture_env_add_bit
,
205 GL_EXT_texture_rectangle_bit
= GL_ARB_texture_rectangle_bit
,
206 GL_IBM_texture_mirrored_repeat_bit
= GL_ARB_texture_mirrored_repeat_bit
,
207 GL_INGR_blend_func_separate_bit
= GL_EXT_blend_func_separate_bit
,
208 GL_MESA_window_pos_bit
= GL_ARB_window_pos_bit
,
209 GL_NV_texture_rectangle_bit
= GL_ARB_texture_rectangle_bit
,
210 GL_SGIS_texture_border_clamp_bit
= GL_ARB_texture_border_clamp_bit
,
211 GL_SGIS_texture_edge_clamp_bit
= GL_EXT_texture_edge_clamp_bit
,
212 GL_SGIX_shadow_ambient_bit
= GL_ARB_shadow_ambient_bit
,
213 GL_SUN_multi_draw_arrays_bit
= GL_EXT_multi_draw_arrays_bit
216 extern GLboolean
__glXExtensionBitIsEnabled( __GLXscreenConfigs
*psc
, unsigned bit
);
217 extern const char * __glXGetClientExtensions( void );
218 extern void __glXCalculateUsableExtensions( __GLXscreenConfigs
*psc
,
219 GLboolean display_is_direct_capable
, int server_minor_version
);
220 extern void __glXScrEnableExtension( __GLXscreenConfigs
*psc
, const char * name
);
221 extern void __glXCalculateUsableGLExtensions( __GLXcontext
* gc
,
222 const char * server_string
, int major_version
, int minor_version
);
223 extern void __glXGetGLVersion( int * major_version
, int * minor_version
);
224 extern char * __glXGetClientGLExtensionString( void );
226 /* Source-level backwards compatibility with old drivers. They won't
227 * find the respective functions, though.
229 typedef void (* PFNGLXENABLEEXTENSIONPROC
) ( const char * name
,
230 GLboolean force_client
);
231 typedef void (* PFNGLXDISABLEEXTENSIONPROC
) ( const char * name
);
233 /* GLX_ALIAS should be used for functions with a non-void return type.
234 GLX_ALIAS_VOID is for functions with a void return type. */
235 #ifdef GLX_NO_STATIC_EXTENSION_FUNCTIONS
236 # define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func)
237 # define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func)
239 # if defined(__GNUC__) && !defined(GLX_ALIAS_UNSUPPORTED)
240 # define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
241 return_type GLX_PREFIX( real_func ) proto_args \
242 __attribute__ ((alias( # aliased_func ) ));
243 # define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
244 GLX_ALIAS(void, real_func, proto_args, args, aliased_func)
246 # define GLX_ALIAS(return_type, real_func, proto_args, args, aliased_func) \
247 return_type GLX_PREFIX( real_func ) proto_args \
248 { return aliased_func args ; }
249 # define GLX_ALIAS_VOID(real_func, proto_args, args, aliased_func) \
250 void GLX_PREFIX( real_func ) proto_args \
251 { aliased_func args ; }
252 # endif /* __GNUC__ */
253 #endif /* GLX_NO_STATIC_EXTENSION_FUNCTIONS */
255 #endif /* GLX_GLXEXTENSIONS_H */