| Unuk 1.0

- Main Page
- Classes
- Files

- File List
- File Members

src/Libs/glxext.h
Go to the documentation of this file.

    00001 #ifndef __glxext_h_
    00002 #define __glxext_h_
    00003
    00004 #ifdef __cplusplus
    00005 extern "C" {
    00006 #endif
    00007
    00008 /*
    00009 ** Copyright (c) 2007 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 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
    00032 #define WIN32_LEAN_AND_MEAN 1
    00033 #include <windows.h>
    00034 #endif
    00035
    00036 #ifndef APIENTRY
    00037 #define APIENTRY
    00038 #endif
    00039 #ifndef APIENTRYP
    00040 #define APIENTRYP APIENTRY *
    00041 #endif
    00042 #ifndef GLAPI
    00043 #define GLAPI extern
    00044 #endif
    00045
    00046 /*************************************************************/
    00047
    00048 /* Header file version number, required by OpenGL ABI for Linux */
    00049 /* glxext.h last updated 2008/10/22 */
    00050 /* Current version at http://www.opengl.org/registry/ */
    00051 #define GLX_GLXEXT_VERSION 21
    00052
    00053 #ifndef GLX_VERSION_1_3
    00054 #define GLX_WINDOW_BIT                     0x00000001
    00055 #define GLX_PIXMAP_BIT                     0x00000002
    00056 #define GLX_PBUFFER_BIT                    0x00000004
    00057 #define GLX_RGBA_BIT                       0x00000001
    00058 #define GLX_COLOR_INDEX_BIT                0x00000002
    00059 #define GLX_PBUFFER_CLOBBER_MASK           0x08000000
    00060 #define GLX_FRONT_LEFT_BUFFER_BIT          0x00000001
    00061 #define GLX_FRONT_RIGHT_BUFFER_BIT         0x00000002
    00062 #define GLX_BACK_LEFT_BUFFER_BIT           0x00000004
    00063 #define GLX_BACK_RIGHT_BUFFER_BIT          0x00000008
    00064 #define GLX_AUX_BUFFERS_BIT                0x00000010
    00065 #define GLX_DEPTH_BUFFER_BIT               0x00000020
    00066 #define GLX_STENCIL_BUFFER_BIT             0x00000040
    00067 #define GLX_ACCUM_BUFFER_BIT               0x00000080
    00068 #define GLX_CONFIG_CAVEAT                  0x20
    00069 #define GLX_X_VISUAL_TYPE                  0x22
    00070 #define GLX_TRANSPARENT_TYPE               0x23
    00071 #define GLX_TRANSPARENT_INDEX_VALUE        0x24
    00072 #define GLX_TRANSPARENT_RED_VALUE          0x25
    00073 #define GLX_TRANSPARENT_GREEN_VALUE        0x26
    00074 #define GLX_TRANSPARENT_BLUE_VALUE         0x27
    00075 #define GLX_TRANSPARENT_ALPHA_VALUE        0x28
    00076 #define GLX_DONT_CARE                      0xFFFFFFFF
    00077 #define GLX_NONE                           0x8000
    00078 #define GLX_SLOW_CONFIG                    0x8001
    00079 #define GLX_TRUE_COLOR                     0x8002
    00080 #define GLX_DIRECT_COLOR                   0x8003
    00081 #define GLX_PSEUDO_COLOR                   0x8004
    00082 #define GLX_STATIC_COLOR                   0x8005
    00083 #define GLX_GRAY_SCALE                     0x8006
    00084 #define GLX_STATIC_GRAY                    0x8007
    00085 #define GLX_TRANSPARENT_RGB                0x8008
    00086 #define GLX_TRANSPARENT_INDEX              0x8009
    00087 #define GLX_VISUAL_ID                      0x800B
    00088 #define GLX_SCREEN                         0x800C
    00089 #define GLX_NON_CONFORMANT_CONFIG          0x800D
    00090 #define GLX_DRAWABLE_TYPE                  0x8010
    00091 #define GLX_RENDER_TYPE                    0x8011
    00092 #define GLX_X_RENDERABLE                   0x8012
    00093 #define GLX_FBCONFIG_ID                    0x8013
    00094 #define GLX_RGBA_TYPE                      0x8014
    00095 #define GLX_COLOR_INDEX_TYPE               0x8015
    00096 #define GLX_MAX_PBUFFER_WIDTH              0x8016
    00097 #define GLX_MAX_PBUFFER_HEIGHT             0x8017
    00098 #define GLX_MAX_PBUFFER_PIXELS             0x8018
    00099 #define GLX_PRESERVED_CONTENTS             0x801B
    00100 #define GLX_LARGEST_PBUFFER                0x801C
    00101 #define GLX_WIDTH                          0x801D
    00102 #define GLX_HEIGHT                         0x801E
    00103 #define GLX_EVENT_MASK                     0x801F
    00104 #define GLX_DAMAGED                        0x8020
    00105 #define GLX_SAVED                          0x8021
    00106 #define GLX_WINDOW                         0x8022
    00107 #define GLX_PBUFFER                        0x8023
    00108 #define GLX_PBUFFER_HEIGHT                 0x8040
    00109 #define GLX_PBUFFER_WIDTH                  0x8041
    00110 #endif
    00111
    00112 #ifndef GLX_VERSION_1_4
    00113 #define GLX_SAMPLE_BUFFERS                 100000
    00114 #define GLX_SAMPLES                        100001
    00115 #endif
    00116
    00117 #ifndef GLX_ARB_get_proc_address
    00118 #endif
    00119
    00120 #ifndef GLX_ARB_multisample
    00121 #define GLX_SAMPLE_BUFFERS_ARB             100000
    00122 #define GLX_SAMPLES_ARB                    100001
    00123 #endif
    00124
    00125 #ifndef GLX_ARB_fbconfig_float
    00126 #define GLX_RGBA_FLOAT_TYPE_ARB            0x20B9
    00127 #define GLX_RGBA_FLOAT_BIT_ARB             0x00000004
    00128 #endif
    00129
    00130 #ifndef GLX_ARB_create_context
    00131 #define GLX_CONTEXT_DEBUG_BIT_ARB          0x00000001
    00132 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
    00133 #define GLX_CONTEXT_MAJOR_VERSION_ARB      0x2091
    00134 #define GLX_CONTEXT_MINOR_VERSION_ARB      0x2092
    00135 #define GLX_CONTEXT_FLAGS_ARB              0x2094
    00136 #endif
    00137
    00138 #ifndef GLX_SGIS_multisample
    00139 #define GLX_SAMPLE_BUFFERS_SGIS            100000
    00140 #define GLX_SAMPLES_SGIS                   100001
    00141 #endif
    00142
    00143 #ifndef GLX_EXT_visual_info
    00144 #define GLX_X_VISUAL_TYPE_EXT              0x22
    00145 #define GLX_TRANSPARENT_TYPE_EXT           0x23
    00146 #define GLX_TRANSPARENT_INDEX_VALUE_EXT    0x24
    00147 #define GLX_TRANSPARENT_RED_VALUE_EXT      0x25
    00148 #define GLX_TRANSPARENT_GREEN_VALUE_EXT    0x26
    00149 #define GLX_TRANSPARENT_BLUE_VALUE_EXT     0x27
    00150 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT    0x28
    00151 #define GLX_NONE_EXT                       0x8000
    00152 #define GLX_TRUE_COLOR_EXT                 0x8002
    00153 #define GLX_DIRECT_COLOR_EXT               0x8003
    00154 #define GLX_PSEUDO_COLOR_EXT               0x8004
    00155 #define GLX_STATIC_COLOR_EXT               0x8005
    00156 #define GLX_GRAY_SCALE_EXT                 0x8006
    00157 #define GLX_STATIC_GRAY_EXT                0x8007
    00158 #define GLX_TRANSPARENT_RGB_EXT            0x8008
    00159 #define GLX_TRANSPARENT_INDEX_EXT          0x8009
    00160 #endif
    00161
    00162 #ifndef GLX_SGI_swap_control
    00163 #endif
    00164
    00165 #ifndef GLX_SGI_video_sync
    00166 #endif
    00167
    00168 #ifndef GLX_SGI_make_current_read
    00169 #endif
    00170
    00171 #ifndef GLX_SGIX_video_source
    00172 #endif
    00173
    00174 #ifndef GLX_EXT_visual_rating
    00175 #define GLX_VISUAL_CAVEAT_EXT              0x20
    00176 #define GLX_SLOW_VISUAL_EXT                0x8001
    00177 #define GLX_NON_CONFORMANT_VISUAL_EXT      0x800D
    00178 /* reuse GLX_NONE_EXT */
    00179 #endif
    00180
    00181 #ifndef GLX_EXT_import_context
    00182 #define GLX_SHARE_CONTEXT_EXT              0x800A
    00183 #define GLX_VISUAL_ID_EXT                  0x800B
    00184 #define GLX_SCREEN_EXT                     0x800C
    00185 #endif
    00186
    00187 #ifndef GLX_SGIX_fbconfig
    00188 #define GLX_WINDOW_BIT_SGIX                0x00000001
    00189 #define GLX_PIXMAP_BIT_SGIX                0x00000002
    00190 #define GLX_RGBA_BIT_SGIX                  0x00000001
    00191 #define GLX_COLOR_INDEX_BIT_SGIX           0x00000002
    00192 #define GLX_DRAWABLE_TYPE_SGIX             0x8010
    00193 #define GLX_RENDER_TYPE_SGIX               0x8011
    00194 #define GLX_X_RENDERABLE_SGIX              0x8012
    00195 #define GLX_FBCONFIG_ID_SGIX               0x8013
    00196 #define GLX_RGBA_TYPE_SGIX                 0x8014
    00197 #define GLX_COLOR_INDEX_TYPE_SGIX          0x8015
    00198 /* reuse GLX_SCREEN_EXT */
    00199 #endif
    00200
    00201 #ifndef GLX_SGIX_pbuffer
    00202 #define GLX_PBUFFER_BIT_SGIX               0x00000004
    00203 #define GLX_BUFFER_CLOBBER_MASK_SGIX       0x08000000
    00204 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX     0x00000001
    00205 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX    0x00000002
    00206 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX      0x00000004
    00207 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX     0x00000008
    00208 #define GLX_AUX_BUFFERS_BIT_SGIX           0x00000010
    00209 #define GLX_DEPTH_BUFFER_BIT_SGIX          0x00000020
    00210 #define GLX_STENCIL_BUFFER_BIT_SGIX        0x00000040
    00211 #define GLX_ACCUM_BUFFER_BIT_SGIX          0x00000080
    00212 #define GLX_SAMPLE_BUFFERS_BIT_SGIX        0x00000100
    00213 #define GLX_MAX_PBUFFER_WIDTH_SGIX         0x8016
    00214 #define GLX_MAX_PBUFFER_HEIGHT_SGIX        0x8017
    00215 #define GLX_MAX_PBUFFER_PIXELS_SGIX        0x8018
    00216 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX     0x8019
    00217 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX    0x801A
    00218 #define GLX_PRESERVED_CONTENTS_SGIX        0x801B
    00219 #define GLX_LARGEST_PBUFFER_SGIX           0x801C
    00220 #define GLX_WIDTH_SGIX                     0x801D
    00221 #define GLX_HEIGHT_SGIX                    0x801E
    00222 #define GLX_EVENT_MASK_SGIX                0x801F
    00223 #define GLX_DAMAGED_SGIX                   0x8020
    00224 #define GLX_SAVED_SGIX                     0x8021
    00225 #define GLX_WINDOW_SGIX                    0x8022
    00226 #define GLX_PBUFFER_SGIX                   0x8023
    00227 #endif
    00228
    00229 #ifndef GLX_SGI_cushion
    00230 #endif
    00231
    00232 #ifndef GLX_SGIX_video_resize
    00233 #define GLX_SYNC_FRAME_SGIX                0x00000000
    00234 #define GLX_SYNC_SWAP_SGIX                 0x00000001
    00235 #endif
    00236
    00237 #ifndef GLX_SGIX_dmbuffer
    00238 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX     0x8024
    00239 #endif
    00240
    00241 #ifndef GLX_SGIX_swap_group
    00242 #endif
    00243
    00244 #ifndef GLX_SGIX_swap_barrier
    00245 #endif
    00246
    00247 #ifndef GLX_SGIS_blended_overlay
    00248 #define GLX_BLENDED_RGBA_SGIS              0x8025
    00249 #endif
    00250
    00251 #ifndef GLX_SGIS_shared_multisample
    00252 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
    00253 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
    00254 #endif
    00255
    00256 #ifndef GLX_SUN_get_transparent_index
    00257 #endif
    00258
    00259 #ifndef GLX_3DFX_multisample
    00260 #define GLX_SAMPLE_BUFFERS_3DFX            0x8050
    00261 #define GLX_SAMPLES_3DFX                   0x8051
    00262 #endif
    00263
    00264 #ifndef GLX_MESA_copy_sub_buffer
    00265 #endif
    00266
    00267 #ifndef GLX_MESA_pixmap_colormap
    00268 #endif
    00269
    00270 #ifndef GLX_MESA_release_buffers
    00271 #endif
    00272
    00273 #ifndef GLX_MESA_set_3dfx_mode
    00274 #define GLX_3DFX_WINDOW_MODE_MESA          0x1
    00275 #define GLX_3DFX_FULLSCREEN_MODE_MESA      0x2
    00276 #endif
    00277
    00278 #ifndef GLX_SGIX_visual_select_group
    00279 #define GLX_VISUAL_SELECT_GROUP_SGIX       0x8028
    00280 #endif
    00281
    00282 #ifndef GLX_OML_swap_method
    00283 #define GLX_SWAP_METHOD_OML                0x8060
    00284 #define GLX_SWAP_EXCHANGE_OML              0x8061
    00285 #define GLX_SWAP_COPY_OML                  0x8062
    00286 #define GLX_SWAP_UNDEFINED_OML             0x8063
    00287 #endif
    00288
    00289 #ifndef GLX_OML_sync_control
    00290 #endif
    00291
    00292 #ifndef GLX_NV_float_buffer
    00293 #define GLX_FLOAT_COMPONENTS_NV            0x20B0
    00294 #endif
    00295
    00296 #ifndef GLX_SGIX_hyperpipe
    00297 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
    00298 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX      91
    00299 #define GLX_BAD_HYPERPIPE_SGIX             92
    00300 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX    0x00000001
    00301 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX     0x00000002
    00302 #define GLX_PIPE_RECT_SGIX                 0x00000001
    00303 #define GLX_PIPE_RECT_LIMITS_SGIX          0x00000002
    00304 #define GLX_HYPERPIPE_STEREO_SGIX          0x00000003
    00305 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX   0x00000004
    00306 #define GLX_HYPERPIPE_ID_SGIX              0x8030
    00307 #endif
    00308
    00309 #ifndef GLX_MESA_agp_offset
    00310 #endif
    00311
    00312 #ifndef GLX_EXT_fbconfig_packed_float
    00313 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT   0x20B1
    00314 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT    0x00000008
    00315 #endif
    00316
    00317 #ifndef GLX_EXT_framebuffer_sRGB
    00318 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x20B2
    00319 #endif
    00320
    00321 #ifndef GLX_EXT_texture_from_pixmap
    00322 #define GLX_TEXTURE_1D_BIT_EXT             0x00000001
    00323 #define GLX_TEXTURE_2D_BIT_EXT             0x00000002
    00324 #define GLX_TEXTURE_RECTANGLE_BIT_EXT      0x00000004
    00325 #define GLX_BIND_TO_TEXTURE_RGB_EXT        0x20D0
    00326 #define GLX_BIND_TO_TEXTURE_RGBA_EXT       0x20D1
    00327 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT     0x20D2
    00328 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT    0x20D3
    00329 #define GLX_Y_INVERTED_EXT                 0x20D4
    00330 #define GLX_TEXTURE_FORMAT_EXT             0x20D5
    00331 #define GLX_TEXTURE_TARGET_EXT             0x20D6
    00332 #define GLX_MIPMAP_TEXTURE_EXT             0x20D7
    00333 #define GLX_TEXTURE_FORMAT_NONE_EXT        0x20D8
    00334 #define GLX_TEXTURE_FORMAT_RGB_EXT         0x20D9
    00335 #define GLX_TEXTURE_FORMAT_RGBA_EXT        0x20DA
    00336 #define GLX_TEXTURE_1D_EXT                 0x20DB
    00337 #define GLX_TEXTURE_2D_EXT                 0x20DC
    00338 #define GLX_TEXTURE_RECTANGLE_EXT          0x20DD
    00339 #define GLX_FRONT_LEFT_EXT                 0x20DE
    00340 #define GLX_FRONT_RIGHT_EXT                0x20DF
    00341 #define GLX_BACK_LEFT_EXT                  0x20E0
    00342 #define GLX_BACK_RIGHT_EXT                 0x20E1
    00343 #define GLX_FRONT_EXT                      GLX_FRONT_LEFT_EXT
    00344 #define GLX_BACK_EXT                       GLX_BACK_LEFT_EXT
    00345 #define GLX_AUX0_EXT                       0x20E2
    00346 #define GLX_AUX1_EXT                       0x20E3
    00347 #define GLX_AUX2_EXT                       0x20E4
    00348 #define GLX_AUX3_EXT                       0x20E5
    00349 #define GLX_AUX4_EXT                       0x20E6
    00350 #define GLX_AUX5_EXT                       0x20E7
    00351 #define GLX_AUX6_EXT                       0x20E8
    00352 #define GLX_AUX7_EXT                       0x20E9
    00353 #define GLX_AUX8_EXT                       0x20EA
    00354 #define GLX_AUX9_EXT                       0x20EB
    00355 #endif
    00356
    00357 #ifndef GLX_NV_present_video
    00358 #define GLX_NUM_VIDEO_SLOTS_NV             0x20F0
    00359 #endif
    00360
    00361 #ifndef GLX_NV_video_out
    00362 #define GLX_VIDEO_OUT_COLOR_NV             0x20C3
    00363 #define GLX_VIDEO_OUT_ALPHA_NV             0x20C4
    00364 #define GLX_VIDEO_OUT_DEPTH_NV             0x20C5
    00365 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV   0x20C6
    00366 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV   0x20C7
    00367 #define GLX_VIDEO_OUT_FRAME_NV             0x20C8
    00368 #define GLX_VIDEO_OUT_FIELD_1_NV           0x20C9
    00369 #define GLX_VIDEO_OUT_FIELD_2_NV           0x20CA
    00370 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
    00371 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
    00372 #endif
    00373
    00374 #ifndef GLX_NV_swap_group
    00375 #endif
    00376
    00377
    00378 /*************************************************************/
    00379
    00380 #ifndef GLX_ARB_get_proc_address
    00381 typedef void (*__GLXextFuncPtr)(void);
    00382 #endif
    00383
    00384 #ifndef GLX_SGIX_video_source
    00385 typedef XID GLXVideoSourceSGIX;
    00386 #endif
    00387
    00388 #ifndef GLX_SGIX_fbconfig
    00389 typedef XID GLXFBConfigIDSGIX;
    00390 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
    00391 #endif
    00392
    00393 #ifndef GLX_SGIX_pbuffer
    00394 typedef XID GLXPbufferSGIX;
    00395 typedef struct {
    00396     int type;
    00397     unsigned long serial;         /* # of last request processed by server */
    00398     Bool send_event;              /* true if this came for SendEvent request */
    00399     Display *display;             /* display the event was read from */
    00400     GLXDrawable drawable;         /* i.d. of Drawable */
    00401     int event_type;               /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
    00402     int draw_type;                /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
    00403     unsigned int mask;    /* mask indicating which buffers are affected*/
    00404     int x, y;
    00405     int width, height;
    00406     int count;            /* if nonzero, at least this many more */
    00407 } GLXBufferClobberEventSGIX;
    00408 #endif
    00409
    00410 #ifndef GLEXT_64_TYPES_DEFINED
    00411 /* This code block is duplicated in glext.h, so must be protected */
    00412 #define GLEXT_64_TYPES_DEFINED
    00413 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
    00414 /* (as used in the GLX_OML_sync_control extension). */
    00415 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    00416 #include <inttypes.h>
    00417 #elif defined(__sun__) || defined(__digital__)
    00418 #include <inttypes.h>
    00419 #if defined(__STDC__)
    00420 #if defined(__arch64__) || defined(_LP64)
    00421 typedef long int int64_t;
    00422 typedef unsigned long int uint64_t;
    00423 #else
    00424 typedef long long int int64_t;
    00425 typedef unsigned long long int uint64_t;
    00426 #endif /* __arch64__ */
    00427 #endif /* __STDC__ */
    00428 #elif defined( __VMS ) || defined(__sgi)
    00429 #include <inttypes.h>
    00430 #elif defined(__SCO__) || defined(__USLC__)
    00431 #include <stdint.h>
    00432 #elif defined(__UNIXOS2__) || defined(__SOL64__)
    00433 typedef long int int32_t;
    00434 typedef long long int int64_t;
    00435 typedef unsigned long long int uint64_t;
    00436 #elif defined(_WIN32) && defined(__GNUC__)
    00437 #include <stdint.h>
    00438 #elif defined(_WIN32)
    00439 typedef __int32 int32_t;
    00440 typedef __int64 int64_t;
    00441 typedef unsigned __int64 uint64_t;
    00442 #else
    00443 #include <inttypes.h>     /* Fallback option */
    00444 #endif
    00445 #endif
    00446
    00447 #ifndef GLX_VERSION_1_3
    00448 #define GLX_VERSION_1_3 1
    00449 #ifdef GLX_GLXEXT_PROTOTYPES
    00450 extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
    00451 extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
    00452 extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
    00453 extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
    00454 extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
    00455 extern void glXDestroyWindow (Display *, GLXWindow);
    00456 extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
    00457 extern void glXDestroyPixmap (Display *, GLXPixmap);
    00458 extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
    00459 extern void glXDestroyPbuffer (Display *, GLXPbuffer);
    00460 extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
    00461 extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
    00462 extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
    00463 extern GLXDrawable glXGetCurrentReadDrawable (void);
    00464 extern Display * glXGetCurrentDisplay (void);
    00465 extern int glXQueryContext (Display *, GLXContext, int, int *);
    00466 extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
    00467 extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
    00468 #endif /* GLX_GLXEXT_PROTOTYPES */
    00469 typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
    00470 typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
    00471 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
    00472 typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
    00473 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
    00474 typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
    00475 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
    00476 typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
    00477 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
    00478 typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
    00479 typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
    00480 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
    00481 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
    00482 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
    00483 typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
    00484 typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
    00485 typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
    00486 typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
    00487 #endif
    00488
    00489 #ifndef GLX_VERSION_1_4
    00490 #define GLX_VERSION_1_4 1
    00491 #ifdef GLX_GLXEXT_PROTOTYPES
    00492 extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
    00493 #endif /* GLX_GLXEXT_PROTOTYPES */
    00494 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
    00495 #endif
    00496
    00497 #ifndef GLX_ARB_get_proc_address
    00498 #define GLX_ARB_get_proc_address 1
    00499 #ifdef GLX_GLXEXT_PROTOTYPES
    00500 extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
    00501 #endif /* GLX_GLXEXT_PROTOTYPES */
    00502 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
    00503 #endif
    00504
    00505 #ifndef GLX_ARB_multisample
    00506 #define GLX_ARB_multisample 1
    00507 #endif
    00508
    00509 #ifndef GLX_ARB_fbconfig_float
    00510 #define GLX_ARB_fbconfig_float 1
    00511 #endif
    00512
    00513 #ifndef GLX_ARB_create_context
    00514 #define GLX_ARB_create_context 1
    00515 #ifdef GLX_GLXEXT_PROTOTYPES
    00516 extern GLXContext glXCreateContextAttribsARB (Display *, GLXFBConfig, GLXContext, Bool, const int *);
    00517 #endif /* GLX_GLXEXT_PROTOTYPES */
    00518 typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
    00519 #endif
    00520
    00521 #ifndef GLX_SGIS_multisample
    00522 #define GLX_SGIS_multisample 1
    00523 #endif
    00524
    00525 #ifndef GLX_EXT_visual_info
    00526 #define GLX_EXT_visual_info 1
    00527 #endif
    00528
    00529 #ifndef GLX_SGI_swap_control
    00530 #define GLX_SGI_swap_control 1
    00531 #ifdef GLX_GLXEXT_PROTOTYPES
    00532 extern int glXSwapIntervalSGI (int);
    00533 #endif /* GLX_GLXEXT_PROTOTYPES */
    00534 typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
    00535 #endif
    00536
    00537 #ifndef GLX_SGI_video_sync
    00538 #define GLX_SGI_video_sync 1
    00539 #ifdef GLX_GLXEXT_PROTOTYPES
    00540 extern int glXGetVideoSyncSGI (unsigned int *);
    00541 extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
    00542 #endif /* GLX_GLXEXT_PROTOTYPES */
    00543 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
    00544 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
    00545 #endif
    00546
    00547 #ifndef GLX_SGI_make_current_read
    00548 #define GLX_SGI_make_current_read 1
    00549 #ifdef GLX_GLXEXT_PROTOTYPES
    00550 extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
    00551 extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
    00552 #endif /* GLX_GLXEXT_PROTOTYPES */
    00553 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
    00554 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
    00555 #endif
    00556
    00557 #ifndef GLX_SGIX_video_source
    00558 #define GLX_SGIX_video_source 1
    00559 #ifdef _VL_H
    00560 #ifdef GLX_GLXEXT_PROTOTYPES
    00561 extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
    00562 extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
    00563 #endif /* GLX_GLXEXT_PROTOTYPES */
    00564 typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
    00565 typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
    00566 #endif /* _VL_H */
    00567 #endif
    00568
    00569 #ifndef GLX_EXT_visual_rating
    00570 #define GLX_EXT_visual_rating 1
    00571 #endif
    00572
    00573 #ifndef GLX_EXT_import_context
    00574 #define GLX_EXT_import_context 1
    00575 #ifdef GLX_GLXEXT_PROTOTYPES
    00576 extern Display * glXGetCurrentDisplayEXT (void);
    00577 extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
    00578 extern GLXContextID glXGetContextIDEXT (const GLXContext);
    00579 extern GLXContext glXImportContextEXT (Display *, GLXContextID);
    00580 extern void glXFreeContextEXT (Display *, GLXContext);
    00581 #endif /* GLX_GLXEXT_PROTOTYPES */
    00582 typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
    00583 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
    00584 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
    00585 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
    00586 typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
    00587 #endif
    00588
    00589 #ifndef GLX_SGIX_fbconfig
    00590 #define GLX_SGIX_fbconfig 1
    00591 #ifdef GLX_GLXEXT_PROTOTYPES
    00592 extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
    00593 extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
    00594 extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
    00595 extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
    00596 extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
    00597 extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
    00598 #endif /* GLX_GLXEXT_PROTOTYPES */
    00599 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
    00600 typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
    00601 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
    00602 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
    00603 typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
    00604 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
    00605 #endif
    00606
    00607 #ifndef GLX_SGIX_pbuffer
    00608 #define GLX_SGIX_pbuffer 1
    00609 #ifdef GLX_GLXEXT_PROTOTYPES
    00610 extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
    00611 extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
    00612 extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
    00613 extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
    00614 extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
    00615 #endif /* GLX_GLXEXT_PROTOTYPES */
    00616 typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
    00617 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
    00618 typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
    00619 typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
    00620 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
    00621 #endif
    00622
    00623 #ifndef GLX_SGI_cushion
    00624 #define GLX_SGI_cushion 1
    00625 #ifdef GLX_GLXEXT_PROTOTYPES
    00626 extern void glXCushionSGI (Display *, Window, float);
    00627 #endif /* GLX_GLXEXT_PROTOTYPES */
    00628 typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
    00629 #endif
    00630
    00631 #ifndef GLX_SGIX_video_resize
    00632 #define GLX_SGIX_video_resize 1
    00633 #ifdef GLX_GLXEXT_PROTOTYPES
    00634 extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
    00635 extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
    00636 extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
    00637 extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
    00638 extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
    00639 #endif /* GLX_GLXEXT_PROTOTYPES */
    00640 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
    00641 typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
    00642 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
    00643 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
    00644 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
    00645 #endif
    00646
    00647 #ifndef GLX_SGIX_dmbuffer
    00648 #define GLX_SGIX_dmbuffer 1
    00649 #ifdef _DM_BUFFER_H_
    00650 #ifdef GLX_GLXEXT_PROTOTYPES
    00651 extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
    00652 #endif /* GLX_GLXEXT_PROTOTYPES */
    00653 typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
    00654 #endif /* _DM_BUFFER_H_ */
    00655 #endif
    00656
    00657 #ifndef GLX_SGIX_swap_group
    00658 #define GLX_SGIX_swap_group 1
    00659 #ifdef GLX_GLXEXT_PROTOTYPES
    00660 extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
    00661 #endif /* GLX_GLXEXT_PROTOTYPES */
    00662 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
    00663 #endif
    00664
    00665 #ifndef GLX_SGIX_swap_barrier
    00666 #define GLX_SGIX_swap_barrier 1
    00667 #ifdef GLX_GLXEXT_PROTOTYPES
    00668 extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
    00669 extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
    00670 #endif /* GLX_GLXEXT_PROTOTYPES */
    00671 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
    00672 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
    00673 #endif
    00674
    00675 #ifndef GLX_SUN_get_transparent_index
    00676 #define GLX_SUN_get_transparent_index 1
    00677 #ifdef GLX_GLXEXT_PROTOTYPES
    00678 extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
    00679 #endif /* GLX_GLXEXT_PROTOTYPES */
    00680 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
    00681 #endif
    00682
    00683 #ifndef GLX_MESA_copy_sub_buffer
    00684 #define GLX_MESA_copy_sub_buffer 1
    00685 #ifdef GLX_GLXEXT_PROTOTYPES
    00686 extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
    00687 #endif /* GLX_GLXEXT_PROTOTYPES */
    00688 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
    00689 #endif
    00690
    00691 #ifndef GLX_MESA_pixmap_colormap
    00692 #define GLX_MESA_pixmap_colormap 1
    00693 #ifdef GLX_GLXEXT_PROTOTYPES
    00694 extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
    00695 #endif /* GLX_GLXEXT_PROTOTYPES */
    00696 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
    00697 #endif
    00698
    00699 #ifndef GLX_MESA_release_buffers
    00700 #define GLX_MESA_release_buffers 1
    00701 #ifdef GLX_GLXEXT_PROTOTYPES
    00702 extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
    00703 #endif /* GLX_GLXEXT_PROTOTYPES */
    00704 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
    00705 #endif
    00706
    00707 #ifndef GLX_MESA_set_3dfx_mode
    00708 #define GLX_MESA_set_3dfx_mode 1
    00709 #ifdef GLX_GLXEXT_PROTOTYPES
    00710 extern Bool glXSet3DfxModeMESA (int);
    00711 #endif /* GLX_GLXEXT_PROTOTYPES */
    00712 typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
    00713 #endif
    00714
    00715 #ifndef GLX_SGIX_visual_select_group
    00716 #define GLX_SGIX_visual_select_group 1
    00717 #endif
    00718
    00719 #ifndef GLX_OML_swap_method
    00720 #define GLX_OML_swap_method 1
    00721 #endif
    00722
    00723 #ifndef GLX_OML_sync_control
    00724 #define GLX_OML_sync_control 1
    00725 #ifdef GLX_GLXEXT_PROTOTYPES
    00726 extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
    00727 extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
    00728 extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
    00729 extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
    00730 extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
    00731 #endif /* GLX_GLXEXT_PROTOTYPES */
    00732 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
    00733 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
    00734 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
    00735 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);
    00736 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
    00737 #endif
    00738
    00739 #ifndef GLX_NV_float_buffer
    00740 #define GLX_NV_float_buffer 1
    00741 #endif
    00742
    00743 #ifndef GLX_SGIX_hyperpipe
    00744 #define GLX_SGIX_hyperpipe 1
    00745
    00746 typedef struct {
    00747     char    pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00748     int     networkId;
    00749 } GLXHyperpipeNetworkSGIX;
    00750
    00751 typedef struct {
    00752     char    pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00753     int     channel;
    00754     unsigned int
    00755       participationType;
    00756     int     timeSlice;
    00757 } GLXHyperpipeConfigSGIX;
    00758
    00759 typedef struct {
    00760     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00761     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
    00762     int destXOrigin, destYOrigin, destWidth, destHeight;
    00763 } GLXPipeRect;
    00764
    00765 typedef struct {
    00766     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00767     int XOrigin, YOrigin, maxHeight, maxWidth;
    00768 } GLXPipeRectLimits;
    00769
    00770 #ifdef GLX_GLXEXT_PROTOTYPES
    00771 extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
    00772 extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
    00773 extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
    00774 extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
    00775 extern int glXBindHyperpipeSGIX (Display *, int);
    00776 extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
    00777 extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
    00778 extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
    00779 #endif /* GLX_GLXEXT_PROTOTYPES */
    00780 typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
    00781 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
    00782 typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
    00783 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
    00784 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
    00785 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
    00786 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
    00787 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
    00788 #endif
    00789
    00790 #ifndef GLX_MESA_agp_offset
    00791 #define GLX_MESA_agp_offset 1
    00792 #ifdef GLX_GLXEXT_PROTOTYPES
    00793 extern unsigned int glXGetAGPOffsetMESA (const void *);
    00794 #endif /* GLX_GLXEXT_PROTOTYPES */
    00795 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
    00796 #endif
    00797
    00798 #ifndef GLX_EXT_fbconfig_packed_float
    00799 #define GLX_EXT_fbconfig_packed_float 1
    00800 #endif
    00801
    00802 #ifndef GLX_EXT_framebuffer_sRGB
    00803 #define GLX_EXT_framebuffer_sRGB 1
    00804 #endif
    00805
    00806 #ifndef GLX_EXT_texture_from_pixmap
    00807 #define GLX_EXT_texture_from_pixmap 1
    00808 #ifdef GLX_GLXEXT_PROTOTYPES
    00809 extern void glXBindTexImageEXT (Display *, GLXDrawable, int, const int *);
    00810 extern void glXReleaseTexImageEXT (Display *, GLXDrawable, int);
    00811 #endif /* GLX_GLXEXT_PROTOTYPES */
    00812 typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
    00813 typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
    00814 #endif
    00815
    00816 #ifndef GLX_NV_present_video
    00817 #define GLX_NV_present_video 1
    00818 #endif
    00819
    00820 #ifndef GLX_NV_video_out
    00821 #define GLX_NV_video_out 1
    00822 #endif
    00823
    00824 #ifndef GLX_NV_swap_group
    00825 #define GLX_NV_swap_group 1
    00826 #endif
    00827
    00828
    00829 #ifdef __cplusplus
    00830 }
    00831 #endif
    00832
    00833 #endif

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines