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