14642e01fSmrg/*
24642e01fSmrg * (C) Copyright IBM Corporation 2002-2006
34642e01fSmrg * All Rights Reserved.
44642e01fSmrg *
54642e01fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
64642e01fSmrg * copy of this software and associated documentation files (the "Software"),
74642e01fSmrg * to deal in the Software without restriction, including without limitation
84642e01fSmrg * on the rights to use, copy, modify, merge, publish, distribute, sub
94642e01fSmrg * license, and/or sell copies of the Software, and to permit persons to whom
104642e01fSmrg * the Software is furnished to do so, subject to the following conditions:
114642e01fSmrg *
124642e01fSmrg * The above copyright notice and this permission notice (including the next
134642e01fSmrg * paragraph) shall be included in all copies or substantial portions of the
144642e01fSmrg * Software.
154642e01fSmrg *
164642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
174642e01fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
184642e01fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
194642e01fSmrg * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
204642e01fSmrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
214642e01fSmrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
224642e01fSmrg * USE OR OTHER DEALINGS IN THE SOFTWARE.
234642e01fSmrg */
244642e01fSmrg
254642e01fSmrg/**
264642e01fSmrg * \file extension_string.h
274642e01fSmrg * Routines to manage the GLX extension string and GLX version for AIGLX
284642e01fSmrg * drivers.  This code is loosely based on src/glx/x11/glxextensions.c from
294642e01fSmrg * Mesa.
304642e01fSmrg *
314642e01fSmrg * \author Ian Romanick <idr@us.ibm.com>
324642e01fSmrg */
334642e01fSmrg
344642e01fSmrg#ifndef GLX_EXTENSION_STRING_H
354642e01fSmrg#define GLX_EXTENSION_STRING_H
364642e01fSmrg
374642e01fSmrgenum {
384642e01fSmrg/*   GLX_ARB_get_proc_address is implemented on the client. */
3935c4bbdfSmrg    ARB_context_flush_control_bit = 0,
4035c4bbdfSmrg    ARB_create_context_bit,
411b5d61b8Smrg    ARB_create_context_no_error_bit,
4235c4bbdfSmrg    ARB_create_context_profile_bit,
4335c4bbdfSmrg    ARB_create_context_robustness_bit,
4435c4bbdfSmrg    ARB_fbconfig_float_bit,
4535c4bbdfSmrg    ARB_framebuffer_sRGB_bit,
4635c4bbdfSmrg    ARB_multisample_bit,
4735c4bbdfSmrg    EXT_create_context_es_profile_bit,
4835c4bbdfSmrg    EXT_create_context_es2_profile_bit,
4935c4bbdfSmrg    EXT_fbconfig_packed_float_bit,
50ed6184dfSmrg    EXT_get_drawable_type_bit,
5135c4bbdfSmrg    EXT_import_context_bit,
521b5d61b8Smrg    EXT_libglvnd_bit,
531b5d61b8Smrg    EXT_no_config_context_bit,
5435c4bbdfSmrg    EXT_stereo_tree_bit,
5535c4bbdfSmrg    EXT_texture_from_pixmap_bit,
5635c4bbdfSmrg    EXT_visual_info_bit,
5735c4bbdfSmrg    EXT_visual_rating_bit,
5835c4bbdfSmrg    MESA_copy_sub_buffer_bit,
5935c4bbdfSmrg    OML_swap_method_bit,
6035c4bbdfSmrg    SGI_make_current_read_bit,
6135c4bbdfSmrg    SGI_swap_control_bit,
6235c4bbdfSmrg    SGI_video_sync_bit,
6335c4bbdfSmrg    SGIS_multisample_bit,
6435c4bbdfSmrg    SGIX_fbconfig_bit,
6535c4bbdfSmrg    SGIX_pbuffer_bit,
6635c4bbdfSmrg    SGIX_visual_select_group_bit,
6735c4bbdfSmrg    INTEL_swap_event_bit,
6835c4bbdfSmrg    __NUM_GLX_EXTS,
694642e01fSmrg};
704642e01fSmrg
7135c4bbdfSmrg/* For extensions which have identical ARB and EXT implementation
7235c4bbdfSmrg * in GLX area, use one enabling bit for both. */
7335c4bbdfSmrg#define EXT_framebuffer_sRGB_bit ARB_framebuffer_sRGB_bit
7435c4bbdfSmrg
754642e01fSmrg#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
764642e01fSmrg
774642e01fSmrgextern int __glXGetExtensionString(const unsigned char *enable_bits,
7835c4bbdfSmrg                                   char *buffer);
794642e01fSmrgextern void __glXEnableExtension(unsigned char *enable_bits, const char *ext);
804642e01fSmrgextern void __glXInitExtensionEnableBits(unsigned char *enable_bits);
814642e01fSmrg
8235c4bbdfSmrg#endif                          /* GLX_EXTENSION_STRING_H */
83