Equalizer
1.2.1
|
00001 /* 00002 ** The OpenGL Extension Wrangler Library 00003 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org> 00004 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org> 00005 ** Copyright (C) 2002, Lev Povalahev 00006 ** All rights reserved. 00007 ** 00008 ** Redistribution and use in source and binary forms, with or without 00009 ** modification, are permitted provided that the following conditions are met: 00010 ** 00011 ** * Redistributions of source code must retain the above copyright notice, 00012 ** this list of conditions and the following disclaimer. 00013 ** * Redistributions in binary form must reproduce the above copyright notice, 00014 ** this list of conditions and the following disclaimer in the documentation 00015 ** and/or other materials provided with the distribution. 00016 ** * The name of the author may be used to endorse or promote products 00017 ** derived from this software without specific prior written permission. 00018 ** 00019 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00022 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00023 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00024 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00025 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00026 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00027 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00028 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00029 ** THE POSSIBILITY OF SUCH DAMAGE. 00030 */ 00031 00032 /* 00033 * Mesa 3-D graphics library 00034 * Version: 7.0 00035 * 00036 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 00037 * 00038 * Permission is hereby granted, free of charge, to any person obtaining a 00039 * copy of this software and associated documentation files (the "Software"), 00040 * to deal in the Software without restriction, including without limitation 00041 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00042 * and/or sell copies of the Software, and to permit persons to whom the 00043 * Software is furnished to do so, subject to the following conditions: 00044 * 00045 * The above copyright notice and this permission notice shall be included 00046 * in all copies or substantial portions of the Software. 00047 * 00048 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00049 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00050 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00051 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00052 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00053 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00054 */ 00055 00056 /* 00057 ** Copyright (c) 2007 The Khronos Group Inc. 00058 ** 00059 ** Permission is hereby granted, free of charge, to any person obtaining a 00060 ** copy of this software and/or associated documentation files (the 00061 ** "Materials"), to deal in the Materials without restriction, including 00062 ** without limitation the rights to use, copy, modify, merge, publish, 00063 ** distribute, sublicense, and/or sell copies of the Materials, and to 00064 ** permit persons to whom the Materials are furnished to do so, subject to 00065 ** the following conditions: 00066 ** 00067 ** The above copyright notice and this permission notice shall be included 00068 ** in all copies or substantial portions of the Materials. 00069 ** 00070 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00071 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00072 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00073 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00074 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00075 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00076 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 00077 */ 00078 00079 #ifndef __glxew_h__ 00080 #define __glxew_h__ 00081 #define __GLXEW_H__ 00082 00083 #ifdef __glxext_h_ 00084 #error glxext.h included before glxew.h 00085 #endif 00086 00087 #if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__) 00088 #error glx.h included before glxew.h 00089 #endif 00090 00091 #define __glxext_h_ 00092 00093 #define GLX_H 00094 #define __GLX_glx_h__ 00095 #define __glx_h__ 00096 00097 #include <X11/Xlib.h> 00098 #include <X11/Xutil.h> 00099 #include <X11/Xmd.h> 00100 #include <eq/GL/glew.h> 00101 00102 #ifdef __cplusplus 00103 extern "C" { 00104 #endif 00105 00106 /* ---------------------------- GLX_VERSION_1_0 --------------------------- */ 00107 00108 #ifndef GLX_VERSION_1_0 00109 #define GLX_VERSION_1_0 1 00110 00111 #define GLX_USE_GL 1 00112 #define GLX_BUFFER_SIZE 2 00113 #define GLX_LEVEL 3 00114 #define GLX_RGBA 4 00115 #define GLX_DOUBLEBUFFER 5 00116 #define GLX_STEREO 6 00117 #define GLX_AUX_BUFFERS 7 00118 #define GLX_RED_SIZE 8 00119 #define GLX_GREEN_SIZE 9 00120 #define GLX_BLUE_SIZE 10 00121 #define GLX_ALPHA_SIZE 11 00122 #define GLX_DEPTH_SIZE 12 00123 #define GLX_STENCIL_SIZE 13 00124 #define GLX_ACCUM_RED_SIZE 14 00125 #define GLX_ACCUM_GREEN_SIZE 15 00126 #define GLX_ACCUM_BLUE_SIZE 16 00127 #define GLX_ACCUM_ALPHA_SIZE 17 00128 #define GLX_BAD_SCREEN 1 00129 #define GLX_BAD_ATTRIBUTE 2 00130 #define GLX_NO_EXTENSION 3 00131 #define GLX_BAD_VISUAL 4 00132 #define GLX_BAD_CONTEXT 5 00133 #define GLX_BAD_VALUE 6 00134 #define GLX_BAD_ENUM 7 00135 00136 typedef XID GLXDrawable; 00137 typedef XID GLXPixmap; 00138 #ifdef __sun 00139 typedef struct __glXContextRec *GLXContext; 00140 #else 00141 typedef struct __GLXcontextRec *GLXContext; 00142 #endif 00143 00144 typedef unsigned int GLXVideoDeviceNV; 00145 00146 extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); 00147 extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); 00148 extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); 00149 extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); 00150 extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); 00151 extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); 00152 extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); 00153 extern void glXDestroyContext (Display *dpy, GLXContext ctx); 00154 extern Bool glXIsDirect (Display *dpy, GLXContext ctx); 00155 extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); 00156 extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); 00157 extern GLXContext glXGetCurrentContext (void); 00158 extern GLXDrawable glXGetCurrentDrawable (void); 00159 extern void glXWaitGL (void); 00160 extern void glXWaitX (void); 00161 extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); 00162 extern void glXUseXFont (Font font, int first, int count, int listBase); 00163 00164 #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) 00165 00166 #endif /* GLX_VERSION_1_0 */ 00167 00168 /* ---------------------------- GLX_VERSION_1_1 --------------------------- */ 00169 00170 #ifndef GLX_VERSION_1_1 00171 #define GLX_VERSION_1_1 00172 00173 #define GLX_VENDOR 0x1 00174 #define GLX_VERSION 0x2 00175 #define GLX_EXTENSIONS 0x3 00176 00177 extern const char* glXQueryExtensionsString (Display *dpy, int screen); 00178 extern const char* glXGetClientString (Display *dpy, int name); 00179 extern const char* glXQueryServerString (Display *dpy, int screen, int name); 00180 00181 #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) 00182 00183 #endif /* GLX_VERSION_1_1 */ 00184 00185 /* ---------------------------- GLX_VERSION_1_2 ---------------------------- */ 00186 00187 #ifndef GLX_VERSION_1_2 00188 #define GLX_VERSION_1_2 1 00189 00190 typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void); 00191 00192 #define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay) 00193 00194 #define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2) 00195 00196 #endif /* GLX_VERSION_1_2 */ 00197 00198 /* ---------------------------- GLX_VERSION_1_3 ---------------------------- */ 00199 00200 #ifndef GLX_VERSION_1_3 00201 #define GLX_VERSION_1_3 1 00202 00203 #define GLX_RGBA_BIT 0x00000001 00204 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 00205 #define GLX_WINDOW_BIT 0x00000001 00206 #define GLX_COLOR_INDEX_BIT 0x00000002 00207 #define GLX_PIXMAP_BIT 0x00000002 00208 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 00209 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 00210 #define GLX_PBUFFER_BIT 0x00000004 00211 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 00212 #define GLX_AUX_BUFFERS_BIT 0x00000010 00213 #define GLX_CONFIG_CAVEAT 0x20 00214 #define GLX_DEPTH_BUFFER_BIT 0x00000020 00215 #define GLX_X_VISUAL_TYPE 0x22 00216 #define GLX_TRANSPARENT_TYPE 0x23 00217 #define GLX_TRANSPARENT_INDEX_VALUE 0x24 00218 #define GLX_TRANSPARENT_RED_VALUE 0x25 00219 #define GLX_TRANSPARENT_GREEN_VALUE 0x26 00220 #define GLX_TRANSPARENT_BLUE_VALUE 0x27 00221 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28 00222 #define GLX_STENCIL_BUFFER_BIT 0x00000040 00223 #define GLX_ACCUM_BUFFER_BIT 0x00000080 00224 #define GLX_NONE 0x8000 00225 #define GLX_SLOW_CONFIG 0x8001 00226 #define GLX_TRUE_COLOR 0x8002 00227 #define GLX_DIRECT_COLOR 0x8003 00228 #define GLX_PSEUDO_COLOR 0x8004 00229 #define GLX_STATIC_COLOR 0x8005 00230 #define GLX_GRAY_SCALE 0x8006 00231 #define GLX_STATIC_GRAY 0x8007 00232 #define GLX_TRANSPARENT_RGB 0x8008 00233 #define GLX_TRANSPARENT_INDEX 0x8009 00234 #define GLX_VISUAL_ID 0x800B 00235 #define GLX_SCREEN 0x800C 00236 #define GLX_NON_CONFORMANT_CONFIG 0x800D 00237 #define GLX_DRAWABLE_TYPE 0x8010 00238 #define GLX_RENDER_TYPE 0x8011 00239 #define GLX_X_RENDERABLE 0x8012 00240 #define GLX_FBCONFIG_ID 0x8013 00241 #define GLX_RGBA_TYPE 0x8014 00242 #define GLX_COLOR_INDEX_TYPE 0x8015 00243 #define GLX_MAX_PBUFFER_WIDTH 0x8016 00244 #define GLX_MAX_PBUFFER_HEIGHT 0x8017 00245 #define GLX_MAX_PBUFFER_PIXELS 0x8018 00246 #define GLX_PRESERVED_CONTENTS 0x801B 00247 #define GLX_LARGEST_PBUFFER 0x801C 00248 #define GLX_WIDTH 0x801D 00249 #define GLX_HEIGHT 0x801E 00250 #define GLX_EVENT_MASK 0x801F 00251 #define GLX_DAMAGED 0x8020 00252 #define GLX_SAVED 0x8021 00253 #define GLX_WINDOW 0x8022 00254 #define GLX_PBUFFER 0x8023 00255 #define GLX_PBUFFER_HEIGHT 0x8040 00256 #define GLX_PBUFFER_WIDTH 0x8041 00257 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000 00258 #define GLX_DONT_CARE 0xFFFFFFFF 00259 00260 typedef XID GLXFBConfigID; 00261 typedef XID GLXPbuffer; 00262 typedef XID GLXWindow; 00263 typedef struct __GLXFBConfigRec *GLXFBConfig; 00264 00265 typedef struct { 00266 int event_type; 00267 int draw_type; 00268 unsigned long serial; 00269 Bool send_event; 00270 Display *display; 00271 GLXDrawable drawable; 00272 unsigned int buffer_mask; 00273 unsigned int aux_buffer; 00274 int x, y; 00275 int width, height; 00276 int count; 00277 } GLXPbufferClobberEvent; 00278 typedef union __GLXEvent { 00279 GLXPbufferClobberEvent glxpbufferclobber; 00280 long pad[24]; 00281 } GLXEvent; 00282 00283 typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); 00284 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); 00285 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); 00286 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); 00287 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); 00288 typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); 00289 typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); 00290 typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); 00291 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); 00292 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); 00293 typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); 00294 typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); 00295 typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); 00296 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 00297 typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); 00298 typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); 00299 typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); 00300 00301 #define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig) 00302 #define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext) 00303 #define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer) 00304 #define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap) 00305 #define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow) 00306 #define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer) 00307 #define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap) 00308 #define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow) 00309 #define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable) 00310 #define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib) 00311 #define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs) 00312 #define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent) 00313 #define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig) 00314 #define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent) 00315 #define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext) 00316 #define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable) 00317 #define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent) 00318 00319 #define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3) 00320 00321 #endif /* GLX_VERSION_1_3 */ 00322 00323 /* ---------------------------- GLX_VERSION_1_4 ---------------------------- */ 00324 00325 #ifndef GLX_VERSION_1_4 00326 #define GLX_VERSION_1_4 1 00327 00328 #define GLX_SAMPLE_BUFFERS 100000 00329 #define GLX_SAMPLES 100001 00330 00331 extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); 00332 00333 #define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4) 00334 00335 #endif /* GLX_VERSION_1_4 */ 00336 00337 /* -------------------------- GLX_3DFX_multisample ------------------------- */ 00338 00339 #ifndef GLX_3DFX_multisample 00340 #define GLX_3DFX_multisample 1 00341 00342 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050 00343 #define GLX_SAMPLES_3DFX 0x8051 00344 00345 #define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample) 00346 00347 #endif /* GLX_3DFX_multisample */ 00348 00349 /* ------------------------ GLX_AMD_gpu_association ------------------------ */ 00350 00351 #ifndef GLX_AMD_gpu_association 00352 #define GLX_AMD_gpu_association 1 00353 00354 #define GLX_GPU_VENDOR_AMD 0x1F00 00355 #define GLX_GPU_RENDERER_STRING_AMD 0x1F01 00356 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 00357 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 00358 #define GLX_GPU_RAM_AMD 0x21A3 00359 #define GLX_GPU_CLOCK_AMD 0x21A4 00360 #define GLX_GPU_NUM_PIPES_AMD 0x21A5 00361 #define GLX_GPU_NUM_SIMD_AMD 0x21A6 00362 #define GLX_GPU_NUM_RB_AMD 0x21A7 00363 #define GLX_GPU_NUM_SPI_AMD 0x21A8 00364 00365 #define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association) 00366 00367 #endif /* GLX_AMD_gpu_association */ 00368 00369 /* ------------------------- GLX_ARB_create_context ------------------------ */ 00370 00371 #ifndef GLX_ARB_create_context 00372 #define GLX_ARB_create_context 1 00373 00374 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 00375 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 00376 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 00377 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 00378 #define GLX_CONTEXT_FLAGS_ARB 0x2094 00379 00380 typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); 00381 00382 #define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB) 00383 00384 #define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context) 00385 00386 #endif /* GLX_ARB_create_context */ 00387 00388 /* --------------------- GLX_ARB_create_context_profile -------------------- */ 00389 00390 #ifndef GLX_ARB_create_context_profile 00391 #define GLX_ARB_create_context_profile 1 00392 00393 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 00394 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 00395 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 00396 00397 #define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile) 00398 00399 #endif /* GLX_ARB_create_context_profile */ 00400 00401 /* ------------------- GLX_ARB_create_context_robustness ------------------- */ 00402 00403 #ifndef GLX_ARB_create_context_robustness 00404 #define GLX_ARB_create_context_robustness 1 00405 00406 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 00407 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 00408 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 00409 #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 00410 00411 #define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness) 00412 00413 #endif /* GLX_ARB_create_context_robustness */ 00414 00415 /* ------------------------- GLX_ARB_fbconfig_float ------------------------ */ 00416 00417 #ifndef GLX_ARB_fbconfig_float 00418 #define GLX_ARB_fbconfig_float 1 00419 00420 #define GLX_RGBA_FLOAT_BIT 0x00000004 00421 #define GLX_RGBA_FLOAT_TYPE 0x20B9 00422 00423 #define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float) 00424 00425 #endif /* GLX_ARB_fbconfig_float */ 00426 00427 /* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */ 00428 00429 #ifndef GLX_ARB_framebuffer_sRGB 00430 #define GLX_ARB_framebuffer_sRGB 1 00431 00432 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 00433 00434 #define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB) 00435 00436 #endif /* GLX_ARB_framebuffer_sRGB */ 00437 00438 /* ------------------------ GLX_ARB_get_proc_address ----------------------- */ 00439 00440 #ifndef GLX_ARB_get_proc_address 00441 #define GLX_ARB_get_proc_address 1 00442 00443 extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); 00444 00445 #define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address) 00446 00447 #endif /* GLX_ARB_get_proc_address */ 00448 00449 /* -------------------------- GLX_ARB_multisample -------------------------- */ 00450 00451 #ifndef GLX_ARB_multisample 00452 #define GLX_ARB_multisample 1 00453 00454 #define GLX_SAMPLE_BUFFERS_ARB 100000 00455 #define GLX_SAMPLES_ARB 100001 00456 00457 #define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample) 00458 00459 #endif /* GLX_ARB_multisample */ 00460 00461 /* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */ 00462 00463 #ifndef GLX_ARB_vertex_buffer_object 00464 #define GLX_ARB_vertex_buffer_object 1 00465 00466 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 00467 00468 #define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object) 00469 00470 #endif /* GLX_ARB_vertex_buffer_object */ 00471 00472 /* ----------------------- GLX_ATI_pixel_format_float ---------------------- */ 00473 00474 #ifndef GLX_ATI_pixel_format_float 00475 #define GLX_ATI_pixel_format_float 1 00476 00477 #define GLX_RGBA_FLOAT_ATI_BIT 0x00000100 00478 00479 #define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float) 00480 00481 #endif /* GLX_ATI_pixel_format_float */ 00482 00483 /* ------------------------- GLX_ATI_render_texture ------------------------ */ 00484 00485 #ifndef GLX_ATI_render_texture 00486 #define GLX_ATI_render_texture 1 00487 00488 #define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800 00489 #define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801 00490 #define GLX_TEXTURE_FORMAT_ATI 0x9802 00491 #define GLX_TEXTURE_TARGET_ATI 0x9803 00492 #define GLX_MIPMAP_TEXTURE_ATI 0x9804 00493 #define GLX_TEXTURE_RGB_ATI 0x9805 00494 #define GLX_TEXTURE_RGBA_ATI 0x9806 00495 #define GLX_NO_TEXTURE_ATI 0x9807 00496 #define GLX_TEXTURE_CUBE_MAP_ATI 0x9808 00497 #define GLX_TEXTURE_1D_ATI 0x9809 00498 #define GLX_TEXTURE_2D_ATI 0x980A 00499 #define GLX_MIPMAP_LEVEL_ATI 0x980B 00500 #define GLX_CUBE_MAP_FACE_ATI 0x980C 00501 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D 00502 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E 00503 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F 00504 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810 00505 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811 00506 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812 00507 #define GLX_FRONT_LEFT_ATI 0x9813 00508 #define GLX_FRONT_RIGHT_ATI 0x9814 00509 #define GLX_BACK_LEFT_ATI 0x9815 00510 #define GLX_BACK_RIGHT_ATI 0x9816 00511 #define GLX_AUX0_ATI 0x9817 00512 #define GLX_AUX1_ATI 0x9818 00513 #define GLX_AUX2_ATI 0x9819 00514 #define GLX_AUX3_ATI 0x981A 00515 #define GLX_AUX4_ATI 0x981B 00516 #define GLX_AUX5_ATI 0x981C 00517 #define GLX_AUX6_ATI 0x981D 00518 #define GLX_AUX7_ATI 0x981E 00519 #define GLX_AUX8_ATI 0x981F 00520 #define GLX_AUX9_ATI 0x9820 00521 #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821 00522 #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822 00523 00524 typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); 00525 typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list); 00526 typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); 00527 00528 #define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI) 00529 #define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI) 00530 #define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI) 00531 00532 #define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture) 00533 00534 #endif /* GLX_ATI_render_texture */ 00535 00536 /* ------------------- GLX_EXT_create_context_es2_profile ------------------ */ 00537 00538 #ifndef GLX_EXT_create_context_es2_profile 00539 #define GLX_EXT_create_context_es2_profile 1 00540 00541 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 00542 00543 #define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile) 00544 00545 #endif /* GLX_EXT_create_context_es2_profile */ 00546 00547 /* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */ 00548 00549 #ifndef GLX_EXT_fbconfig_packed_float 00550 #define GLX_EXT_fbconfig_packed_float 1 00551 00552 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 00553 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 00554 00555 #define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float) 00556 00557 #endif /* GLX_EXT_fbconfig_packed_float */ 00558 00559 /* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */ 00560 00561 #ifndef GLX_EXT_framebuffer_sRGB 00562 #define GLX_EXT_framebuffer_sRGB 1 00563 00564 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 00565 00566 #define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB) 00567 00568 #endif /* GLX_EXT_framebuffer_sRGB */ 00569 00570 /* ------------------------- GLX_EXT_import_context ------------------------ */ 00571 00572 #ifndef GLX_EXT_import_context 00573 #define GLX_EXT_import_context 1 00574 00575 #define GLX_SHARE_CONTEXT_EXT 0x800A 00576 #define GLX_VISUAL_ID_EXT 0x800B 00577 #define GLX_SCREEN_EXT 0x800C 00578 00579 typedef XID GLXContextID; 00580 00581 typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context); 00582 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); 00583 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID); 00584 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value); 00585 00586 #define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT) 00587 #define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT) 00588 #define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT) 00589 #define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT) 00590 00591 #define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context) 00592 00593 #endif /* GLX_EXT_import_context */ 00594 00595 /* -------------------------- GLX_EXT_scene_marker ------------------------- */ 00596 00597 #ifndef GLX_EXT_scene_marker 00598 #define GLX_EXT_scene_marker 1 00599 00600 #define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker) 00601 00602 #endif /* GLX_EXT_scene_marker */ 00603 00604 /* -------------------------- GLX_EXT_swap_control ------------------------- */ 00605 00606 #ifndef GLX_EXT_swap_control 00607 #define GLX_EXT_swap_control 1 00608 00609 #define GLX_SWAP_INTERVAL_EXT 0x20F1 00610 #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 00611 00612 typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval); 00613 00614 #define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT) 00615 00616 #define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control) 00617 00618 #endif /* GLX_EXT_swap_control */ 00619 00620 /* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */ 00621 00622 #ifndef GLX_EXT_texture_from_pixmap 00623 #define GLX_EXT_texture_from_pixmap 1 00624 00625 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001 00626 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002 00627 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 00628 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 00629 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 00630 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 00631 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 00632 #define GLX_Y_INVERTED_EXT 0x20D4 00633 #define GLX_TEXTURE_FORMAT_EXT 0x20D5 00634 #define GLX_TEXTURE_TARGET_EXT 0x20D6 00635 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7 00636 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 00637 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 00638 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA 00639 #define GLX_TEXTURE_1D_EXT 0x20DB 00640 #define GLX_TEXTURE_2D_EXT 0x20DC 00641 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD 00642 #define GLX_FRONT_LEFT_EXT 0x20DE 00643 #define GLX_FRONT_RIGHT_EXT 0x20DF 00644 #define GLX_BACK_LEFT_EXT 0x20E0 00645 #define GLX_BACK_RIGHT_EXT 0x20E1 00646 #define GLX_AUX0_EXT 0x20E2 00647 #define GLX_AUX1_EXT 0x20E3 00648 #define GLX_AUX2_EXT 0x20E4 00649 #define GLX_AUX3_EXT 0x20E5 00650 #define GLX_AUX4_EXT 0x20E6 00651 #define GLX_AUX5_EXT 0x20E7 00652 #define GLX_AUX6_EXT 0x20E8 00653 #define GLX_AUX7_EXT 0x20E9 00654 #define GLX_AUX8_EXT 0x20EA 00655 #define GLX_AUX9_EXT 0x20EB 00656 00657 typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list); 00658 typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer); 00659 00660 #define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT) 00661 #define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT) 00662 00663 #define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap) 00664 00665 #endif /* GLX_EXT_texture_from_pixmap */ 00666 00667 /* -------------------------- GLX_EXT_visual_info -------------------------- */ 00668 00669 #ifndef GLX_EXT_visual_info 00670 #define GLX_EXT_visual_info 1 00671 00672 #define GLX_X_VISUAL_TYPE_EXT 0x22 00673 #define GLX_TRANSPARENT_TYPE_EXT 0x23 00674 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 00675 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 00676 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 00677 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 00678 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 00679 #define GLX_NONE_EXT 0x8000 00680 #define GLX_TRUE_COLOR_EXT 0x8002 00681 #define GLX_DIRECT_COLOR_EXT 0x8003 00682 #define GLX_PSEUDO_COLOR_EXT 0x8004 00683 #define GLX_STATIC_COLOR_EXT 0x8005 00684 #define GLX_GRAY_SCALE_EXT 0x8006 00685 #define GLX_STATIC_GRAY_EXT 0x8007 00686 #define GLX_TRANSPARENT_RGB_EXT 0x8008 00687 #define GLX_TRANSPARENT_INDEX_EXT 0x8009 00688 00689 #define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info) 00690 00691 #endif /* GLX_EXT_visual_info */ 00692 00693 /* ------------------------- GLX_EXT_visual_rating ------------------------- */ 00694 00695 #ifndef GLX_EXT_visual_rating 00696 #define GLX_EXT_visual_rating 1 00697 00698 #define GLX_VISUAL_CAVEAT_EXT 0x20 00699 #define GLX_SLOW_VISUAL_EXT 0x8001 00700 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D 00701 00702 #define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating) 00703 00704 #endif /* GLX_EXT_visual_rating */ 00705 00706 /* -------------------------- GLX_INTEL_swap_event ------------------------- */ 00707 00708 #ifndef GLX_INTEL_swap_event 00709 #define GLX_INTEL_swap_event 1 00710 00711 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 00712 #define GLX_COPY_COMPLETE_INTEL 0x8181 00713 #define GLX_FLIP_COMPLETE_INTEL 0x8182 00714 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 00715 00716 #define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event) 00717 00718 #endif /* GLX_INTEL_swap_event */ 00719 00720 /* -------------------------- GLX_MESA_agp_offset -------------------------- */ 00721 00722 #ifndef GLX_MESA_agp_offset 00723 #define GLX_MESA_agp_offset 1 00724 00725 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer); 00726 00727 #define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA) 00728 00729 #define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset) 00730 00731 #endif /* GLX_MESA_agp_offset */ 00732 00733 /* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */ 00734 00735 #ifndef GLX_MESA_copy_sub_buffer 00736 #define GLX_MESA_copy_sub_buffer 1 00737 00738 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height); 00739 00740 #define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA) 00741 00742 #define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer) 00743 00744 #endif /* GLX_MESA_copy_sub_buffer */ 00745 00746 /* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */ 00747 00748 #ifndef GLX_MESA_pixmap_colormap 00749 #define GLX_MESA_pixmap_colormap 1 00750 00751 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); 00752 00753 #define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA) 00754 00755 #define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap) 00756 00757 #endif /* GLX_MESA_pixmap_colormap */ 00758 00759 /* ------------------------ GLX_MESA_release_buffers ----------------------- */ 00760 00761 #ifndef GLX_MESA_release_buffers 00762 #define GLX_MESA_release_buffers 1 00763 00764 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d); 00765 00766 #define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA) 00767 00768 #define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers) 00769 00770 #endif /* GLX_MESA_release_buffers */ 00771 00772 /* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */ 00773 00774 #ifndef GLX_MESA_set_3dfx_mode 00775 #define GLX_MESA_set_3dfx_mode 1 00776 00777 #define GLX_3DFX_WINDOW_MODE_MESA 0x1 00778 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 00779 00780 typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode); 00781 00782 #define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA) 00783 00784 #define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode) 00785 00786 #endif /* GLX_MESA_set_3dfx_mode */ 00787 00788 /* ------------------------- GLX_MESA_swap_control ------------------------- */ 00789 00790 #ifndef GLX_MESA_swap_control 00791 #define GLX_MESA_swap_control 1 00792 00793 typedef int ( * PFNGLXGETSWAPINTERVALMESAPROC) (void); 00794 typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval); 00795 00796 #define glXGetSwapIntervalMESA GLXEW_GET_FUN(__glewXGetSwapIntervalMESA) 00797 #define glXSwapIntervalMESA GLXEW_GET_FUN(__glewXSwapIntervalMESA) 00798 00799 #define GLXEW_MESA_swap_control GLXEW_GET_VAR(__GLXEW_MESA_swap_control) 00800 00801 #endif /* GLX_MESA_swap_control */ 00802 00803 /* --------------------------- GLX_NV_copy_image --------------------------- */ 00804 00805 #ifndef GLX_NV_copy_image 00806 #define GLX_NV_copy_image 1 00807 00808 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); 00809 00810 #define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV) 00811 00812 #define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image) 00813 00814 #endif /* GLX_NV_copy_image */ 00815 00816 /* -------------------------- GLX_NV_float_buffer -------------------------- */ 00817 00818 #ifndef GLX_NV_float_buffer 00819 #define GLX_NV_float_buffer 1 00820 00821 #define GLX_FLOAT_COMPONENTS_NV 0x20B0 00822 00823 #define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer) 00824 00825 #endif /* GLX_NV_float_buffer */ 00826 00827 /* ---------------------- GLX_NV_multisample_coverage ---------------------- */ 00828 00829 #ifndef GLX_NV_multisample_coverage 00830 #define GLX_NV_multisample_coverage 1 00831 00832 #define GLX_COLOR_SAMPLES_NV 0x20B3 00833 #define GLX_COVERAGE_SAMPLES_NV 100001 00834 00835 #define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage) 00836 00837 #endif /* GLX_NV_multisample_coverage */ 00838 00839 /* -------------------------- GLX_NV_present_video ------------------------- */ 00840 00841 #ifndef GLX_NV_present_video 00842 #define GLX_NV_present_video 1 00843 00844 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 00845 00846 typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); 00847 typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); 00848 00849 #define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV) 00850 #define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV) 00851 00852 #define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video) 00853 00854 #endif /* GLX_NV_present_video */ 00855 00856 /* --------------------------- GLX_NV_swap_group --------------------------- */ 00857 00858 #ifndef GLX_NV_swap_group 00859 #define GLX_NV_swap_group 1 00860 00861 typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier); 00862 typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group); 00863 typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count); 00864 typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); 00865 typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); 00866 typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen); 00867 00868 #define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV) 00869 #define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV) 00870 #define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV) 00871 #define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV) 00872 #define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV) 00873 #define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV) 00874 00875 #define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group) 00876 00877 #endif /* GLX_NV_swap_group */ 00878 00879 /* ----------------------- GLX_NV_vertex_array_range ----------------------- */ 00880 00881 #ifndef GLX_NV_vertex_array_range 00882 #define GLX_NV_vertex_array_range 1 00883 00884 typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); 00885 typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer); 00886 00887 #define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV) 00888 #define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV) 00889 00890 #define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range) 00891 00892 #endif /* GLX_NV_vertex_array_range */ 00893 00894 /* -------------------------- GLX_NV_video_capture ------------------------- */ 00895 00896 #ifndef GLX_NV_video_capture 00897 #define GLX_NV_video_capture 1 00898 00899 #define GLX_DEVICE_ID_NV 0x20CD 00900 #define GLX_UNIQUE_ID_NV 0x20CE 00901 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF 00902 00903 typedef XID GLXVideoCaptureDeviceNV; 00904 00905 typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display* dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); 00906 typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display* dpy, int screen, int *nelements); 00907 typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); 00908 typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); 00909 typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); 00910 00911 #define glXBindVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXBindVideoCaptureDeviceNV) 00912 #define glXEnumerateVideoCaptureDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoCaptureDevicesNV) 00913 #define glXLockVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXLockVideoCaptureDeviceNV) 00914 #define glXQueryVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXQueryVideoCaptureDeviceNV) 00915 #define glXReleaseVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoCaptureDeviceNV) 00916 00917 #define GLXEW_NV_video_capture GLXEW_GET_VAR(__GLXEW_NV_video_capture) 00918 00919 #endif /* GLX_NV_video_capture */ 00920 00921 /* -------------------------- GLX_NV_video_output -------------------------- */ 00922 00923 #ifndef GLX_NV_video_output 00924 #define GLX_NV_video_output 1 00925 00926 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3 00927 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 00928 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 00929 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 00930 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 00931 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8 00932 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 00933 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA 00934 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB 00935 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC 00936 00937 typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); 00938 typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); 00939 typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); 00940 typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice); 00941 typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf); 00942 typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); 00943 00944 #define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV) 00945 #define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV) 00946 #define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV) 00947 #define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV) 00948 #define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV) 00949 #define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV) 00950 00951 #define GLXEW_NV_video_output GLXEW_GET_VAR(__GLXEW_NV_video_output) 00952 00953 #endif /* GLX_NV_video_output */ 00954 00955 /* -------------------------- GLX_OML_swap_method -------------------------- */ 00956 00957 #ifndef GLX_OML_swap_method 00958 #define GLX_OML_swap_method 1 00959 00960 #define GLX_SWAP_METHOD_OML 0x8060 00961 #define GLX_SWAP_EXCHANGE_OML 0x8061 00962 #define GLX_SWAP_COPY_OML 0x8062 00963 #define GLX_SWAP_UNDEFINED_OML 0x8063 00964 00965 #define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method) 00966 00967 #endif /* GLX_OML_swap_method */ 00968 00969 /* -------------------------- GLX_OML_sync_control ------------------------- */ 00970 00971 #ifndef GLX_OML_sync_control 00972 #define GLX_OML_sync_control 1 00973 00974 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator); 00975 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc); 00976 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); 00977 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); 00978 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc); 00979 00980 #define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML) 00981 #define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML) 00982 #define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML) 00983 #define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML) 00984 #define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML) 00985 00986 #define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control) 00987 00988 #endif /* GLX_OML_sync_control */ 00989 00990 /* ------------------------ GLX_SGIS_blended_overlay ----------------------- */ 00991 00992 #ifndef GLX_SGIS_blended_overlay 00993 #define GLX_SGIS_blended_overlay 1 00994 00995 #define GLX_BLENDED_RGBA_SGIS 0x8025 00996 00997 #define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay) 00998 00999 #endif /* GLX_SGIS_blended_overlay */ 01000 01001 /* -------------------------- GLX_SGIS_color_range ------------------------- */ 01002 01003 #ifndef GLX_SGIS_color_range 01004 #define GLX_SGIS_color_range 1 01005 01006 #define GLX_MIN_RED_SGIS 0 01007 #define GLX_MAX_GREEN_SGIS 0 01008 #define GLX_MIN_BLUE_SGIS 0 01009 #define GLX_MAX_ALPHA_SGIS 0 01010 #define GLX_MIN_GREEN_SGIS 0 01011 #define GLX_MIN_ALPHA_SGIS 0 01012 #define GLX_MAX_RED_SGIS 0 01013 #define GLX_EXTENDED_RANGE_SGIS 0 01014 #define GLX_MAX_BLUE_SGIS 0 01015 01016 #define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range) 01017 01018 #endif /* GLX_SGIS_color_range */ 01019 01020 /* -------------------------- GLX_SGIS_multisample ------------------------- */ 01021 01022 #ifndef GLX_SGIS_multisample 01023 #define GLX_SGIS_multisample 1 01024 01025 #define GLX_SAMPLE_BUFFERS_SGIS 100000 01026 #define GLX_SAMPLES_SGIS 100001 01027 01028 #define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample) 01029 01030 #endif /* GLX_SGIS_multisample */ 01031 01032 /* ---------------------- GLX_SGIS_shared_multisample ---------------------- */ 01033 01034 #ifndef GLX_SGIS_shared_multisample 01035 #define GLX_SGIS_shared_multisample 1 01036 01037 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 01038 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 01039 01040 #define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample) 01041 01042 #endif /* GLX_SGIS_shared_multisample */ 01043 01044 /* --------------------------- GLX_SGIX_fbconfig --------------------------- */ 01045 01046 #ifndef GLX_SGIX_fbconfig 01047 #define GLX_SGIX_fbconfig 1 01048 01049 #define GLX_WINDOW_BIT_SGIX 0x00000001 01050 #define GLX_RGBA_BIT_SGIX 0x00000001 01051 #define GLX_PIXMAP_BIT_SGIX 0x00000002 01052 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 01053 #define GLX_SCREEN_EXT 0x800C 01054 #define GLX_DRAWABLE_TYPE_SGIX 0x8010 01055 #define GLX_RENDER_TYPE_SGIX 0x8011 01056 #define GLX_X_RENDERABLE_SGIX 0x8012 01057 #define GLX_FBCONFIG_ID_SGIX 0x8013 01058 #define GLX_RGBA_TYPE_SGIX 0x8014 01059 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 01060 01061 typedef XID GLXFBConfigIDSGIX; 01062 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; 01063 01064 typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); 01065 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); 01066 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap); 01067 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value); 01068 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis); 01069 typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config); 01070 01071 #define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX) 01072 #define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX) 01073 #define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX) 01074 #define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX) 01075 #define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX) 01076 #define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX) 01077 01078 #define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig) 01079 01080 #endif /* GLX_SGIX_fbconfig */ 01081 01082 /* --------------------------- GLX_SGIX_hyperpipe -------------------------- */ 01083 01084 #ifndef GLX_SGIX_hyperpipe 01085 #define GLX_SGIX_hyperpipe 1 01086 01087 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 01088 #define GLX_PIPE_RECT_SGIX 0x00000001 01089 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 01090 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 01091 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 01092 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 01093 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 01094 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 01095 #define GLX_BAD_HYPERPIPE_SGIX 92 01096 #define GLX_HYPERPIPE_ID_SGIX 0x8030 01097 01098 typedef struct { 01099 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 01100 int networkId; 01101 } GLXHyperpipeNetworkSGIX; 01102 typedef struct { 01103 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 01104 int XOrigin; 01105 int YOrigin; 01106 int maxHeight; 01107 int maxWidth; 01108 } GLXPipeRectLimits; 01109 typedef struct { 01110 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 01111 int channel; 01112 unsigned int participationType; 01113 int timeSlice; 01114 } GLXHyperpipeConfigSGIX; 01115 typedef struct { 01116 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 01117 int srcXOrigin; 01118 int srcYOrigin; 01119 int srcWidth; 01120 int srcHeight; 01121 int destXOrigin; 01122 int destYOrigin; 01123 int destWidth; 01124 int destHeight; 01125 } GLXPipeRect; 01126 01127 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); 01128 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); 01129 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); 01130 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); 01131 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); 01132 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); 01133 typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); 01134 typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); 01135 01136 #define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX) 01137 #define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX) 01138 #define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX) 01139 #define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX) 01140 #define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX) 01141 #define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX) 01142 #define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX) 01143 #define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX) 01144 01145 #define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe) 01146 01147 #endif /* GLX_SGIX_hyperpipe */ 01148 01149 /* ---------------------------- GLX_SGIX_pbuffer --------------------------- */ 01150 01151 #ifndef GLX_SGIX_pbuffer 01152 #define GLX_SGIX_pbuffer 1 01153 01154 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 01155 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 01156 #define GLX_PBUFFER_BIT_SGIX 0x00000004 01157 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 01158 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 01159 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 01160 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 01161 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 01162 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 01163 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 01164 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 01165 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 01166 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 01167 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 01168 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A 01169 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B 01170 #define GLX_LARGEST_PBUFFER_SGIX 0x801C 01171 #define GLX_WIDTH_SGIX 0x801D 01172 #define GLX_HEIGHT_SGIX 0x801E 01173 #define GLX_EVENT_MASK_SGIX 0x801F 01174 #define GLX_DAMAGED_SGIX 0x8020 01175 #define GLX_SAVED_SGIX 0x8021 01176 #define GLX_WINDOW_SGIX 0x8022 01177 #define GLX_PBUFFER_SGIX 0x8023 01178 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 01179 01180 typedef XID GLXPbufferSGIX; 01181 typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX; 01182 01183 typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list); 01184 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf); 01185 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask); 01186 typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value); 01187 typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask); 01188 01189 #define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX) 01190 #define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX) 01191 #define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX) 01192 #define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX) 01193 #define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX) 01194 01195 #define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer) 01196 01197 #endif /* GLX_SGIX_pbuffer */ 01198 01199 /* ------------------------- GLX_SGIX_swap_barrier ------------------------- */ 01200 01201 #ifndef GLX_SGIX_swap_barrier 01202 #define GLX_SGIX_swap_barrier 1 01203 01204 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); 01205 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); 01206 01207 #define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX) 01208 #define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX) 01209 01210 #define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier) 01211 01212 #endif /* GLX_SGIX_swap_barrier */ 01213 01214 /* -------------------------- GLX_SGIX_swap_group -------------------------- */ 01215 01216 #ifndef GLX_SGIX_swap_group 01217 #define GLX_SGIX_swap_group 1 01218 01219 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); 01220 01221 #define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX) 01222 01223 #define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group) 01224 01225 #endif /* GLX_SGIX_swap_group */ 01226 01227 /* ------------------------- GLX_SGIX_video_resize ------------------------- */ 01228 01229 #ifndef GLX_SGIX_video_resize 01230 #define GLX_SGIX_video_resize 1 01231 01232 #define GLX_SYNC_FRAME_SGIX 0x00000000 01233 #define GLX_SYNC_SWAP_SGIX 0x00000001 01234 01235 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window); 01236 typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h); 01237 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype); 01238 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h); 01239 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); 01240 01241 #define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX) 01242 #define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX) 01243 #define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX) 01244 #define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX) 01245 #define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX) 01246 01247 #define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize) 01248 01249 #endif /* GLX_SGIX_video_resize */ 01250 01251 /* ---------------------- GLX_SGIX_visual_select_group --------------------- */ 01252 01253 #ifndef GLX_SGIX_visual_select_group 01254 #define GLX_SGIX_visual_select_group 1 01255 01256 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 01257 01258 #define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group) 01259 01260 #endif /* GLX_SGIX_visual_select_group */ 01261 01262 /* ---------------------------- GLX_SGI_cushion ---------------------------- */ 01263 01264 #ifndef GLX_SGI_cushion 01265 #define GLX_SGI_cushion 1 01266 01267 typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion); 01268 01269 #define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI) 01270 01271 #define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion) 01272 01273 #endif /* GLX_SGI_cushion */ 01274 01275 /* ----------------------- GLX_SGI_make_current_read ----------------------- */ 01276 01277 #ifndef GLX_SGI_make_current_read 01278 #define GLX_SGI_make_current_read 1 01279 01280 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); 01281 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 01282 01283 #define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI) 01284 #define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI) 01285 01286 #define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read) 01287 01288 #endif /* GLX_SGI_make_current_read */ 01289 01290 /* -------------------------- GLX_SGI_swap_control ------------------------- */ 01291 01292 #ifndef GLX_SGI_swap_control 01293 #define GLX_SGI_swap_control 1 01294 01295 typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); 01296 01297 #define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI) 01298 01299 #define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control) 01300 01301 #endif /* GLX_SGI_swap_control */ 01302 01303 /* --------------------------- GLX_SGI_video_sync -------------------------- */ 01304 01305 #ifndef GLX_SGI_video_sync 01306 #define GLX_SGI_video_sync 1 01307 01308 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count); 01309 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count); 01310 01311 #define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI) 01312 #define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI) 01313 01314 #define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync) 01315 01316 #endif /* GLX_SGI_video_sync */ 01317 01318 /* --------------------- GLX_SUN_get_transparent_index --------------------- */ 01319 01320 #ifndef GLX_SUN_get_transparent_index 01321 #define GLX_SUN_get_transparent_index 1 01322 01323 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); 01324 01325 #define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN) 01326 01327 #define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index) 01328 01329 #endif /* GLX_SUN_get_transparent_index */ 01330 01331 /* -------------------------- GLX_SUN_video_resize ------------------------- */ 01332 01333 #ifndef GLX_SUN_video_resize 01334 #define GLX_SUN_video_resize 1 01335 01336 #define GLX_VIDEO_RESIZE_SUN 0x8171 01337 #define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD 01338 01339 typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor); 01340 typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor); 01341 01342 #define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN) 01343 #define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN) 01344 01345 #define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize) 01346 01347 #endif /* GLX_SUN_video_resize */ 01348 01349 /* ------------------------------------------------------------------------- */ 01350 01351 #ifdef GLEW_MX 01352 #define GLXEW_EXPORT 01353 #else 01354 #define GLXEW_EXPORT extern 01355 #endif /* GLEW_MX */ 01356 01357 extern PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay; 01358 01359 extern PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig; 01360 extern PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext; 01361 extern PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer; 01362 extern PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap; 01363 extern PFNGLXCREATEWINDOWPROC __glewXCreateWindow; 01364 extern PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer; 01365 extern PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap; 01366 extern PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow; 01367 extern PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable; 01368 extern PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib; 01369 extern PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs; 01370 extern PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent; 01371 extern PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig; 01372 extern PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent; 01373 extern PFNGLXQUERYCONTEXTPROC __glewXQueryContext; 01374 extern PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable; 01375 extern PFNGLXSELECTEVENTPROC __glewXSelectEvent; 01376 01377 extern PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB; 01378 01379 extern PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI; 01380 extern PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI; 01381 extern PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI; 01382 01383 extern PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT; 01384 extern PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT; 01385 extern PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT; 01386 extern PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT; 01387 01388 extern PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT; 01389 01390 extern PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT; 01391 extern PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT; 01392 01393 extern PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA; 01394 01395 extern PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA; 01396 01397 extern PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA; 01398 01399 extern PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA; 01400 01401 extern PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA; 01402 01403 extern PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA; 01404 extern PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA; 01405 01406 extern PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV; 01407 01408 extern PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV; 01409 extern PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV; 01410 01411 extern PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV; 01412 extern PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV; 01413 extern PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV; 01414 extern PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV; 01415 extern PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV; 01416 extern PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV; 01417 01418 extern PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV; 01419 extern PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV; 01420 01421 extern PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV; 01422 extern PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV; 01423 extern PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV; 01424 extern PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV; 01425 extern PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV; 01426 01427 extern PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV; 01428 extern PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV; 01429 extern PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV; 01430 extern PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV; 01431 extern PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV; 01432 extern PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV; 01433 01434 extern PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML; 01435 extern PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML; 01436 extern PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML; 01437 extern PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML; 01438 extern PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML; 01439 01440 extern PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX; 01441 extern PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX; 01442 extern PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX; 01443 extern PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX; 01444 extern PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX; 01445 extern PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX; 01446 01447 extern PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX; 01448 extern PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX; 01449 extern PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX; 01450 extern PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX; 01451 extern PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX; 01452 extern PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX; 01453 extern PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX; 01454 extern PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX; 01455 01456 extern PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX; 01457 extern PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX; 01458 extern PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX; 01459 extern PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX; 01460 extern PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX; 01461 01462 extern PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX; 01463 extern PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX; 01464 01465 extern PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX; 01466 01467 extern PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX; 01468 extern PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX; 01469 extern PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX; 01470 extern PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX; 01471 extern PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX; 01472 01473 extern PFNGLXCUSHIONSGIPROC __glewXCushionSGI; 01474 01475 extern PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI; 01476 extern PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI; 01477 01478 extern PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI; 01479 01480 extern PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI; 01481 extern PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI; 01482 01483 extern PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN; 01484 01485 extern PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN; 01486 extern PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN; 01487 01488 #if defined(GLEW_MX) 01489 struct GLXEWContextStruct 01490 { 01491 #endif /* GLEW_MX */ 01492 01493 GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_0; 01494 GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_1; 01495 GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_2; 01496 GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_3; 01497 GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_4; 01498 GLXEW_EXPORT GLboolean __GLXEW_3DFX_multisample; 01499 GLXEW_EXPORT GLboolean __GLXEW_AMD_gpu_association; 01500 GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context; 01501 GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_profile; 01502 GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_robustness; 01503 GLXEW_EXPORT GLboolean __GLXEW_ARB_fbconfig_float; 01504 GLXEW_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB; 01505 GLXEW_EXPORT GLboolean __GLXEW_ARB_get_proc_address; 01506 GLXEW_EXPORT GLboolean __GLXEW_ARB_multisample; 01507 GLXEW_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object; 01508 GLXEW_EXPORT GLboolean __GLXEW_ATI_pixel_format_float; 01509 GLXEW_EXPORT GLboolean __GLXEW_ATI_render_texture; 01510 GLXEW_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile; 01511 GLXEW_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float; 01512 GLXEW_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB; 01513 GLXEW_EXPORT GLboolean __GLXEW_EXT_import_context; 01514 GLXEW_EXPORT GLboolean __GLXEW_EXT_scene_marker; 01515 GLXEW_EXPORT GLboolean __GLXEW_EXT_swap_control; 01516 GLXEW_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap; 01517 GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_info; 01518 GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_rating; 01519 GLXEW_EXPORT GLboolean __GLXEW_INTEL_swap_event; 01520 GLXEW_EXPORT GLboolean __GLXEW_MESA_agp_offset; 01521 GLXEW_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer; 01522 GLXEW_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap; 01523 GLXEW_EXPORT GLboolean __GLXEW_MESA_release_buffers; 01524 GLXEW_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode; 01525 GLXEW_EXPORT GLboolean __GLXEW_MESA_swap_control; 01526 GLXEW_EXPORT GLboolean __GLXEW_NV_copy_image; 01527 GLXEW_EXPORT GLboolean __GLXEW_NV_float_buffer; 01528 GLXEW_EXPORT GLboolean __GLXEW_NV_multisample_coverage; 01529 GLXEW_EXPORT GLboolean __GLXEW_NV_present_video; 01530 GLXEW_EXPORT GLboolean __GLXEW_NV_swap_group; 01531 GLXEW_EXPORT GLboolean __GLXEW_NV_vertex_array_range; 01532 GLXEW_EXPORT GLboolean __GLXEW_NV_video_capture; 01533 GLXEW_EXPORT GLboolean __GLXEW_NV_video_output; 01534 GLXEW_EXPORT GLboolean __GLXEW_OML_swap_method; 01535 GLXEW_EXPORT GLboolean __GLXEW_OML_sync_control; 01536 GLXEW_EXPORT GLboolean __GLXEW_SGIS_blended_overlay; 01537 GLXEW_EXPORT GLboolean __GLXEW_SGIS_color_range; 01538 GLXEW_EXPORT GLboolean __GLXEW_SGIS_multisample; 01539 GLXEW_EXPORT GLboolean __GLXEW_SGIS_shared_multisample; 01540 GLXEW_EXPORT GLboolean __GLXEW_SGIX_fbconfig; 01541 GLXEW_EXPORT GLboolean __GLXEW_SGIX_hyperpipe; 01542 GLXEW_EXPORT GLboolean __GLXEW_SGIX_pbuffer; 01543 GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_barrier; 01544 GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_group; 01545 GLXEW_EXPORT GLboolean __GLXEW_SGIX_video_resize; 01546 GLXEW_EXPORT GLboolean __GLXEW_SGIX_visual_select_group; 01547 GLXEW_EXPORT GLboolean __GLXEW_SGI_cushion; 01548 GLXEW_EXPORT GLboolean __GLXEW_SGI_make_current_read; 01549 GLXEW_EXPORT GLboolean __GLXEW_SGI_swap_control; 01550 GLXEW_EXPORT GLboolean __GLXEW_SGI_video_sync; 01551 GLXEW_EXPORT GLboolean __GLXEW_SUN_get_transparent_index; 01552 GLXEW_EXPORT GLboolean __GLXEW_SUN_video_resize; 01553 01554 #ifdef GLEW_MX 01555 }; /* GLXEWContextStruct */ 01556 #endif /* GLEW_MX */ 01557 01558 /* ------------------------------------------------------------------------ */ 01559 01560 #ifdef GLEW_MX 01561 01562 typedef struct GLXEWContextStruct GLXEWContext; 01563 extern GLenum glxewContextInit (GLXEWContext* ctx); 01564 extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name); 01565 01566 #define glxewInit() glxewContextInit(glxewGetContext()) 01567 #define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) 01568 01569 #define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x)) 01570 #define GLXEW_GET_FUN(x) x 01571 01572 #else /* GLEW_MX */ 01573 01574 #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) 01575 #define GLXEW_GET_FUN(x) x 01576 01577 extern GLboolean glxewIsSupported (const char* name); 01578 01579 #endif /* GLEW_MX */ 01580 01581 extern GLboolean glxewGetExtension (const char* name); 01582 01583 #ifdef __cplusplus 01584 } 01585 #endif 01586 01587 #endif /* __glxew_h__ */