| 1 |
#ifndef __GLX_glxtokens_h__ |
| 2 |
#define __GLX_glxtokens_h__ |
| 3 |
|
| 4 |
/* |
| 5 |
** License Applicability. Except to the extent portions of this file are |
| 6 |
** made subject to an alternative license as permitted in the SGI Free |
| 7 |
** Software License B, Version 1.1 (the "License"), the contents of this |
| 8 |
** file are subject only to the provisions of the License. You may not use |
| 9 |
** this file except in compliance with the License. You may obtain a copy |
| 10 |
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 |
| 11 |
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: |
| 12 |
** |
| 13 |
** http://oss.sgi.com/projects/FreeB |
| 14 |
** |
| 15 |
** Note that, as provided in the License, the Software is distributed on an |
| 16 |
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS |
| 17 |
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND |
| 18 |
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A |
| 19 |
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. |
| 20 |
** |
| 21 |
** Original Code. The Original Code is: OpenGL Sample Implementation, |
| 22 |
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, |
| 23 |
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. |
| 24 |
** Copyright in any portions created by third parties is as indicated |
| 25 |
** elsewhere herein. All Rights Reserved. |
| 26 |
** |
| 27 |
** Additional Notice Provisions: The application programming interfaces |
| 28 |
** established by SGI in conjunction with the Original Code are The |
| 29 |
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released |
| 30 |
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version |
| 31 |
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X |
| 32 |
** Window System(R) (Version 1.3), released October 19, 1998. This software |
| 33 |
** was created using the OpenGL(R) version 1.2.1 Sample Implementation |
| 34 |
** published by SGI, but has not been independently verified as being |
| 35 |
** compliant with the OpenGL(R) version 1.2.1 Specification. |
| 36 |
*/ |
| 37 |
|
| 38 |
#ifdef __cplusplus |
| 39 |
extern "C" { |
| 40 |
#endif |
| 41 |
|
| 42 |
#define GLX_VERSION_1_1 1 |
| 43 |
#define GLX_VERSION_1_2 1 |
| 44 |
#define GLX_VERSION_1_3 1 |
| 45 |
#define GLX_VERSION_1_4 1 |
| 46 |
|
| 47 |
/* |
| 48 |
** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib) |
| 49 |
*/ |
| 50 |
#define GLX_USE_GL 1 /* support GLX rendering */ |
| 51 |
#define GLX_BUFFER_SIZE 2 /* depth of the color buffer */ |
| 52 |
#define GLX_LEVEL 3 /* level in plane stacking */ |
| 53 |
#define GLX_RGBA 4 /* true if RGBA mode */ |
| 54 |
#define GLX_DOUBLEBUFFER 5 /* double buffering supported */ |
| 55 |
#define GLX_STEREO 6 /* stereo buffering supported */ |
| 56 |
#define GLX_AUX_BUFFERS 7 /* number of aux buffers */ |
| 57 |
#define GLX_RED_SIZE 8 /* number of red component bits */ |
| 58 |
#define GLX_GREEN_SIZE 9 /* number of green component bits */ |
| 59 |
#define GLX_BLUE_SIZE 10 /* number of blue component bits */ |
| 60 |
#define GLX_ALPHA_SIZE 11 /* number of alpha component bits */ |
| 61 |
#define GLX_DEPTH_SIZE 12 /* number of depth bits */ |
| 62 |
#define GLX_STENCIL_SIZE 13 /* number of stencil bits */ |
| 63 |
#define GLX_ACCUM_RED_SIZE 14 /* number of red accum bits */ |
| 64 |
#define GLX_ACCUM_GREEN_SIZE 15 /* number of green accum bits */ |
| 65 |
#define GLX_ACCUM_BLUE_SIZE 16 /* number of blue accum bits */ |
| 66 |
#define GLX_ACCUM_ALPHA_SIZE 17 /* number of alpha accum bits */ |
| 67 |
/* |
| 68 |
** FBConfig-specific attributes |
| 69 |
*/ |
| 70 |
#define GLX_X_VISUAL_TYPE 0x22 |
| 71 |
#define GLX_CONFIG_CAVEAT 0x20 /* Like visual_info VISUAL_CAVEAT_EXT */ |
| 72 |
#define GLX_TRANSPARENT_TYPE 0x23 |
| 73 |
#define GLX_TRANSPARENT_INDEX_VALUE 0x24 |
| 74 |
#define GLX_TRANSPARENT_RED_VALUE 0x25 |
| 75 |
#define GLX_TRANSPARENT_GREEN_VALUE 0x26 |
| 76 |
#define GLX_TRANSPARENT_BLUE_VALUE 0x27 |
| 77 |
#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 |
| 78 |
#define GLX_DRAWABLE_TYPE 0x8010 |
| 79 |
#define GLX_RENDER_TYPE 0x8011 |
| 80 |
#define GLX_X_RENDERABLE 0x8012 |
| 81 |
#define GLX_FBCONFIG_ID 0x8013 |
| 82 |
#define GLX_MAX_PBUFFER_WIDTH 0x8016 |
| 83 |
#define GLX_MAX_PBUFFER_HEIGHT 0x8017 |
| 84 |
#define GLX_MAX_PBUFFER_PIXELS 0x8018 |
| 85 |
#define GLX_VISUAL_ID 0x800B |
| 86 |
|
| 87 |
/* FBConfigSGIX Attributes */ |
| 88 |
#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 |
| 89 |
#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A |
| 90 |
|
| 91 |
/* |
| 92 |
** Error return values from glXGetConfig. Success is indicated by |
| 93 |
** a value of 0. |
| 94 |
*/ |
| 95 |
#define GLX_BAD_SCREEN 1 /* screen # is bad */ |
| 96 |
#define GLX_BAD_ATTRIBUTE 2 /* attribute to get is bad */ |
| 97 |
#define GLX_NO_EXTENSION 3 /* no glx extension on server */ |
| 98 |
#define GLX_BAD_VISUAL 4 /* visual # not known by GLX */ |
| 99 |
#define GLX_BAD_CONTEXT 5 /* returned only by import_context EXT? */ |
| 100 |
#define GLX_BAD_VALUE 6 /* returned only by glXSwapIntervalSGI? */ |
| 101 |
#define GLX_BAD_ENUM 7 /* unused? */ |
| 102 |
|
| 103 |
/* FBConfig attribute values */ |
| 104 |
|
| 105 |
/* |
| 106 |
** Generic "don't care" value for glX ChooseFBConfig attributes (except |
| 107 |
** GLX_LEVEL) |
| 108 |
*/ |
| 109 |
#define GLX_DONT_CARE 0xFFFFFFFF |
| 110 |
|
| 111 |
/* GLX_RENDER_TYPE bits */ |
| 112 |
#define GLX_RGBA_BIT 0x00000001 |
| 113 |
#define GLX_COLOR_INDEX_BIT 0x00000002 |
| 114 |
|
| 115 |
/* GLX_DRAWABLE_TYPE bits */ |
| 116 |
#define GLX_WINDOW_BIT 0x00000001 |
| 117 |
#define GLX_PIXMAP_BIT 0x00000002 |
| 118 |
#define GLX_PBUFFER_BIT 0x00000004 |
| 119 |
|
| 120 |
/* GLX_CONFIG_CAVEAT attribute values */ |
| 121 |
#define GLX_NONE 0x8000 |
| 122 |
#define GLX_SLOW_CONFIG 0x8001 |
| 123 |
#define GLX_NON_CONFORMANT_CONFIG 0x800D |
| 124 |
|
| 125 |
/* GLX_X_VISUAL_TYPE attribute values */ |
| 126 |
#define GLX_TRUE_COLOR 0x8002 |
| 127 |
#define GLX_DIRECT_COLOR 0x8003 |
| 128 |
#define GLX_PSEUDO_COLOR 0x8004 |
| 129 |
#define GLX_STATIC_COLOR 0x8005 |
| 130 |
#define GLX_GRAY_SCALE 0x8006 |
| 131 |
#define GLX_STATIC_GRAY 0x8007 |
| 132 |
|
| 133 |
/* GLX_TRANSPARENT_TYPE attribute values */ |
| 134 |
/* #define GLX_NONE 0x8000 */ |
| 135 |
#define GLX_TRANSPARENT_RGB 0x8008 |
| 136 |
#define GLX_TRANSPARENT_INDEX 0x8009 |
| 137 |
|
| 138 |
/* glXCreateGLXPbuffer attributes */ |
| 139 |
#define GLX_PRESERVED_CONTENTS 0x801B |
| 140 |
#define GLX_LARGEST_PBUFFER 0x801C |
| 141 |
#define GLX_PBUFFER_HEIGHT 0x8040 /* New for GLX 1.3 */ |
| 142 |
#define GLX_PBUFFER_WIDTH 0x8041 /* New for GLX 1.3 */ |
| 143 |
|
| 144 |
/* glXQueryGLXPBuffer attributes */ |
| 145 |
#define GLX_WIDTH 0x801D |
| 146 |
#define GLX_HEIGHT 0x801E |
| 147 |
#define GLX_EVENT_MASK 0x801F |
| 148 |
|
| 149 |
/* glXCreateNewContext render_type attribute values */ |
| 150 |
#define GLX_RGBA_TYPE 0x8014 |
| 151 |
#define GLX_COLOR_INDEX_TYPE 0x8015 |
| 152 |
|
| 153 |
/* glXQueryContext attributes */ |
| 154 |
/* #define GLX_FBCONFIG_ID 0x8013 */ |
| 155 |
/* #define GLX_RENDER_TYPE 0x8011 */ |
| 156 |
#define GLX_SCREEN 0x800C |
| 157 |
|
| 158 |
/* glXSelectEvent event mask bits */ |
| 159 |
#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 |
| 160 |
|
| 161 |
/* GLXPbufferClobberEvent event_type values */ |
| 162 |
#define GLX_DAMAGED 0x8020 |
| 163 |
#define GLX_SAVED 0x8021 |
| 164 |
|
| 165 |
/* GLXPbufferClobberEvent draw_type values */ |
| 166 |
#define GLX_WINDOW 0x8022 |
| 167 |
#define GLX_PBUFFER 0x8023 |
| 168 |
|
| 169 |
/* GLXPbufferClobberEvent buffer_mask bits */ |
| 170 |
#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 |
| 171 |
#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 |
| 172 |
#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 |
| 173 |
#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 |
| 174 |
#define GLX_AUX_BUFFERS_BIT 0x00000010 |
| 175 |
#define GLX_DEPTH_BUFFER_BIT 0x00000020 |
| 176 |
#define GLX_STENCIL_BUFFER_BIT 0x00000040 |
| 177 |
#define GLX_ACCUM_BUFFER_BIT 0x00000080 |
| 178 |
|
| 179 |
/* |
| 180 |
** Extension return values from glXGetConfig. These are also |
| 181 |
** accepted as parameter values for glXChooseVisual. |
| 182 |
*/ |
| 183 |
|
| 184 |
#define GLX_X_VISUAL_TYPE_EXT 0x22 /* visual_info extension type */ |
| 185 |
#define GLX_TRANSPARENT_TYPE_EXT 0x23 /* visual_info extension */ |
| 186 |
#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 /* visual_info extension */ |
| 187 |
#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 /* visual_info extension */ |
| 188 |
#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 /* visual_info extension */ |
| 189 |
#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 /* visual_info extension */ |
| 190 |
#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 /* visual_info extension */ |
| 191 |
|
| 192 |
/* Property values for visual_type */ |
| 193 |
#define GLX_TRUE_COLOR_EXT 0x8002 |
| 194 |
#define GLX_DIRECT_COLOR_EXT 0x8003 |
| 195 |
#define GLX_PSEUDO_COLOR_EXT 0x8004 |
| 196 |
#define GLX_STATIC_COLOR_EXT 0x8005 |
| 197 |
#define GLX_GRAY_SCALE_EXT 0x8006 |
| 198 |
#define GLX_STATIC_GRAY_EXT 0x8007 |
| 199 |
|
| 200 |
/* Property values for transparent pixel */ |
| 201 |
#define GLX_NONE_EXT 0x8000 |
| 202 |
#define GLX_TRANSPARENT_RGB_EXT 0x8008 |
| 203 |
#define GLX_TRANSPARENT_INDEX_EXT 0x8009 |
| 204 |
|
| 205 |
/* Property values for visual_rating */ |
| 206 |
#define GLX_VISUAL_CAVEAT_EXT 0x20 /* visual_rating extension type */ |
| 207 |
#define GLX_SLOW_VISUAL_EXT 0x8001 |
| 208 |
#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D |
| 209 |
|
| 210 |
/* Property values for swap method (GLX_OML_swap_method) */ |
| 211 |
#define GLX_SWAP_METHOD_OML 0x8060 |
| 212 |
#define GLX_SWAP_EXCHANGE_OML 0x8061 |
| 213 |
#define GLX_SWAP_COPY_OML 0x8062 |
| 214 |
#define GLX_SWAP_UNDEFINED_OML 0x8063 |
| 215 |
|
| 216 |
/* Property values for multi-sampling */ |
| 217 |
#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 /* visuals grouped by select priority */ |
| 218 |
|
| 219 |
/* |
| 220 |
** Names for attributes to glXGetClientString. |
| 221 |
*/ |
| 222 |
#define GLX_VENDOR 0x1 |
| 223 |
#define GLX_VERSION 0x2 |
| 224 |
#define GLX_EXTENSIONS 0x3 |
| 225 |
|
| 226 |
/* |
| 227 |
** Names for attributes to glXQueryContextInfoEXT. |
| 228 |
*/ |
| 229 |
#define GLX_SHARE_CONTEXT_EXT 0x800A /* id of share context */ |
| 230 |
#define GLX_VISUAL_ID_EXT 0x800B /* id of context's visual */ |
| 231 |
#define GLX_SCREEN_EXT 0x800C /* screen number */ |
| 232 |
|
| 233 |
/* |
| 234 |
* GLX 1.4 and later: |
| 235 |
*/ |
| 236 |
#define GLX_SAMPLE_BUFFERS_SGIS 100000 |
| 237 |
#define GLX_SAMPLES_SGIS 100001 |
| 238 |
|
| 239 |
#ifdef __cplusplus |
| 240 |
} |
| 241 |
#endif |
| 242 |
|
| 243 |
#endif /* !__GLX_glxtokens_h__ */ |