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