Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

glxtokens.h

00001 #ifndef __glxtokens_h__
00002 #define __glxtokens_h__
00003 
00004 /*
00005 ** The contents of this file are subject to the GLX Public License Version 1.0
00006 ** (the "License"). You may not use this file except in compliance with the
00007 ** License. You may obtain a copy of the License at Silicon Graphics, Inc.,
00008 ** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
00009 ** or at http://www.sgi.com/software/opensource/glx/license.html.
00010 **
00011 ** Software distributed under the License is distributed on an "AS IS"
00012 ** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
00013 ** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
00014 ** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
00015 ** language governing rights and limitations under the License.
00016 **
00017 ** The Original Software is GLX version 1.2 source code, released February,
00018 ** 1999. The developer of the Original Software is Silicon Graphics, Inc.
00019 ** Those portions of the Subject Software created by Silicon Graphics, Inc.
00020 ** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.
00021 **
00022 ** $Header: //sw/OEM/nvr50_linux_986209/drivers/OpenGL/win/glx/include/glxtokens.h#1 $
00023 */
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #define GLX_VERSION_1_1         1
00030 #define GLX_VERSION_1_2         1
00031 #define GLX_VERSION_1_3         1
00032 
00033 /* GLX Extensions */
00034 #define GLX_EXT_import_context  1
00035 #define GLX_EXT_visual_info     1
00036 #define GLX_EXT_visual_rating   1
00037 #define GLX_SGIX_fbconfig       1
00038 #define GLX_SGIX_pbuffer        1
00039 #define GLX_NV_float_buffer     1
00040 #define GLX_ARB_get_proc_address 1
00041 
00042 /*
00043  * Names for attributes to glXGetConfig.
00044  */
00045 #define GLX_USE_GL              1       /* support GLX rendering */
00046 #define GLX_BUFFER_SIZE         2       /* depth of the color buffer */
00047 #define GLX_LEVEL               3       /* level in plane stacking */
00048 #define GLX_RGBA                4       /* true if RGBA mode */
00049 #define GLX_DOUBLEBUFFER        5       /* double buffering supported */
00050 #define GLX_STEREO              6       /* stereo buffering supported */
00051 #define GLX_AUX_BUFFERS         7       /* number of aux buffers */
00052 #define GLX_RED_SIZE            8       /* number of red component bits */
00053 #define GLX_GREEN_SIZE          9       /* number of green component bits */
00054 #define GLX_BLUE_SIZE           10      /* number of blue component bits */
00055 #define GLX_ALPHA_SIZE          11      /* number of alpha component bits */
00056 #define GLX_DEPTH_SIZE          12      /* number of depth bits */
00057 #define GLX_STENCIL_SIZE        13      /* number of stencil bits */
00058 #define GLX_ACCUM_RED_SIZE      14      /* number of red accum bits */
00059 #define GLX_ACCUM_GREEN_SIZE    15      /* number of green accum bits */
00060 #define GLX_ACCUM_BLUE_SIZE     16      /* number of blue accum bits */
00061 #define GLX_ACCUM_ALPHA_SIZE    17      /* number of alpha accum bits */
00062 
00063 #define GLX_SAMPLE_BUFFERS_ARB  100000  /* number of multisample buffers */
00064 #define GLX_SAMPLES_ARB         100001  /* number of multisample samples */
00065 
00066 /*
00067  * FBConfig-specific attributes
00068  */
00069 #define GLX_X_VISUAL_TYPE               0x22
00070 #define GLX_CONFIG_CAVEAT               0x20    /* Like visual_info VISUAL_CAVEAT */
00071 #define GLX_TRANSPARENT_TYPE            0x23
00072 #define GLX_TRANSPARENT_INDEX_VALUE     0x24
00073 #define GLX_TRANSPARENT_RED_VALUE       0x25
00074 #define GLX_TRANSPARENT_GREEN_VALUE     0x26
00075 #define GLX_TRANSPARENT_BLUE_VALUE      0x27
00076 #define GLX_TRANSPARENT_ALPHA_VALUE     0x28
00077 #define GLX_DRAWABLE_TYPE               0x8010
00078 #define GLX_RENDER_TYPE                 0x8011
00079 #define GLX_X_RENDERABLE                0x8012
00080 #define GLX_FBCONFIG_ID                 0x8013
00081 #define GLX_MAX_PBUFFER_WIDTH           0x8016
00082 #define GLX_MAX_PBUFFER_HEIGHT          0x8017
00083 #define GLX_MAX_PBUFFER_PIXELS          0x8018
00084 #define GLX_VISUAL_ID                   0x800B
00085 
00086 #define GLX_DRAWABLE_TYPE_SGIX          GLX_DRAWABLE_TYPE
00087 #define GLX_RENDER_TYPE_SGIX            GLX_RENDER_TYPE
00088 #define GLX_X_RENDERABLE_SGIX           GLX_X_RENDERABLE
00089 #define GLX_FBCONFIG_ID_SGIX            GLX_FBCONFIG_ID
00090 #define GLX_MAX_PBUFFER_WIDTH_SGIX      GLX_MAX_PBUFFER_WIDTH
00091 #define GLX_MAX_PBUFFER_HEIGHT_SGIX     GLX_MAX_PBUFFER_HEIGHT
00092 #define GLX_MAX_PBUFFER_PIXELS_SGIX     GLX_MAX_PBUFFER_PIXELS
00093 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX  0x8019
00094 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
00095 
00096 /*
00097  * Error return values from glXGetConfig.  Success is indicated by
00098  * a value of 0.
00099  */
00100 #define GLX_BAD_SCREEN                  1  /* screen # is bad */
00101 #define GLX_BAD_ATTRIBUTE               2  /* attribute to get is bad */
00102 #define GLX_NO_EXTENSION                3  /* no glx extension on server */
00103 #define GLX_BAD_VISUAL                  4  /* visual # not known by GLX */
00104 #define GLX_BAD_CONTEXT                 5
00105 #define GLX_BAD_VALUE                   6
00106 #define GLX_BAD_ENUM                    7
00107 
00108 
00109 /* FBConfig attribute values */
00110 
00111 /*
00112  * Generic "don't care" value for glX ChooseFBConfig attributes (except
00113  * GLX_LEVEL).
00114  */
00115 #define GLX_DONT_CARE                   0xFFFFFFFF
00116 
00117 /* GLX_RENDER_TYPE bits */
00118 #define GLX_RGBA_BIT                    0x00000001
00119 #define GLX_COLOR_INDEX_BIT             0x00000002
00120 #define GLX_RGBA_BIT_SGIX               GLX_RGBA_BIT
00121 #define GLX_COLOR_INDEX_BIT_SGIX        GLX_COLOR_INDEX_BIT
00122 
00123 /* GLX_DRAWABLE_TYPE bits */
00124 #define GLX_WINDOW_BIT                  0x00000001
00125 #define GLX_PIXMAP_BIT                  0x00000002
00126 #define GLX_PBUFFER_BIT                 0x00000004
00127 #define GLX_WINDOW_BIT_SGIX             GLX_WINDOW_BIT
00128 #define GLX_PIXMAP_BIT_SGIX             GLX_PIXMAP_BIT
00129 #define GLX_PBUFFER_BIT_SGIX            GLX_PBUFFER_BIT
00130 
00131 /* GLX_CONFIG_CAVEAT attribute values */
00132 #define GLX_NONE                        0x8000
00133 #define GLX_SLOW_CONFIG                 0x8001
00134 #define GLX_NON_CONFORMANT_CONFIG       0x800D
00135 
00136 /* GLX_X_VISUAL_TYPE attribute values */
00137 #define GLX_TRUE_COLOR                  0x8002
00138 #define GLX_DIRECT_COLOR                0x8003
00139 #define GLX_PSEUDO_COLOR                0x8004
00140 #define GLX_STATIC_COLOR                0x8005
00141 #define GLX_GRAY_SCALE                  0x8006
00142 #define GLX_STATIC_GRAY                 0x8007
00143 
00144 /* GLX_TRANSPARENT_TYPE attribute values */
00145 /* #define GLX_NONE                        0x8000 */
00146 #define GLX_TRANSPARENT_RGB             0x8008
00147 #define GLX_TRANSPARENT_INDEX           0x8009
00148 
00149 /* glXCreateGLXPbuffer attributes */
00150 #define GLX_PRESERVED_CONTENTS          0x801B
00151 #define GLX_LARGEST_PBUFFER             0x801C
00152 #define GLX_PBUFFER_HEIGHT              0x8040  /* New for GLX 1.3 */
00153 #define GLX_PBUFFER_WIDTH               0x8041  /* New for GLX 1.3 */
00154 #define GLX_PRESERVED_CONTENTS_SGIX     GLX_PRESERVED_CONTENTS
00155 #define GLX_LARGEST_PBUFFER_SGIX        GLX_LARGEST_PBUFFER
00156 
00157 /* glXQueryGLXPBuffer attributes */
00158 #define GLX_WIDTH                       0x801D
00159 #define GLX_HEIGHT                      0x801E
00160 #define GLX_EVENT_MASK                  0x801F
00161 #define GLX_WIDTH_SGIX                  GLX_WIDTH
00162 #define GLX_HEIGHT_SGIX                 GLX_HEIGHT
00163 #define GLX_EVENT_MASK_SGIX             GLX_EVENT_MASK
00164 
00165 /* glXCreateNewContext render_type attribute values */
00166 #define GLX_RGBA_TYPE                   0x8014
00167 #define GLX_COLOR_INDEX_TYPE            0x8015
00168 #define GLX_RGBA_TYPE_SGIX              GLX_RGBA_TYPE
00169 #define GLX_COLOR_INDEX_TYPE_SGIX       GLX_COLOR_INDEX_TYPE
00170 
00171 /* glXQueryContext attributes */
00172 /* #define GLX_FBCONFIG_ID                0x8013 */
00173 /* #define GLX_RENDER_TYPE                0x8011 */
00174 #define GLX_SCREEN                      0x800C
00175 
00176 /* glXSelectEvent event mask bits */
00177 #define GLX_PBUFFER_CLOBBER_MASK        0x08000000
00178 #define GLX_PBUFFER_CLOBBER_MASK_SGIX   GLX_PBUFFER_CLOBBER_MASK
00179 
00180 /* GLXPbufferClobberEvent event_type values */
00181 #define GLX_DAMAGED                     0x8020
00182 #define GLX_SAVED                       0x8021
00183 #define GLX_DAMAGED_SGIX                GLX_DAMAGED
00184 #define GLX_SAVED_SGIX                  GLX_SAVED
00185 
00186 /* GLXPbufferClobberEvent draw_type values */
00187 #define GLX_WINDOW                      0x8022
00188 #define GLX_PBUFFER                     0x8023
00189 #define GLX_WINDOW_SGIX                 GLX_WINDOW
00190 #define GLX_PBUFFER_SGIX                GLX_PBUFFER
00191 
00192 /* GLXPbufferClobberEvent buffer_mask bits */
00193 #define GLX_FRONT_LEFT_BUFFER_BIT       0x00000001
00194 #define GLX_FRONT_RIGHT_BUFFER_BIT      0x00000002
00195 #define GLX_BACK_LEFT_BUFFER_BIT        0x00000004
00196 #define GLX_BACK_RIGHT_BUFFER_BIT       0x00000008
00197 #define GLX_AUX_BUFFERS_BIT             0x00000010
00198 #define GLX_DEPTH_BUFFER_BIT            0x00000020
00199 #define GLX_STENCIL_BUFFER_BIT          0x00000040
00200 #define GLX_ACCUM_BUFFER_BIT            0x00000080
00201 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX  GLX_FRONT_LEFT_BUFFER_BIT
00202 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX GLX_FRONT_RIGHT_BUFFER_BIT
00203 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX   GLX_BACK_LEFT_BUFFER_BIT
00204 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX  GLX_BACK_RIGHT_BUFFER_BIT
00205 #define GLX_AUX_BUFFERS_BIT_SGIX        GLX_AUX_BUFFERS_BIT
00206 #define GLX_DEPTH_BUFFER_BIT_SGIX       GLX_DEPTH_BUFFER_BIT
00207 #define GLX_STENCIL_BUFFER_BIT_SGIX     GLX_STENCIL_BUFFER_BIT
00208 #define GLX_ACCUM_BUFFER_BIT_SGIX       GLX_ACCUM_BUFFER_BIT
00209 
00210 /*
00211  * Extension return values from glXGetConfig.  These are also
00212  * accepted as parameter values for glXChooseVisual.
00213  */
00214 
00215 #define GLX_X_VISUAL_TYPE_EXT           0x22    /* visual_info extension type */
00216 #define GLX_TRANSPARENT_TYPE_EXT        0x23    /* visual_info extension */
00217 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24    /* visual_info extension */
00218 #define GLX_TRANSPARENT_RED_VALUE_EXT   0x25    /* visual_info extension */
00219 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26    /* visual_info extension */
00220 #define GLX_TRANSPARENT_BLUE_VALUE_EXT  0x27    /* visual_info extension */
00221 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28    /* visual_info extension */
00222 
00223 /* Property values for visual_type */
00224 #define GLX_TRUE_COLOR_EXT              0x8002
00225 #define GLX_DIRECT_COLOR_EXT            0x8003
00226 #define GLX_PSEUDO_COLOR_EXT            0x8004
00227 #define GLX_STATIC_COLOR_EXT            0x8005
00228 #define GLX_GRAY_SCALE_EXT              0x8006
00229 #define GLX_STATIC_GRAY_EXT             0x8007
00230 
00231 /* Property values for transparent pixel */
00232 #define GLX_NONE_EXT                    0x8000
00233 #define GLX_TRANSPARENT_RGB_EXT         0x8008
00234 #define GLX_TRANSPARENT_INDEX_EXT       0x8009
00235 
00236 /* Property values for visual_rating */
00237 #define GLX_VISUAL_CAVEAT_EXT           0x20    /* visual_rating extension type */
00238 #define GLX_SLOW_VISUAL_EXT             0x8001
00239 #define GLX_NON_CONFORMANT_VISUAL_EXT   0x800D
00240 
00241 /*
00242  * Names for attributes to glXGetClientString.
00243  */
00244 #define GLX_VENDOR                      0x1
00245 #define GLX_VERSION                     0x2
00246 #define GLX_EXTENSIONS                  0x3
00247 
00248 /*
00249  * Names for attributes to glXQueryContextInfoEXT.
00250  */
00251 #define GLX_SHARE_CONTEXT_EXT           0x800A  /* id of share context */
00252 #define GLX_VISUAL_ID_EXT               0x800B  /* id of context's visual */
00253 #define GLX_SCREEN_EXT                  0x800C  /* screen number */
00254 
00255 /* NV_float_buffer */
00256 #define GLX_FLOAT_COMPONENTS_NV         0x20B0
00257 
00258 #ifdef __cplusplus
00259 }
00260 #endif
00261 
00262 #endif /* !__glxtokens_h__ */

Generated on Tue Mar 1 13:19:17 2005 for NVSGSDK by NVIDIA