extension_string.h revision 4642e01f
14642e01fSmrg/*
24642e01fSmrg * (C) Copyright IBM Corporation 2002-2006
34642e01fSmrg * All Rights Reserved.
44642e01fSmrg *
54642e01fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
64642e01fSmrg * copy of this software and associated documentation files (the "Software"),
74642e01fSmrg * to deal in the Software without restriction, including without limitation
84642e01fSmrg * on the rights to use, copy, modify, merge, publish, distribute, sub
94642e01fSmrg * license, and/or sell copies of the Software, and to permit persons to whom
104642e01fSmrg * the Software is furnished to do so, subject to the following conditions:
114642e01fSmrg *
124642e01fSmrg * The above copyright notice and this permission notice (including the next
134642e01fSmrg * paragraph) shall be included in all copies or substantial portions of the
144642e01fSmrg * Software.
154642e01fSmrg *
164642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
174642e01fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
184642e01fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
194642e01fSmrg * THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
204642e01fSmrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
214642e01fSmrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
224642e01fSmrg * USE OR OTHER DEALINGS IN THE SOFTWARE.
234642e01fSmrg */
244642e01fSmrg
254642e01fSmrg/**
264642e01fSmrg * \file extension_string.h
274642e01fSmrg * Routines to manage the GLX extension string and GLX version for AIGLX
284642e01fSmrg * drivers.  This code is loosely based on src/glx/x11/glxextensions.c from
294642e01fSmrg * Mesa.
304642e01fSmrg *
314642e01fSmrg * \author Ian Romanick <idr@us.ibm.com>
324642e01fSmrg */
334642e01fSmrg
344642e01fSmrg#ifndef GLX_EXTENSION_STRING_H
354642e01fSmrg#define GLX_EXTENSION_STRING_H
364642e01fSmrg
374642e01fSmrgenum {
384642e01fSmrg/*   GLX_ARB_get_proc_address is implemented on the client. */
394642e01fSmrg   ARB_multisample_bit = 0,
404642e01fSmrg   EXT_import_context_bit,
414642e01fSmrg   EXT_texture_from_pixmap_bit,
424642e01fSmrg   EXT_visual_info_bit,
434642e01fSmrg   EXT_visual_rating_bit,
444642e01fSmrg   MESA_copy_sub_buffer_bit,
454642e01fSmrg   OML_swap_method_bit,
464642e01fSmrg   SGI_make_current_read_bit,
474642e01fSmrg   SGI_swap_control_bit,
484642e01fSmrg   SGI_video_sync_bit,
494642e01fSmrg   SGIS_multisample_bit,
504642e01fSmrg   SGIX_fbconfig_bit,
514642e01fSmrg   SGIX_pbuffer_bit,
524642e01fSmrg   SGIX_visual_select_group_bit,
534642e01fSmrg   __NUM_GLX_EXTS,
544642e01fSmrg};
554642e01fSmrg
564642e01fSmrg#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
574642e01fSmrg
584642e01fSmrgextern int __glXGetExtensionString(const unsigned char *enable_bits,
594642e01fSmrg    char *buffer);
604642e01fSmrgextern void __glXEnableExtension(unsigned char *enable_bits, const char *ext);
614642e01fSmrgextern void __glXInitExtensionEnableBits(unsigned char *enable_bits);
624642e01fSmrg
634642e01fSmrg#endif /* GLX_EXTENSION_STRING_H */
64