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