glxext.h
Go to the documentation of this file.
00001 #ifndef __glxext_h_
00002 #define __glxext_h_ 1
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 /*
00009 ** Copyright (c) 2013-2014 The Khronos Group Inc.
00010 **
00011 ** Permission is hereby granted, free of charge, to any person obtaining a
00012 ** copy of this software and/or associated documentation files (the
00013 ** "Materials"), to deal in the Materials without restriction, including
00014 ** without limitation the rights to use, copy, modify, merge, publish,
00015 ** distribute, sublicense, and/or sell copies of the Materials, and to
00016 ** permit persons to whom the Materials are furnished to do so, subject to
00017 ** the following conditions:
00018 **
00019 ** The above copyright notice and this permission notice shall be included
00020 ** in all copies or substantial portions of the Materials.
00021 **
00022 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00023 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00024 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00025 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00026 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00027 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00028 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
00029 */
00030 /*
00031 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
00032 ** API Registry. The current version of the Registry, generator scripts
00033 ** used to make the header, and the header can be found at
00034 **   http://www.opengl.org/registry/
00035 **
00036 ** Khronos $Revision: 27684 $ on $Date: 2014-08-11 01:21:35 -0700 (Mon, 11 Aug 2014) $
00037 */
00038 
00039 #define GLX_GLXEXT_VERSION 20140810
00040 
00041 /* Generated C header for:
00042  * API: glx
00043  * Versions considered: .*
00044  * Versions emitted: 1\.[3-9]
00045  * Default extensions included: glx
00046  * Additional extensions included: _nomatch_^
00047  * Extensions removed: _nomatch_^
00048  */
00049 
00050 #ifndef GLX_VERSION_1_3
00051 #define GLX_VERSION_1_3 1
00052 typedef XID GLXContextID;
00053 typedef struct __GLXFBConfigRec *GLXFBConfig;
00054 typedef XID GLXWindow;
00055 typedef XID GLXPbuffer;
00056 #define GLX_WINDOW_BIT                    0x00000001
00057 #define GLX_PIXMAP_BIT                    0x00000002
00058 #define GLX_PBUFFER_BIT                   0x00000004
00059 #define GLX_RGBA_BIT                      0x00000001
00060 #define GLX_COLOR_INDEX_BIT               0x00000002
00061 #define GLX_PBUFFER_CLOBBER_MASK          0x08000000
00062 #define GLX_FRONT_LEFT_BUFFER_BIT         0x00000001
00063 #define GLX_FRONT_RIGHT_BUFFER_BIT        0x00000002
00064 #define GLX_BACK_LEFT_BUFFER_BIT          0x00000004
00065 #define GLX_BACK_RIGHT_BUFFER_BIT         0x00000008
00066 #define GLX_AUX_BUFFERS_BIT               0x00000010
00067 #define GLX_DEPTH_BUFFER_BIT              0x00000020
00068 #define GLX_STENCIL_BUFFER_BIT            0x00000040
00069 #define GLX_ACCUM_BUFFER_BIT              0x00000080
00070 #define GLX_CONFIG_CAVEAT                 0x20
00071 #define GLX_X_VISUAL_TYPE                 0x22
00072 #define GLX_TRANSPARENT_TYPE              0x23
00073 #define GLX_TRANSPARENT_INDEX_VALUE       0x24
00074 #define GLX_TRANSPARENT_RED_VALUE         0x25
00075 #define GLX_TRANSPARENT_GREEN_VALUE       0x26
00076 #define GLX_TRANSPARENT_BLUE_VALUE        0x27
00077 #define GLX_TRANSPARENT_ALPHA_VALUE       0x28
00078 #define GLX_DONT_CARE                     0xFFFFFFFF
00079 #define GLX_NONE                          0x8000
00080 #define GLX_SLOW_CONFIG                   0x8001
00081 #define GLX_TRUE_COLOR                    0x8002
00082 #define GLX_DIRECT_COLOR                  0x8003
00083 #define GLX_PSEUDO_COLOR                  0x8004
00084 #define GLX_STATIC_COLOR                  0x8005
00085 #define GLX_GRAY_SCALE                    0x8006
00086 #define GLX_STATIC_GRAY                   0x8007
00087 #define GLX_TRANSPARENT_RGB               0x8008
00088 #define GLX_TRANSPARENT_INDEX             0x8009
00089 #define GLX_VISUAL_ID                     0x800B
00090 #define GLX_SCREEN                        0x800C
00091 #define GLX_NON_CONFORMANT_CONFIG         0x800D
00092 #define GLX_DRAWABLE_TYPE                 0x8010
00093 #define GLX_RENDER_TYPE                   0x8011
00094 #define GLX_X_RENDERABLE                  0x8012
00095 #define GLX_FBCONFIG_ID                   0x8013
00096 #define GLX_RGBA_TYPE                     0x8014
00097 #define GLX_COLOR_INDEX_TYPE              0x8015
00098 #define GLX_MAX_PBUFFER_WIDTH             0x8016
00099 #define GLX_MAX_PBUFFER_HEIGHT            0x8017
00100 #define GLX_MAX_PBUFFER_PIXELS            0x8018
00101 #define GLX_PRESERVED_CONTENTS            0x801B
00102 #define GLX_LARGEST_PBUFFER               0x801C
00103 #define GLX_WIDTH                         0x801D
00104 #define GLX_HEIGHT                        0x801E
00105 #define GLX_EVENT_MASK                    0x801F
00106 #define GLX_DAMAGED                       0x8020
00107 #define GLX_SAVED                         0x8021
00108 #define GLX_WINDOW                        0x8022
00109 #define GLX_PBUFFER                       0x8023
00110 #define GLX_PBUFFER_HEIGHT                0x8040
00111 #define GLX_PBUFFER_WIDTH                 0x8041
00112 typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
00113 typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
00114 typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
00115 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
00116 typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
00117 typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
00118 typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
00119 typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
00120 typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
00121 typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
00122 typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
00123 typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
00124 typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
00125 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
00126 typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
00127 typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
00128 typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
00129 #ifdef GLX_GLXEXT_PROTOTYPES
00130 GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements);
00131 GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
00132 int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
00133 XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
00134 GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
00135 void glXDestroyWindow (Display *dpy, GLXWindow win);
00136 GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
00137 void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
00138 GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
00139 void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
00140 void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
00141 GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
00142 Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
00143 GLXDrawable glXGetCurrentReadDrawable (void);
00144 int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
00145 void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
00146 void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
00147 #endif
00148 #endif /* GLX_VERSION_1_3 */
00149 
00150 #ifndef GLX_VERSION_1_4
00151 #define GLX_VERSION_1_4 1
00152 typedef void ( *__GLXextFuncPtr)(void);
00153 #define GLX_SAMPLE_BUFFERS                100000
00154 #define GLX_SAMPLES                       100001
00155 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
00156 #ifdef GLX_GLXEXT_PROTOTYPES
00157 __GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
00158 #endif
00159 #endif /* GLX_VERSION_1_4 */
00160 
00161 #ifndef GLX_ARB_context_flush_control
00162 #define GLX_ARB_context_flush_control 1
00163 #define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB  0x2097
00164 #define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
00165 #define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
00166 #endif /* GLX_ARB_context_flush_control */
00167 
00168 #ifndef GLX_ARB_create_context
00169 #define GLX_ARB_create_context 1
00170 #define GLX_CONTEXT_DEBUG_BIT_ARB         0x00000001
00171 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
00172 #define GLX_CONTEXT_MAJOR_VERSION_ARB     0x2091
00173 #define GLX_CONTEXT_MINOR_VERSION_ARB     0x2092
00174 #define GLX_CONTEXT_FLAGS_ARB             0x2094
00175 typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
00176 #ifdef GLX_GLXEXT_PROTOTYPES
00177 GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
00178 #endif
00179 #endif /* GLX_ARB_create_context */
00180 
00181 #ifndef GLX_ARB_create_context_profile
00182 #define GLX_ARB_create_context_profile 1
00183 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB  0x00000001
00184 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
00185 #define GLX_CONTEXT_PROFILE_MASK_ARB      0x9126
00186 #endif /* GLX_ARB_create_context_profile */
00187 
00188 #ifndef GLX_ARB_create_context_robustness
00189 #define GLX_ARB_create_context_robustness 1
00190 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
00191 #define GLX_LOSE_CONTEXT_ON_RESET_ARB     0x8252
00192 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
00193 #define GLX_NO_RESET_NOTIFICATION_ARB     0x8261
00194 #endif /* GLX_ARB_create_context_robustness */
00195 
00196 #ifndef GLX_ARB_fbconfig_float
00197 #define GLX_ARB_fbconfig_float 1
00198 #define GLX_RGBA_FLOAT_TYPE_ARB           0x20B9
00199 #define GLX_RGBA_FLOAT_BIT_ARB            0x00000004
00200 #endif /* GLX_ARB_fbconfig_float */
00201 
00202 #ifndef GLX_ARB_framebuffer_sRGB
00203 #define GLX_ARB_framebuffer_sRGB 1
00204 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB  0x20B2
00205 #endif /* GLX_ARB_framebuffer_sRGB */
00206 
00207 #ifndef GLX_ARB_get_proc_address
00208 #define GLX_ARB_get_proc_address 1
00209 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
00210 #ifdef GLX_GLXEXT_PROTOTYPES
00211 __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
00212 #endif
00213 #endif /* GLX_ARB_get_proc_address */
00214 
00215 #ifndef GLX_ARB_multisample
00216 #define GLX_ARB_multisample 1
00217 #define GLX_SAMPLE_BUFFERS_ARB            100000
00218 #define GLX_SAMPLES_ARB                   100001
00219 #endif /* GLX_ARB_multisample */
00220 
00221 #ifndef GLX_ARB_robustness_application_isolation
00222 #define GLX_ARB_robustness_application_isolation 1
00223 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
00224 #endif /* GLX_ARB_robustness_application_isolation */
00225 
00226 #ifndef GLX_ARB_robustness_share_group_isolation
00227 #define GLX_ARB_robustness_share_group_isolation 1
00228 #endif /* GLX_ARB_robustness_share_group_isolation */
00229 
00230 #ifndef GLX_ARB_vertex_buffer_object
00231 #define GLX_ARB_vertex_buffer_object 1
00232 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
00233 #endif /* GLX_ARB_vertex_buffer_object */
00234 
00235 #ifndef GLX_3DFX_multisample
00236 #define GLX_3DFX_multisample 1
00237 #define GLX_SAMPLE_BUFFERS_3DFX           0x8050
00238 #define GLX_SAMPLES_3DFX                  0x8051
00239 #endif /* GLX_3DFX_multisample */
00240 
00241 #ifndef GLX_AMD_gpu_association
00242 #define GLX_AMD_gpu_association 1
00243 #define GLX_GPU_VENDOR_AMD                0x1F00
00244 #define GLX_GPU_RENDERER_STRING_AMD       0x1F01
00245 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
00246 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD   0x21A2
00247 #define GLX_GPU_RAM_AMD                   0x21A3
00248 #define GLX_GPU_CLOCK_AMD                 0x21A4
00249 #define GLX_GPU_NUM_PIPES_AMD             0x21A5
00250 #define GLX_GPU_NUM_SIMD_AMD              0x21A6
00251 #define GLX_GPU_NUM_RB_AMD                0x21A7
00252 #define GLX_GPU_NUM_SPI_AMD               0x21A8
00253 #endif /* GLX_AMD_gpu_association */
00254 
00255 #ifndef GLX_EXT_buffer_age
00256 #define GLX_EXT_buffer_age 1
00257 #define GLX_BACK_BUFFER_AGE_EXT           0x20F4
00258 #endif /* GLX_EXT_buffer_age */
00259 
00260 #ifndef GLX_EXT_create_context_es2_profile
00261 #define GLX_EXT_create_context_es2_profile 1
00262 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
00263 #endif /* GLX_EXT_create_context_es2_profile */
00264 
00265 #ifndef GLX_EXT_create_context_es_profile
00266 #define GLX_EXT_create_context_es_profile 1
00267 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
00268 #endif /* GLX_EXT_create_context_es_profile */
00269 
00270 #ifndef GLX_EXT_fbconfig_packed_float
00271 #define GLX_EXT_fbconfig_packed_float 1
00272 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT  0x20B1
00273 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT   0x00000008
00274 #endif /* GLX_EXT_fbconfig_packed_float */
00275 
00276 #ifndef GLX_EXT_framebuffer_sRGB
00277 #define GLX_EXT_framebuffer_sRGB 1
00278 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20B2
00279 #endif /* GLX_EXT_framebuffer_sRGB */
00280 
00281 #ifndef GLX_EXT_import_context
00282 #define GLX_EXT_import_context 1
00283 #define GLX_SHARE_CONTEXT_EXT             0x800A
00284 #define GLX_VISUAL_ID_EXT                 0x800B
00285 #define GLX_SCREEN_EXT                    0x800C
00286 typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
00287 typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
00288 typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
00289 typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
00290 typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
00291 #ifdef GLX_GLXEXT_PROTOTYPES
00292 Display *glXGetCurrentDisplayEXT (void);
00293 int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
00294 GLXContextID glXGetContextIDEXT (const GLXContext context);
00295 GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
00296 void glXFreeContextEXT (Display *dpy, GLXContext context);
00297 #endif
00298 #endif /* GLX_EXT_import_context */
00299 
00300 #ifndef GLX_EXT_stereo_tree
00301 #define GLX_EXT_stereo_tree 1
00302 typedef struct {
00303     int type;
00304     unsigned long serial;
00305     Bool send_event;
00306     Display *display;
00307     int extension;
00308     int evtype;
00309     GLXDrawable window;
00310     Bool stereo_tree;
00311 } GLXStereoNotifyEventEXT;
00312 #define GLX_STEREO_TREE_EXT               0x20F5
00313 #define GLX_STEREO_NOTIFY_MASK_EXT        0x00000001
00314 #define GLX_STEREO_NOTIFY_EXT             0x00000000
00315 #endif /* GLX_EXT_stereo_tree */
00316 
00317 #ifndef GLX_EXT_swap_control
00318 #define GLX_EXT_swap_control 1
00319 #define GLX_SWAP_INTERVAL_EXT             0x20F1
00320 #define GLX_MAX_SWAP_INTERVAL_EXT         0x20F2
00321 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
00322 #ifdef GLX_GLXEXT_PROTOTYPES
00323 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
00324 #endif
00325 #endif /* GLX_EXT_swap_control */
00326 
00327 #ifndef GLX_EXT_swap_control_tear
00328 #define GLX_EXT_swap_control_tear 1
00329 #define GLX_LATE_SWAPS_TEAR_EXT           0x20F3
00330 #endif /* GLX_EXT_swap_control_tear */
00331 
00332 #ifndef GLX_EXT_texture_from_pixmap
00333 #define GLX_EXT_texture_from_pixmap 1
00334 #define GLX_TEXTURE_1D_BIT_EXT            0x00000001
00335 #define GLX_TEXTURE_2D_BIT_EXT            0x00000002
00336 #define GLX_TEXTURE_RECTANGLE_BIT_EXT     0x00000004
00337 #define GLX_BIND_TO_TEXTURE_RGB_EXT       0x20D0
00338 #define GLX_BIND_TO_TEXTURE_RGBA_EXT      0x20D1
00339 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT    0x20D2
00340 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT   0x20D3
00341 #define GLX_Y_INVERTED_EXT                0x20D4
00342 #define GLX_TEXTURE_FORMAT_EXT            0x20D5
00343 #define GLX_TEXTURE_TARGET_EXT            0x20D6
00344 #define GLX_MIPMAP_TEXTURE_EXT            0x20D7
00345 #define GLX_TEXTURE_FORMAT_NONE_EXT       0x20D8
00346 #define GLX_TEXTURE_FORMAT_RGB_EXT        0x20D9
00347 #define GLX_TEXTURE_FORMAT_RGBA_EXT       0x20DA
00348 #define GLX_TEXTURE_1D_EXT                0x20DB
00349 #define GLX_TEXTURE_2D_EXT                0x20DC
00350 #define GLX_TEXTURE_RECTANGLE_EXT         0x20DD
00351 #define GLX_FRONT_LEFT_EXT                0x20DE
00352 #define GLX_FRONT_RIGHT_EXT               0x20DF
00353 #define GLX_BACK_LEFT_EXT                 0x20E0
00354 #define GLX_BACK_RIGHT_EXT                0x20E1
00355 #define GLX_FRONT_EXT                     0x20DE
00356 #define GLX_BACK_EXT                      0x20E0
00357 #define GLX_AUX0_EXT                      0x20E2
00358 #define GLX_AUX1_EXT                      0x20E3
00359 #define GLX_AUX2_EXT                      0x20E4
00360 #define GLX_AUX3_EXT                      0x20E5
00361 #define GLX_AUX4_EXT                      0x20E6
00362 #define GLX_AUX5_EXT                      0x20E7
00363 #define GLX_AUX6_EXT                      0x20E8
00364 #define GLX_AUX7_EXT                      0x20E9
00365 #define GLX_AUX8_EXT                      0x20EA
00366 #define GLX_AUX9_EXT                      0x20EB
00367 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
00368 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
00369 #ifdef GLX_GLXEXT_PROTOTYPES
00370 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
00371 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
00372 #endif
00373 #endif /* GLX_EXT_texture_from_pixmap */
00374 
00375 #ifndef GLX_EXT_visual_info
00376 #define GLX_EXT_visual_info 1
00377 #define GLX_X_VISUAL_TYPE_EXT             0x22
00378 #define GLX_TRANSPARENT_TYPE_EXT          0x23
00379 #define GLX_TRANSPARENT_INDEX_VALUE_EXT   0x24
00380 #define GLX_TRANSPARENT_RED_VALUE_EXT     0x25
00381 #define GLX_TRANSPARENT_GREEN_VALUE_EXT   0x26
00382 #define GLX_TRANSPARENT_BLUE_VALUE_EXT    0x27
00383 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT   0x28
00384 #define GLX_NONE_EXT                      0x8000
00385 #define GLX_TRUE_COLOR_EXT                0x8002
00386 #define GLX_DIRECT_COLOR_EXT              0x8003
00387 #define GLX_PSEUDO_COLOR_EXT              0x8004
00388 #define GLX_STATIC_COLOR_EXT              0x8005
00389 #define GLX_GRAY_SCALE_EXT                0x8006
00390 #define GLX_STATIC_GRAY_EXT               0x8007
00391 #define GLX_TRANSPARENT_RGB_EXT           0x8008
00392 #define GLX_TRANSPARENT_INDEX_EXT         0x8009
00393 #endif /* GLX_EXT_visual_info */
00394 
00395 #ifndef GLX_EXT_visual_rating
00396 #define GLX_EXT_visual_rating 1
00397 #define GLX_VISUAL_CAVEAT_EXT             0x20
00398 #define GLX_SLOW_VISUAL_EXT               0x8001
00399 #define GLX_NON_CONFORMANT_VISUAL_EXT     0x800D
00400 #endif /* GLX_EXT_visual_rating */
00401 
00402 #ifndef GLX_INTEL_swap_event
00403 #define GLX_INTEL_swap_event 1
00404 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
00405 #define GLX_EXCHANGE_COMPLETE_INTEL       0x8180
00406 #define GLX_COPY_COMPLETE_INTEL           0x8181
00407 #define GLX_FLIP_COMPLETE_INTEL           0x8182
00408 #endif /* GLX_INTEL_swap_event */
00409 
00410 #ifndef GLX_MESA_agp_offset
00411 #define GLX_MESA_agp_offset 1
00412 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
00413 #ifdef GLX_GLXEXT_PROTOTYPES
00414 unsigned int glXGetAGPOffsetMESA (const void *pointer);
00415 #endif
00416 #endif /* GLX_MESA_agp_offset */
00417 
00418 #ifndef GLX_MESA_copy_sub_buffer
00419 #define GLX_MESA_copy_sub_buffer 1
00420 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
00421 #ifdef GLX_GLXEXT_PROTOTYPES
00422 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
00423 #endif
00424 #endif /* GLX_MESA_copy_sub_buffer */
00425 
00426 #ifndef GLX_MESA_pixmap_colormap
00427 #define GLX_MESA_pixmap_colormap 1
00428 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
00429 #ifdef GLX_GLXEXT_PROTOTYPES
00430 GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
00431 #endif
00432 #endif /* GLX_MESA_pixmap_colormap */
00433 
00434 #ifndef GLX_MESA_query_renderer
00435 #define GLX_MESA_query_renderer 1
00436 #define GLX_RENDERER_VENDOR_ID_MESA       0x8183
00437 #define GLX_RENDERER_DEVICE_ID_MESA       0x8184
00438 #define GLX_RENDERER_VERSION_MESA         0x8185
00439 #define GLX_RENDERER_ACCELERATED_MESA     0x8186
00440 #define GLX_RENDERER_VIDEO_MEMORY_MESA    0x8187
00441 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
00442 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
00443 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
00444 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
00445 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
00446 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
00447 #define GLX_RENDERER_ID_MESA              0x818E
00448 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
00449 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
00450 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
00451 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
00452 #ifdef GLX_GLXEXT_PROTOTYPES
00453 Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
00454 const char *glXQueryCurrentRendererStringMESA (int attribute);
00455 Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
00456 const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute);
00457 #endif
00458 #endif /* GLX_MESA_query_renderer */
00459 
00460 #ifndef GLX_MESA_release_buffers
00461 #define GLX_MESA_release_buffers 1
00462 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
00463 #ifdef GLX_GLXEXT_PROTOTYPES
00464 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
00465 #endif
00466 #endif /* GLX_MESA_release_buffers */
00467 
00468 #ifndef GLX_MESA_set_3dfx_mode
00469 #define GLX_MESA_set_3dfx_mode 1
00470 #define GLX_3DFX_WINDOW_MODE_MESA         0x1
00471 #define GLX_3DFX_FULLSCREEN_MODE_MESA     0x2
00472 typedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (int mode);
00473 #ifdef GLX_GLXEXT_PROTOTYPES
00474 Bool glXSet3DfxModeMESA (int mode);
00475 #endif
00476 #endif /* GLX_MESA_set_3dfx_mode */
00477 
00478 #ifndef GLX_NV_copy_buffer
00479 #define GLX_NV_copy_buffer 1
00480 typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
00481 typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
00482 #ifdef GLX_GLXEXT_PROTOTYPES
00483 void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
00484 void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
00485 #endif
00486 #endif /* GLX_NV_copy_buffer */
00487 
00488 #ifndef GLX_NV_copy_image
00489 #define GLX_NV_copy_image 1
00490 typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
00491 #ifdef GLX_GLXEXT_PROTOTYPES
00492 void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
00493 #endif
00494 #endif /* GLX_NV_copy_image */
00495 
00496 #ifndef GLX_NV_delay_before_swap
00497 #define GLX_NV_delay_before_swap 1
00498 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
00499 #ifdef GLX_GLXEXT_PROTOTYPES
00500 Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds);
00501 #endif
00502 #endif /* GLX_NV_delay_before_swap */
00503 
00504 #ifndef GLX_NV_float_buffer
00505 #define GLX_NV_float_buffer 1
00506 #define GLX_FLOAT_COMPONENTS_NV           0x20B0
00507 #endif /* GLX_NV_float_buffer */
00508 
00509 #ifndef GLX_NV_multisample_coverage
00510 #define GLX_NV_multisample_coverage 1
00511 #define GLX_COVERAGE_SAMPLES_NV           100001
00512 #define GLX_COLOR_SAMPLES_NV              0x20B3
00513 #endif /* GLX_NV_multisample_coverage */
00514 
00515 #ifndef GLX_NV_present_video
00516 #define GLX_NV_present_video 1
00517 #define GLX_NUM_VIDEO_SLOTS_NV            0x20F0
00518 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
00519 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
00520 #ifdef GLX_GLXEXT_PROTOTYPES
00521 unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
00522 int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
00523 #endif
00524 #endif /* GLX_NV_present_video */
00525 
00526 #ifndef GLX_NV_swap_group
00527 #define GLX_NV_swap_group 1
00528 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
00529 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
00530 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
00531 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
00532 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
00533 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
00534 #ifdef GLX_GLXEXT_PROTOTYPES
00535 Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
00536 Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
00537 Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
00538 Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
00539 Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
00540 Bool glXResetFrameCountNV (Display *dpy, int screen);
00541 #endif
00542 #endif /* GLX_NV_swap_group */
00543 
00544 #ifndef GLX_NV_video_capture
00545 #define GLX_NV_video_capture 1
00546 typedef XID GLXVideoCaptureDeviceNV;
00547 #define GLX_DEVICE_ID_NV                  0x20CD
00548 #define GLX_UNIQUE_ID_NV                  0x20CE
00549 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
00550 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
00551 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
00552 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
00553 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
00554 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
00555 #ifdef GLX_GLXEXT_PROTOTYPES
00556 int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
00557 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
00558 void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
00559 int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
00560 void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
00561 #endif
00562 #endif /* GLX_NV_video_capture */
00563 
00564 #ifndef GLX_NV_video_out
00565 #define GLX_NV_video_out 1
00566 typedef unsigned int GLXVideoDeviceNV;
00567 #define GLX_VIDEO_OUT_COLOR_NV            0x20C3
00568 #define GLX_VIDEO_OUT_ALPHA_NV            0x20C4
00569 #define GLX_VIDEO_OUT_DEPTH_NV            0x20C5
00570 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
00571 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
00572 #define GLX_VIDEO_OUT_FRAME_NV            0x20C8
00573 #define GLX_VIDEO_OUT_FIELD_1_NV          0x20C9
00574 #define GLX_VIDEO_OUT_FIELD_2_NV          0x20CA
00575 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
00576 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
00577 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
00578 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
00579 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
00580 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
00581 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
00582 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
00583 #ifdef GLX_GLXEXT_PROTOTYPES
00584 int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
00585 int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
00586 int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
00587 int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
00588 int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
00589 int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
00590 #endif
00591 #endif /* GLX_NV_video_out */
00592 
00593 #ifndef GLX_OML_swap_method
00594 #define GLX_OML_swap_method 1
00595 #define GLX_SWAP_METHOD_OML               0x8060
00596 #define GLX_SWAP_EXCHANGE_OML             0x8061
00597 #define GLX_SWAP_COPY_OML                 0x8062
00598 #define GLX_SWAP_UNDEFINED_OML            0x8063
00599 #endif /* GLX_OML_swap_method */
00600 
00601 #ifndef GLX_OML_sync_control
00602 #define GLX_OML_sync_control 1
00603 #ifndef GLEXT_64_TYPES_DEFINED
00604 /* This code block is duplicated in glext.h, so must be protected */
00605 #define GLEXT_64_TYPES_DEFINED
00606 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
00607 /* (as used in the GLX_OML_sync_control extension). */
00608 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
00609 #include <inttypes.h>
00610 #elif defined(__sun__) || defined(__digital__)
00611 #include <inttypes.h>
00612 #if defined(__STDC__)
00613 #if defined(__arch64__) || defined(_LP64)
00614 typedef long int int64_t;
00615 typedef unsigned long int uint64_t;
00616 #else
00617 typedef long long int int64_t;
00618 typedef unsigned long long int uint64_t;
00619 #endif /* __arch64__ */
00620 #endif /* __STDC__ */
00621 #elif defined( __VMS ) || defined(__sgi)
00622 #include <inttypes.h>
00623 #elif defined(__SCO__) || defined(__USLC__)
00624 #include <stdint.h>
00625 #elif defined(__UNIXOS2__) || defined(__SOL64__)
00626 typedef long int int32_t;
00627 typedef long long int int64_t;
00628 typedef unsigned long long int uint64_t;
00629 #elif defined(_WIN32) && defined(__GNUC__)
00630 #include <stdint.h>
00631 #elif defined(_WIN32)
00632 typedef __int32 int32_t;
00633 typedef __int64 int64_t;
00634 typedef unsigned __int64 uint64_t;
00635 #else
00636 /* Fallback if nothing above works */
00637 #include <inttypes.h>
00638 #endif
00639 #endif
00640 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
00641 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
00642 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
00643 typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
00644 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
00645 #ifdef GLX_GLXEXT_PROTOTYPES
00646 Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
00647 Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
00648 int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
00649 Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
00650 Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
00651 #endif
00652 #endif /* GLX_OML_sync_control */
00653 
00654 #ifndef GLX_SGIS_blended_overlay
00655 #define GLX_SGIS_blended_overlay 1
00656 #define GLX_BLENDED_RGBA_SGIS             0x8025
00657 #endif /* GLX_SGIS_blended_overlay */
00658 
00659 #ifndef GLX_SGIS_multisample
00660 #define GLX_SGIS_multisample 1
00661 #define GLX_SAMPLE_BUFFERS_SGIS           100000
00662 #define GLX_SAMPLES_SGIS                  100001
00663 #endif /* GLX_SGIS_multisample */
00664 
00665 #ifndef GLX_SGIS_shared_multisample
00666 #define GLX_SGIS_shared_multisample 1
00667 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
00668 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
00669 #endif /* GLX_SGIS_shared_multisample */
00670 
00671 #ifndef GLX_SGIX_dmbuffer
00672 #define GLX_SGIX_dmbuffer 1
00673 typedef XID GLXPbufferSGIX;
00674 #ifdef _DM_BUFFER_H_
00675 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX    0x8024
00676 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
00677 #ifdef GLX_GLXEXT_PROTOTYPES
00678 Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
00679 #endif
00680 #endif /* _DM_BUFFER_H_ */
00681 #endif /* GLX_SGIX_dmbuffer */
00682 
00683 #ifndef GLX_SGIX_fbconfig
00684 #define GLX_SGIX_fbconfig 1
00685 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
00686 #define GLX_WINDOW_BIT_SGIX               0x00000001
00687 #define GLX_PIXMAP_BIT_SGIX               0x00000002
00688 #define GLX_RGBA_BIT_SGIX                 0x00000001
00689 #define GLX_COLOR_INDEX_BIT_SGIX          0x00000002
00690 #define GLX_DRAWABLE_TYPE_SGIX            0x8010
00691 #define GLX_RENDER_TYPE_SGIX              0x8011
00692 #define GLX_X_RENDERABLE_SGIX             0x8012
00693 #define GLX_FBCONFIG_ID_SGIX              0x8013
00694 #define GLX_RGBA_TYPE_SGIX                0x8014
00695 #define GLX_COLOR_INDEX_TYPE_SGIX         0x8015
00696 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
00697 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
00698 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
00699 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
00700 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
00701 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
00702 #ifdef GLX_GLXEXT_PROTOTYPES
00703 int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
00704 GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
00705 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
00706 GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
00707 XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
00708 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
00709 #endif
00710 #endif /* GLX_SGIX_fbconfig */
00711 
00712 #ifndef GLX_SGIX_hyperpipe
00713 #define GLX_SGIX_hyperpipe 1
00714 typedef struct {
00715     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
00716     int     networkId;
00717 } GLXHyperpipeNetworkSGIX;
00718 typedef struct {
00719     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
00720     int     channel;
00721     unsigned int participationType;
00722     int     timeSlice;
00723 } GLXHyperpipeConfigSGIX;
00724 typedef struct {
00725     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
00726     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
00727     int destXOrigin, destYOrigin, destWidth, destHeight;
00728 } GLXPipeRect;
00729 typedef struct {
00730     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
00731     int XOrigin, YOrigin, maxHeight, maxWidth;
00732 } GLXPipeRectLimits;
00733 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
00734 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX     91
00735 #define GLX_BAD_HYPERPIPE_SGIX            92
00736 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX   0x00000001
00737 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX    0x00000002
00738 #define GLX_PIPE_RECT_SGIX                0x00000001
00739 #define GLX_PIPE_RECT_LIMITS_SGIX         0x00000002
00740 #define GLX_HYPERPIPE_STEREO_SGIX         0x00000003
00741 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX  0x00000004
00742 #define GLX_HYPERPIPE_ID_SGIX             0x8030
00743 typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
00744 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
00745 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
00746 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
00747 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
00748 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
00749 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
00750 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
00751 #ifdef GLX_GLXEXT_PROTOTYPES
00752 GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
00753 int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
00754 GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
00755 int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
00756 int glXBindHyperpipeSGIX (Display *dpy, int hpId);
00757 int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
00758 int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
00759 int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
00760 #endif
00761 #endif /* GLX_SGIX_hyperpipe */
00762 
00763 #ifndef GLX_SGIX_pbuffer
00764 #define GLX_SGIX_pbuffer 1
00765 #define GLX_PBUFFER_BIT_SGIX              0x00000004
00766 #define GLX_BUFFER_CLOBBER_MASK_SGIX      0x08000000
00767 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX    0x00000001
00768 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX   0x00000002
00769 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX     0x00000004
00770 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX    0x00000008
00771 #define GLX_AUX_BUFFERS_BIT_SGIX          0x00000010
00772 #define GLX_DEPTH_BUFFER_BIT_SGIX         0x00000020
00773 #define GLX_STENCIL_BUFFER_BIT_SGIX       0x00000040
00774 #define GLX_ACCUM_BUFFER_BIT_SGIX         0x00000080
00775 #define GLX_SAMPLE_BUFFERS_BIT_SGIX       0x00000100
00776 #define GLX_MAX_PBUFFER_WIDTH_SGIX        0x8016
00777 #define GLX_MAX_PBUFFER_HEIGHT_SGIX       0x8017
00778 #define GLX_MAX_PBUFFER_PIXELS_SGIX       0x8018
00779 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX    0x8019
00780 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX   0x801A
00781 #define GLX_PRESERVED_CONTENTS_SGIX       0x801B
00782 #define GLX_LARGEST_PBUFFER_SGIX          0x801C
00783 #define GLX_WIDTH_SGIX                    0x801D
00784 #define GLX_HEIGHT_SGIX                   0x801E
00785 #define GLX_EVENT_MASK_SGIX               0x801F
00786 #define GLX_DAMAGED_SGIX                  0x8020
00787 #define GLX_SAVED_SGIX                    0x8021
00788 #define GLX_WINDOW_SGIX                   0x8022
00789 #define GLX_PBUFFER_SGIX                  0x8023
00790 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
00791 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
00792 typedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
00793 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
00794 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
00795 #ifdef GLX_GLXEXT_PROTOTYPES
00796 GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
00797 void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
00798 int glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
00799 void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
00800 void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
00801 #endif
00802 #endif /* GLX_SGIX_pbuffer */
00803 
00804 #ifndef GLX_SGIX_swap_barrier
00805 #define GLX_SGIX_swap_barrier 1
00806 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
00807 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
00808 #ifdef GLX_GLXEXT_PROTOTYPES
00809 void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
00810 Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
00811 #endif
00812 #endif /* GLX_SGIX_swap_barrier */
00813 
00814 #ifndef GLX_SGIX_swap_group
00815 #define GLX_SGIX_swap_group 1
00816 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
00817 #ifdef GLX_GLXEXT_PROTOTYPES
00818 void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
00819 #endif
00820 #endif /* GLX_SGIX_swap_group */
00821 
00822 #ifndef GLX_SGIX_video_resize
00823 #define GLX_SGIX_video_resize 1
00824 #define GLX_SYNC_FRAME_SGIX               0x00000000
00825 #define GLX_SYNC_SWAP_SGIX                0x00000001
00826 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
00827 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
00828 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
00829 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
00830 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
00831 #ifdef GLX_GLXEXT_PROTOTYPES
00832 int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
00833 int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
00834 int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
00835 int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
00836 int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
00837 #endif
00838 #endif /* GLX_SGIX_video_resize */
00839 
00840 #ifndef GLX_SGIX_video_source
00841 #define GLX_SGIX_video_source 1
00842 typedef XID GLXVideoSourceSGIX;
00843 #ifdef _VL_H
00844 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
00845 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
00846 #ifdef GLX_GLXEXT_PROTOTYPES
00847 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
00848 void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
00849 #endif
00850 #endif /* _VL_H */
00851 #endif /* GLX_SGIX_video_source */
00852 
00853 #ifndef GLX_SGIX_visual_select_group
00854 #define GLX_SGIX_visual_select_group 1
00855 #define GLX_VISUAL_SELECT_GROUP_SGIX      0x8028
00856 #endif /* GLX_SGIX_visual_select_group */
00857 
00858 #ifndef GLX_SGI_cushion
00859 #define GLX_SGI_cushion 1
00860 typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
00861 #ifdef GLX_GLXEXT_PROTOTYPES
00862 void glXCushionSGI (Display *dpy, Window window, float cushion);
00863 #endif
00864 #endif /* GLX_SGI_cushion */
00865 
00866 #ifndef GLX_SGI_make_current_read
00867 #define GLX_SGI_make_current_read 1
00868 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
00869 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
00870 #ifdef GLX_GLXEXT_PROTOTYPES
00871 Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
00872 GLXDrawable glXGetCurrentReadDrawableSGI (void);
00873 #endif
00874 #endif /* GLX_SGI_make_current_read */
00875 
00876 #ifndef GLX_SGI_swap_control
00877 #define GLX_SGI_swap_control 1
00878 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
00879 #ifdef GLX_GLXEXT_PROTOTYPES
00880 int glXSwapIntervalSGI (int interval);
00881 #endif
00882 #endif /* GLX_SGI_swap_control */
00883 
00884 #ifndef GLX_SGI_video_sync
00885 #define GLX_SGI_video_sync 1
00886 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
00887 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
00888 #ifdef GLX_GLXEXT_PROTOTYPES
00889 int glXGetVideoSyncSGI (unsigned int *count);
00890 int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
00891 #endif
00892 #endif /* GLX_SGI_video_sync */
00893 
00894 #ifndef GLX_SUN_get_transparent_index
00895 #define GLX_SUN_get_transparent_index 1
00896 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
00897 #ifdef GLX_GLXEXT_PROTOTYPES
00898 Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
00899 #endif
00900 #endif /* GLX_SUN_get_transparent_index */
00901 
00902 #ifdef __cplusplus
00903 }
00904 #endif
00905 
00906 #endif


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:39