45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * (C) Copyright IBM Corporation 2002-2006
45e9809aff7304721fddb95654901b32195c9c7avboxsync * All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * on the rights to use, copy, modify, merge, publish, distribute, sub
45e9809aff7304721fddb95654901b32195c9c7avboxsync * license, and/or sell copies of the Software, and to permit persons to whom
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice (including the next
45e9809aff7304721fddb95654901b32195c9c7avboxsync * paragraph) shall be included in all copies or substantial portions of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/**
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \file extension_string.h
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Routines to manage the GLX extension string and GLX version for AIGLX
45e9809aff7304721fddb95654901b32195c9c7avboxsync * drivers. This code is loosely based on src/glx/x11/glxextensions.c from
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Mesa.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * \author Ian Romanick <idr@us.ibm.com>
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef GLX_EXTENSION_STRING_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GLX_EXTENSION_STRING_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncenum {
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* GLX_ARB_get_proc_address is implemented on the client. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ARB_multisample_bit = 0,
45e9809aff7304721fddb95654901b32195c9c7avboxsync EXT_import_context_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync EXT_texture_from_pixmap_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync EXT_visual_info_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync EXT_visual_rating_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MESA_copy_sub_buffer_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync OML_swap_method_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGI_make_current_read_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGI_swap_control_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGI_video_sync_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGIS_multisample_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGIX_fbconfig_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGIX_pbuffer_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync SGIX_visual_select_group_bit,
45e9809aff7304721fddb95654901b32195c9c7avboxsync __NUM_GLX_EXTS,
45e9809aff7304721fddb95654901b32195c9c7avboxsync};
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXGetExtensionString(const unsigned char *enable_bits,
45e9809aff7304721fddb95654901b32195c9c7avboxsync char *buffer);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXEnableExtension(unsigned char *enable_bits, const char *ext);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXInitExtensionEnableBits(unsigned char *enable_bits);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* GLX_EXTENSION_STRING_H */