glxtokens.h revision 7a0d67332f33bc21290d63bc7c8150b0cf0a4b21
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Permission is hereby granted, free of charge, to any person obtaining a
fa9e4066f08beec538e775443c5be79dd423fcabahrens * copy of this software and associated documentation files (the "Software"),
fa9e4066f08beec538e775443c5be79dd423fcabahrens * to deal in the Software without restriction, including without limitation
fa9e4066f08beec538e775443c5be79dd423fcabahrens * the rights to use, copy, modify, merge, publish, distribute, sublicense,
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and/or sell copies of the Software, and to permit persons to whom the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Software is furnished to do so, subject to the following conditions:
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The above copyright notice including the dates of first publication and
fa9e4066f08beec538e775443c5be79dd423fcabahrens * either this permission notice or a reference to
fa9e4066f08beec538e775443c5be79dd423fcabahrens * shall be included in all copies or substantial portions of the Software.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
fa9e4066f08beec538e775443c5be79dd423fcabahrens * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
e6032be1b8a5a1d03081e0d62b624db95c4cf8b7marks * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
fa9e4066f08beec538e775443c5be79dd423fcabahrens * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
fa9e4066f08beec538e775443c5be79dd423fcabahrens * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
fa9e4066f08beec538e775443c5be79dd423fcabahrens * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * SOFTWARE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Except as contained in this notice, the name of Silicon Graphics, Inc.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * shall not be used in advertising or otherwise to promote the sale, use or
fa9e4066f08beec538e775443c5be79dd423fcabahrens * other dealings in this Software without prior written authorization from
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Silicon Graphics, Inc.
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern "C" {
fa9e4066f08beec538e775443c5be79dd423fcabahrens** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib)
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_BUFFER_SIZE 2 /* depth of the color buffer */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_DOUBLEBUFFER 5 /* double buffering supported */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_RED_SIZE 8 /* number of red component bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_GREEN_SIZE 9 /* number of green component bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_BLUE_SIZE 10 /* number of blue component bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_ALPHA_SIZE 11 /* number of alpha component bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_STENCIL_SIZE 13 /* number of stencil bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_ACCUM_RED_SIZE 14 /* number of red accum bits */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_ACCUM_GREEN_SIZE 15 /* number of green accum bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_ACCUM_BLUE_SIZE 16 /* number of blue accum bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_ACCUM_ALPHA_SIZE 17 /* number of alpha accum bits */
fa9e4066f08beec538e775443c5be79dd423fcabahrens** FBConfig-specific attributes
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define GLX_CONFIG_CAVEAT 0x20 /* Like visual_info VISUAL_CAVEAT_EXT */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* FBConfigSGIX Attributes */
169cdae232f15e542d6af0a9ce30c3f84222bc0fmarks** Error return values from glXGetConfig. Success is indicated by
fa9e4066f08beec538e775443c5be79dd423fcabahrens** a value of 0.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_BAD_ATTRIBUTE 2 /* attribute to get is bad */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_NO_EXTENSION 3 /* no glx extension on server */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_BAD_CONTEXT 5 /* returned only by import_context EXT? */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_BAD_VALUE 6 /* returned only by glXSwapIntervalSGI? */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* FBConfig attribute values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** Generic "don't care" value for glX ChooseFBConfig attributes (except
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** GLX_LEVEL)
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* GLX_RENDER_TYPE bits */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLX_DRAWABLE_TYPE bits */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLX_CONFIG_CAVEAT attribute values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLX_X_VISUAL_TYPE attribute values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLX_TRANSPARENT_TYPE attribute values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* #define GLX_NONE 0x8000 */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* glXCreateGLXPbuffer attributes */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* glXQueryGLXPBuffer attributes */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* glXCreateNewContext render_type attribute values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* glXQueryContext attributes */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* #define GLX_FBCONFIG_ID 0x8013 */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* #define GLX_RENDER_TYPE 0x8011 */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* glXSelectEvent event mask bits */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLXPbufferClobberEvent event_type values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLXPbufferClobberEvent draw_type values */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* GLXPbufferClobberEvent buffer_mask bits */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** Extension return values from glXGetConfig. These are also
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** accepted as parameter values for glXChooseVisual.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_X_VISUAL_TYPE_EXT 0x22 /* visual_info extension type */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_TYPE_EXT 0x23 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 /* visual_info extension */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* Property values for visual_type */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* Property values for transparent pixel */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* Property values for visual_rating */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_VISUAL_CAVEAT_EXT 0x20 /* visual_rating extension type */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* Property values for swap method (GLX_OML_swap_method) */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* Property values for multi-sampling */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 /* visuals grouped by select priority */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** Names for attributes to glXGetClientString.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** Names for attributes to glXQueryContextInfoEXT.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_SHARE_CONTEXT_EXT 0x800A /* id of share context */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define GLX_VISUAL_ID_EXT 0x800B /* id of context's visual */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw** GLX_EXT_texture_from_pixmap
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * GLX 1.4 and later:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* !__GLX_glxtokens_h__ */