1706f2543Smrg/*
2706f2543Smrg * (C) Copyright IBM Corporation 2002-2006
3706f2543Smrg * All Rights Reserved.
4706f2543Smrg *
5706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a
6706f2543Smrg * copy of this software and associated documentation files (the "Software"),
7706f2543Smrg * to deal in the Software without restriction, including without limitation
8706f2543Smrg * on the rights to use, copy, modify, merge, publish, distribute, sub
9706f2543Smrg * license, and/or sell copies of the Software, and to permit persons to whom
10706f2543Smrg * the Software is furnished to do so, subject to the following conditions:
11706f2543Smrg *
12706f2543Smrg * The above copyright notice and this permission notice (including the next
13706f2543Smrg * paragraph) shall be included in all copies or substantial portions of the
14706f2543Smrg * Software.
15706f2543Smrg *
16706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
19706f2543Smrg * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
20706f2543Smrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21706f2543Smrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22706f2543Smrg * USE OR OTHER DEALINGS IN THE SOFTWARE.
23706f2543Smrg */
24706f2543Smrg
25706f2543Smrg/**
26706f2543Smrg * \file extension_string.h
27706f2543Smrg * Routines to manage the GLX extension string and GLX version for AIGLX
28706f2543Smrg * drivers.  This code is loosely based on src/glx/x11/glxextensions.c from
29706f2543Smrg * Mesa.
30706f2543Smrg *
31706f2543Smrg * \author Ian Romanick <idr@us.ibm.com>
32706f2543Smrg */
33706f2543Smrg
34706f2543Smrg#ifndef GLX_EXTENSION_STRING_H
35706f2543Smrg#define GLX_EXTENSION_STRING_H
36706f2543Smrg
37706f2543Smrgenum {
38706f2543Smrg/*   GLX_ARB_get_proc_address is implemented on the client. */
39706f2543Smrg   ARB_multisample_bit = 0,
40706f2543Smrg   EXT_import_context_bit,
41706f2543Smrg   EXT_texture_from_pixmap_bit,
42706f2543Smrg   EXT_visual_info_bit,
43706f2543Smrg   EXT_visual_rating_bit,
44706f2543Smrg   MESA_copy_sub_buffer_bit,
45706f2543Smrg   OML_swap_method_bit,
46706f2543Smrg   SGI_make_current_read_bit,
47706f2543Smrg   SGI_swap_control_bit,
48706f2543Smrg   SGI_video_sync_bit,
49706f2543Smrg   SGIS_multisample_bit,
50706f2543Smrg   SGIX_fbconfig_bit,
51706f2543Smrg   SGIX_pbuffer_bit,
52706f2543Smrg   SGIX_visual_select_group_bit,
53706f2543Smrg   INTEL_swap_event_bit,
54706f2543Smrg   __NUM_GLX_EXTS,
55706f2543Smrg};
56706f2543Smrg
57706f2543Smrg#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
58706f2543Smrg
59706f2543Smrgextern int __glXGetExtensionString(const unsigned char *enable_bits,
60706f2543Smrg    char *buffer);
61706f2543Smrgextern void __glXEnableExtension(unsigned char *enable_bits, const char *ext);
62706f2543Smrgextern void __glXInitExtensionEnableBits(unsigned char *enable_bits);
63706f2543Smrg
64706f2543Smrg#endif /* GLX_EXTENSION_STRING_H */
65