2 * (C) Copyright IBM Corporation 2002-2006
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 extension_string.h
27 * Routines to manage the GLX extension string and GLX version for AIGLX
28 * drivers. This code is loosely based on src/glx/x11/glxextensions.c from
31 * \author Ian Romanick <idr@us.ibm.com>
34 #ifndef GLX_EXTENSION_STRING_H
35 #define GLX_EXTENSION_STRING_H
38 /* GLX_ARB_get_proc_address is implemented on the client. */
39 ARB_create_context_bit
= 0,
40 ARB_create_context_profile_bit
,
41 ARB_create_context_robustness_bit
,
42 ARB_fbconfig_float_bit
,
43 ARB_framebuffer_sRGB_bit
,
45 EXT_create_context_es2_profile_bit
,
46 EXT_import_context_bit
,
47 EXT_texture_from_pixmap_bit
,
49 EXT_visual_rating_bit
,
50 MESA_copy_sub_buffer_bit
,
52 SGI_make_current_read_bit
,
58 SGIX_visual_select_group_bit
,
63 /* For extensions which have identical ARB and EXT implementation
64 * in GLX area, use one enabling bit for both. */
65 #define EXT_framebuffer_sRGB_bit ARB_framebuffer_sRGB_bit
67 #define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
69 extern int __glXGetExtensionString(const unsigned char *enable_bits
,
71 extern void __glXEnableExtension(unsigned char *enable_bits
, const char *ext
);
72 extern void __glXInitExtensionEnableBits(unsigned char *enable_bits
);
74 #endif /* GLX_EXTENSION_STRING_H */