| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/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 ** License Applicability. Except to the extent portions of this file are
    00010 ** made subject to an alternative license as permitted in the SGI Free
    00011 ** Software License B, Version 1.1 (the "License"), the contents of this
    00012 ** file are subject only to the provisions of the License. You may not use
    00013 ** this file except in compliance with the License. You may obtain a copy
    00014 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    00015 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    00016 **
    00017 ** http://oss.sgi.com/projects/FreeB
    00018 **
    00019 ** Note that, as provided in the License, the Software is distributed on an
    00020 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    00021 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    00022 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    00023 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    00024 **
    00025 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    00026 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    00027 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
    00028 ** Copyright in any portions created by third parties is as indicated
    00029 ** elsewhere herein. All Rights Reserved.
    00030 **
    00031 ** Additional Notice Provisions: This software was created using the
    00032 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    00033 ** not been independently verified as being compliant with the OpenGL(R)
    00034 ** version 1.2.1 Specification.
    00035 */
    00036
    00037 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
    00038 #define WIN32_LEAN_AND_MEAN 1
    00039 #include <windows.h>
    00040 #endif
    00041
    00042 #ifndef APIENTRY
    00043 #define APIENTRY
    00044 #endif
    00045 #ifndef APIENTRYP
    00046 #define APIENTRYP APIENTRY *
    00047 #endif
    00048 #ifndef GLAPI
    00049 #define GLAPI extern
    00050 #endif
    00051
    00052 /*************************************************************/
    00053
    00054 /* Header file version number, required by OpenGL ABI for Linux */
    00055 /* glxext.h last updated 2004/07/26 */
    00056 /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
    00057 #define GLX_GLXEXT_VERSION 6
    00058
    00059 #ifndef GLX_VERSION_1_3
    00060 #define GLX_WINDOW_BIT                     0x00000001
    00061 #define GLX_PIXMAP_BIT                     0x00000002
    00062 #define GLX_PBUFFER_BIT                    0x00000004
    00063 #define GLX_RGBA_BIT                       0x00000001
    00064 #define GLX_COLOR_INDEX_BIT                0x00000002
    00065 #define GLX_PBUFFER_CLOBBER_MASK           0x08000000
    00066 #define GLX_FRONT_LEFT_BUFFER_BIT          0x00000001
    00067 #define GLX_FRONT_RIGHT_BUFFER_BIT         0x00000002
    00068 #define GLX_BACK_LEFT_BUFFER_BIT           0x00000004
    00069 #define GLX_BACK_RIGHT_BUFFER_BIT          0x00000008
    00070 #define GLX_AUX_BUFFERS_BIT                0x00000010
    00071 #define GLX_DEPTH_BUFFER_BIT               0x00000020
    00072 #define GLX_STENCIL_BUFFER_BIT             0x00000040
    00073 #define GLX_ACCUM_BUFFER_BIT               0x00000080
    00074 #define GLX_CONFIG_CAVEAT                  0x20
    00075 #define GLX_X_VISUAL_TYPE                  0x22
    00076 #define GLX_TRANSPARENT_TYPE               0x23
    00077 #define GLX_TRANSPARENT_INDEX_VALUE        0x24
    00078 #define GLX_TRANSPARENT_RED_VALUE          0x25
    00079 #define GLX_TRANSPARENT_GREEN_VALUE        0x26
    00080 #define GLX_TRANSPARENT_BLUE_VALUE         0x27
    00081 #define GLX_TRANSPARENT_ALPHA_VALUE        0x28
    00082 #define GLX_DONT_CARE                      0xFFFFFFFF
    00083 #define GLX_NONE                           0x8000
    00084 #define GLX_SLOW_CONFIG                    0x8001
    00085 #define GLX_TRUE_COLOR                     0x8002
    00086 #define GLX_DIRECT_COLOR                   0x8003
    00087 #define GLX_PSEUDO_COLOR                   0x8004
    00088 #define GLX_STATIC_COLOR                   0x8005
    00089 #define GLX_GRAY_SCALE                     0x8006
    00090 #define GLX_STATIC_GRAY                    0x8007
    00091 #define GLX_TRANSPARENT_RGB                0x8008
    00092 #define GLX_TRANSPARENT_INDEX              0x8009
    00093 #define GLX_VISUAL_ID                      0x800B
    00094 #define GLX_SCREEN                         0x800C
    00095 #define GLX_NON_CONFORMANT_CONFIG          0x800D
    00096 #define GLX_DRAWABLE_TYPE                  0x8010
    00097 #define GLX_RENDER_TYPE                    0x8011
    00098 #define GLX_X_RENDERABLE                   0x8012
    00099 #define GLX_FBCONFIG_ID                    0x8013
    00100 #define GLX_RGBA_TYPE                      0x8014
    00101 #define GLX_COLOR_INDEX_TYPE               0x8015
    00102 #define GLX_MAX_PBUFFER_WIDTH              0x8016
    00103 #define GLX_MAX_PBUFFER_HEIGHT             0x8017
    00104 #define GLX_MAX_PBUFFER_PIXELS             0x8018
    00105 #define GLX_PRESERVED_CONTENTS             0x801B
    00106 #define GLX_LARGEST_PBUFFER                0x801C
    00107 #define GLX_WIDTH                          0x801D
    00108 #define GLX_HEIGHT                         0x801E
    00109 #define GLX_EVENT_MASK                     0x801F
    00110 #define GLX_DAMAGED                        0x8020
    00111 #define GLX_SAVED                          0x8021
    00112 #define GLX_WINDOW                         0x8022
    00113 #define GLX_PBUFFER                        0x8023
    00114 #define GLX_PBUFFER_HEIGHT                 0x8040
    00115 #define GLX_PBUFFER_WIDTH                  0x8041
    00116 #endif
    00117
    00118 #ifndef GLX_VERSION_1_4
    00119 #define GLX_SAMPLE_BUFFERS                 100000
    00120 #define GLX_SAMPLES                        100001
    00121 #endif
    00122
    00123 #ifndef GLX_ARB_get_proc_address
    00124 #endif
    00125
    00126 #ifndef GLX_ARB_multisample
    00127 #define GLX_SAMPLE_BUFFERS_ARB             100000
    00128 #define GLX_SAMPLES_ARB                    100001
    00129 #endif
    00130
    00131 #ifndef GLX_SGIS_multisample
    00132 #define GLX_SAMPLE_BUFFERS_SGIS            100000
    00133 #define GLX_SAMPLES_SGIS                   100001
    00134 #endif
    00135
    00136 #ifndef GLX_EXT_visual_info
    00137 #define GLX_X_VISUAL_TYPE_EXT              0x22
    00138 #define GLX_TRANSPARENT_TYPE_EXT           0x23
    00139 #define GLX_TRANSPARENT_INDEX_VALUE_EXT    0x24
    00140 #define GLX_TRANSPARENT_RED_VALUE_EXT      0x25
    00141 #define GLX_TRANSPARENT_GREEN_VALUE_EXT    0x26
    00142 #define GLX_TRANSPARENT_BLUE_VALUE_EXT     0x27
    00143 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT    0x28
    00144 #define GLX_NONE_EXT                       0x8000
    00145 #define GLX_TRUE_COLOR_EXT                 0x8002
    00146 #define GLX_DIRECT_COLOR_EXT               0x8003
    00147 #define GLX_PSEUDO_COLOR_EXT               0x8004
    00148 #define GLX_STATIC_COLOR_EXT               0x8005
    00149 #define GLX_GRAY_SCALE_EXT                 0x8006
    00150 #define GLX_STATIC_GRAY_EXT                0x8007
    00151 #define GLX_TRANSPARENT_RGB_EXT            0x8008
    00152 #define GLX_TRANSPARENT_INDEX_EXT          0x8009
    00153 #endif
    00154
    00155 #ifndef GLX_SGI_swap_control
    00156 #endif
    00157
    00158 #ifndef GLX_SGI_video_sync
    00159 #endif
    00160
    00161 #ifndef GLX_SGI_make_current_read
    00162 #endif
    00163
    00164 #ifndef GLX_SGIX_video_source
    00165 #endif
    00166
    00167 #ifndef GLX_EXT_visual_rating
    00168 #define GLX_VISUAL_CAVEAT_EXT              0x20
    00169 #define GLX_SLOW_VISUAL_EXT                0x8001
    00170 #define GLX_NON_CONFORMANT_VISUAL_EXT      0x800D
    00171 /* reuse GLX_NONE_EXT */
    00172 #endif
    00173
    00174 #ifndef GLX_EXT_import_context
    00175 #define GLX_SHARE_CONTEXT_EXT              0x800A
    00176 #define GLX_VISUAL_ID_EXT                  0x800B
    00177 #define GLX_SCREEN_EXT                     0x800C
    00178 #endif
    00179
    00180 #ifndef GLX_SGIX_fbconfig
    00181 #define GLX_WINDOW_BIT_SGIX                0x00000001
    00182 #define GLX_PIXMAP_BIT_SGIX                0x00000002
    00183 #define GLX_RGBA_BIT_SGIX                  0x00000001
    00184 #define GLX_COLOR_INDEX_BIT_SGIX           0x00000002
    00185 #define GLX_DRAWABLE_TYPE_SGIX             0x8010
    00186 #define GLX_RENDER_TYPE_SGIX               0x8011
    00187 #define GLX_X_RENDERABLE_SGIX              0x8012
    00188 #define GLX_FBCONFIG_ID_SGIX               0x8013
    00189 #define GLX_RGBA_TYPE_SGIX                 0x8014
    00190 #define GLX_COLOR_INDEX_TYPE_SGIX          0x8015
    00191 /* reuse GLX_SCREEN_EXT */
    00192 #endif
    00193
    00194 #ifndef GLX_SGIX_pbuffer
    00195 #define GLX_PBUFFER_BIT_SGIX               0x00000004
    00196 #define GLX_BUFFER_CLOBBER_MASK_SGIX       0x08000000
    00197 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX     0x00000001
    00198 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX    0x00000002
    00199 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX      0x00000004
    00200 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX     0x00000008
    00201 #define GLX_AUX_BUFFERS_BIT_SGIX           0x00000010
    00202 #define GLX_DEPTH_BUFFER_BIT_SGIX          0x00000020
    00203 #define GLX_STENCIL_BUFFER_BIT_SGIX        0x00000040
    00204 #define GLX_ACCUM_BUFFER_BIT_SGIX          0x00000080
    00205 #define GLX_SAMPLE_BUFFERS_BIT_SGIX        0x00000100
    00206 #define GLX_MAX_PBUFFER_WIDTH_SGIX         0x8016
    00207 #define GLX_MAX_PBUFFER_HEIGHT_SGIX        0x8017
    00208 #define GLX_MAX_PBUFFER_PIXELS_SGIX        0x8018
    00209 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX     0x8019
    00210 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX    0x801A
    00211 #define GLX_PRESERVED_CONTENTS_SGIX        0x801B
    00212 #define GLX_LARGEST_PBUFFER_SGIX           0x801C
    00213 #define GLX_WIDTH_SGIX                     0x801D
    00214 #define GLX_HEIGHT_SGIX                    0x801E
    00215 #define GLX_EVENT_MASK_SGIX                0x801F
    00216 #define GLX_DAMAGED_SGIX                   0x8020
    00217 #define GLX_SAVED_SGIX                     0x8021
    00218 #define GLX_WINDOW_SGIX                    0x8022
    00219 #define GLX_PBUFFER_SGIX                   0x8023
    00220 #endif
    00221
    00222 #ifndef GLX_SGI_cushion
    00223 #endif
    00224
    00225 #ifndef GLX_SGIX_video_resize
    00226 #define GLX_SYNC_FRAME_SGIX                0x00000000
    00227 #define GLX_SYNC_SWAP_SGIX                 0x00000001
    00228 #endif
    00229
    00230 #ifndef GLX_SGIX_dmbuffer
    00231 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX     0x8024
    00232 #endif
    00233
    00234 #ifndef GLX_SGIX_swap_group
    00235 #endif
    00236
    00237 #ifndef GLX_SGIX_swap_barrier
    00238 #endif
    00239
    00240 #ifndef GLX_SGIS_blended_overlay
    00241 #define GLX_BLENDED_RGBA_SGIS              0x8025
    00242 #endif
    00243
    00244 #ifndef GLX_SGIS_shared_multisample
    00245 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
    00246 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
    00247 #endif
    00248
    00249 #ifndef GLX_SUN_get_transparent_index
    00250 #endif
    00251
    00252 #ifndef GLX_3DFX_multisample
    00253 #define GLX_SAMPLE_BUFFERS_3DFX            0x8050
    00254 #define GLX_SAMPLES_3DFX                   0x8051
    00255 #endif
    00256
    00257 #ifndef GLX_MESA_copy_sub_buffer
    00258 #endif
    00259
    00260 #ifndef GLX_MESA_pixmap_colormap
    00261 #endif
    00262
    00263 #ifndef GLX_MESA_release_buffers
    00264 #endif
    00265
    00266 #ifndef GLX_MESA_set_3dfx_mode
    00267 #define GLX_3DFX_WINDOW_MODE_MESA          0x1
    00268 #define GLX_3DFX_FULLSCREEN_MODE_MESA      0x2
    00269 #endif
    00270
    00271 #ifndef GLX_SGIX_visual_select_group
    00272 #define GLX_VISUAL_SELECT_GROUP_SGIX       0x8028
    00273 #endif
    00274
    00275 #ifndef GLX_OML_swap_method
    00276 #define GLX_SWAP_METHOD_OML                0x8060
    00277 #define GLX_SWAP_EXCHANGE_OML              0x8061
    00278 #define GLX_SWAP_COPY_OML                  0x8062
    00279 #define GLX_SWAP_UNDEFINED_OML             0x8063
    00280 #endif
    00281
    00282 #ifndef GLX_OML_sync_control
    00283 #endif
    00284
    00285 #ifndef GLX_SGIX_hyperpipe_group
    00286 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
    00287 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX      91
    00288 #define GLX_BAD_HYPERPIPE_SGIX             92
    00289 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX    0x00000001
    00290 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX     0x00000002
    00291 #define GLX_PIPE_RECT_SGIX                 0x00000001
    00292 #define GLX_PIPE_RECT_LIMITS_SGIX          0x00000002
    00293 #define GLX_HYPERPIPE_STEREO_SGIX          0x00000003
    00294 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX   0x00000004
    00295 #define GLX_HYPERPIPE_ID_SGIX              0x8030
    00296 #endif
    00297
    00298 #ifndef GLX_MESA_agp_offset
    00299 #endif
    00300
    00301
    00302 /*************************************************************/
    00303
    00304 #ifndef GLX_ARB_get_proc_address
    00305 typedef void (*__GLXextFuncPtr)(void);
    00306 #endif
    00307
    00308 #ifndef GLX_SGIX_video_source
    00309 typedef XID GLXVideoSourceSGIX;
    00310 #endif
    00311
    00312 #ifndef GLX_SGIX_fbconfig
    00313 typedef XID GLXFBConfigIDSGIX;
    00314 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
    00315 #endif
    00316
    00317 #ifndef GLX_SGIX_pbuffer
    00318 typedef XID GLXPbufferSGIX;
    00319 typedef struct {
    00320     int type;
    00321     unsigned long serial;          /* # of last request processed by server */
    00322     Bool send_event;               /* true if this came for SendEvent request */
    00323     Display *display;              /* display the event was read from */
    00324     GLXDrawable drawable;          /* i.d. of Drawable */
    00325     int event_type;                /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
    00326     int draw_type;                 /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
    00327     unsigned int mask;             /* mask indicating which buffers are affected*/
    00328     int x, y;
    00329     int width, height;
    00330     int count;                     /* if nonzero, at least this many more */
    00331 } GLXBufferClobberEventSGIX;
    00332 #endif
    00333
    00334 #if defined(__sun__) || defined(__osf__)
    00335 #include <inttypes.h>
    00336 #if defined(__STDC__)
    00337 #if defined(__arch64__)
    00338 typedef long int int64_t;
    00339 #else
    00340 typedef long long int int64_t;
    00341 #endif /* __arch64__ */
    00342 #endif /* __STDC__ */
    00343 #elif defined(__UNIXOS2__) || defined(__SOL64__)
    00344 typedef long int int32_t;
    00345 typedef long long int int64_t;
    00346 #elif defined( __VMS )
    00347 #include <inttypes.h>
    00348 #elif defined(__SCO__) || defined(__USLC__)
    00349 #include <stdint.h>
    00350 #elif defined(WIN32) && defined(__GNUC__)
    00351 #include <stdint.h>
    00352 #endif
    00353
    00354 #ifndef GLX_VERSION_1_3
    00355 #define GLX_VERSION_1_3 1
    00356 #ifdef GLX_GLXEXT_PROTOTYPES
    00357 extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
    00358 extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
    00359 extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
    00360 extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
    00361 extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
    00362 extern void glXDestroyWindow (Display *, GLXWindow);
    00363 extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
    00364 extern void glXDestroyPixmap (Display *, GLXPixmap);
    00365 extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
    00366 extern void glXDestroyPbuffer (Display *, GLXPbuffer);
    00367 extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
    00368 extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
    00369 extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
    00370 extern GLXDrawable glXGetCurrentReadDrawable (void);
    00371 extern Display * glXGetCurrentDisplay (void);
    00372 extern int glXQueryContext (Display *, GLXContext, int, int *);
    00373 extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
    00374 extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
    00375 #endif /* GLX_GLXEXT_PROTOTYPES */
    00376 typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
    00377 typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
    00378 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
    00379 typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
    00380 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
    00381 typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
    00382 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
    00383 typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
    00384 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
    00385 typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
    00386 typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
    00387 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
    00388 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
    00389 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
    00390 typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
    00391 typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
    00392 typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
    00393 typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
    00394 #endif
    00395
    00396 #ifndef GLX_VERSION_1_4
    00397 #define GLX_VERSION_1_4 1
    00398 #ifdef GLX_GLXEXT_PROTOTYPES
    00399 extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
    00400 #endif /* GLX_GLXEXT_PROTOTYPES */
    00401 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
    00402 #endif
    00403
    00404 #ifndef GLX_ARB_get_proc_address
    00405 #define GLX_ARB_get_proc_address 1
    00406 #ifdef GLX_GLXEXT_PROTOTYPES
    00407 extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
    00408 #endif /* GLX_GLXEXT_PROTOTYPES */
    00409 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
    00410 #endif
    00411
    00412 #ifndef GLX_ARB_multisample
    00413 #define GLX_ARB_multisample 1
    00414 #endif
    00415
    00416 #ifndef GLX_SGIS_multisample
    00417 #define GLX_SGIS_multisample 1
    00418 #endif
    00419
    00420 #ifndef GLX_EXT_visual_info
    00421 #define GLX_EXT_visual_info 1
    00422 #endif
    00423
    00424 #ifndef GLX_SGI_swap_control
    00425 #define GLX_SGI_swap_control 1
    00426 #ifdef GLX_GLXEXT_PROTOTYPES
    00427 extern int glXSwapIntervalSGI (int);
    00428 #endif /* GLX_GLXEXT_PROTOTYPES */
    00429 typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
    00430 #endif
    00431
    00432 #ifndef GLX_SGI_video_sync
    00433 #define GLX_SGI_video_sync 1
    00434 #ifdef GLX_GLXEXT_PROTOTYPES
    00435 extern int glXGetVideoSyncSGI (unsigned int *);
    00436 extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
    00437 #endif /* GLX_GLXEXT_PROTOTYPES */
    00438 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
    00439 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
    00440 #endif
    00441
    00442 #ifndef GLX_SGI_make_current_read
    00443 #define GLX_SGI_make_current_read 1
    00444 #ifdef GLX_GLXEXT_PROTOTYPES
    00445 extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
    00446 extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
    00447 #endif /* GLX_GLXEXT_PROTOTYPES */
    00448 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
    00449 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
    00450 #endif
    00451
    00452 #ifndef GLX_SGIX_video_source
    00453 #define GLX_SGIX_video_source 1
    00454 #ifdef _VL_H
    00455 #ifdef GLX_GLXEXT_PROTOTYPES
    00456 extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
    00457 extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
    00458 #endif /* GLX_GLXEXT_PROTOTYPES */
    00459 typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
    00460 typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
    00461 #endif /* _VL_H */
    00462 #endif
    00463
    00464 #ifndef GLX_EXT_visual_rating
    00465 #define GLX_EXT_visual_rating 1
    00466 #endif
    00467
    00468 #ifndef GLX_EXT_import_context
    00469 #define GLX_EXT_import_context 1
    00470 #ifdef GLX_GLXEXT_PROTOTYPES
    00471 extern Display * glXGetCurrentDisplayEXT (void);
    00472 extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
    00473 extern GLXContextID glXGetContextIDEXT (const GLXContext);
    00474 extern GLXContext glXImportContextEXT (Display *, GLXContextID);
    00475 extern void glXFreeContextEXT (Display *, GLXContext);
    00476 #endif /* GLX_GLXEXT_PROTOTYPES */
    00477 typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
    00478 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
    00479 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
    00480 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
    00481 typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
    00482 #endif
    00483
    00484 #ifndef GLX_SGIX_fbconfig
    00485 #define GLX_SGIX_fbconfig 1
    00486 #ifdef GLX_GLXEXT_PROTOTYPES
    00487 extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
    00488 extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
    00489 extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
    00490 extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
    00491 extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
    00492 extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
    00493 #endif /* GLX_GLXEXT_PROTOTYPES */
    00494 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
    00495 typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
    00496 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
    00497 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
    00498 typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
    00499 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
    00500 #endif
    00501
    00502 #ifndef GLX_SGIX_pbuffer
    00503 #define GLX_SGIX_pbuffer 1
    00504 #ifdef GLX_GLXEXT_PROTOTYPES
    00505 extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
    00506 extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
    00507 extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
    00508 extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
    00509 extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
    00510 #endif /* GLX_GLXEXT_PROTOTYPES */
    00511 typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
    00512 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
    00513 typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
    00514 typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
    00515 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
    00516 #endif
    00517
    00518 #ifndef GLX_SGI_cushion
    00519 #define GLX_SGI_cushion 1
    00520 #ifdef GLX_GLXEXT_PROTOTYPES
    00521 extern void glXCushionSGI (Display *, Window, float);
    00522 #endif /* GLX_GLXEXT_PROTOTYPES */
    00523 typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
    00524 #endif
    00525
    00526 #ifndef GLX_SGIX_video_resize
    00527 #define GLX_SGIX_video_resize 1
    00528 #ifdef GLX_GLXEXT_PROTOTYPES
    00529 extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
    00530 extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
    00531 extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
    00532 extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
    00533 extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
    00534 #endif /* GLX_GLXEXT_PROTOTYPES */
    00535 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
    00536 typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
    00537 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
    00538 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
    00539 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
    00540 #endif
    00541
    00542 #ifndef GLX_SGIX_dmbuffer
    00543 #define GLX_SGIX_dmbuffer 1
    00544 #ifdef _DM_BUFFER_H_
    00545 #ifdef GLX_GLXEXT_PROTOTYPES
    00546 extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
    00547 #endif /* GLX_GLXEXT_PROTOTYPES */
    00548 typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
    00549 #endif /* _DM_BUFFER_H_ */
    00550 #endif
    00551
    00552 #ifndef GLX_SGIX_swap_group
    00553 #define GLX_SGIX_swap_group 1
    00554 #ifdef GLX_GLXEXT_PROTOTYPES
    00555 extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
    00556 #endif /* GLX_GLXEXT_PROTOTYPES */
    00557 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
    00558 #endif
    00559
    00560 #ifndef GLX_SGIX_swap_barrier
    00561 #define GLX_SGIX_swap_barrier 1
    00562 #ifdef GLX_GLXEXT_PROTOTYPES
    00563 extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
    00564 extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
    00565 #endif /* GLX_GLXEXT_PROTOTYPES */
    00566 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
    00567 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
    00568 #endif
    00569
    00570 #ifndef GLX_SUN_get_transparent_index
    00571 #define GLX_SUN_get_transparent_index 1
    00572 #ifdef GLX_GLXEXT_PROTOTYPES
    00573 extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
    00574 #endif /* GLX_GLXEXT_PROTOTYPES */
    00575 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
    00576 #endif
    00577
    00578 #ifndef GLX_MESA_copy_sub_buffer
    00579 #define GLX_MESA_copy_sub_buffer 1
    00580 #ifdef GLX_GLXEXT_PROTOTYPES
    00581 extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
    00582 #endif /* GLX_GLXEXT_PROTOTYPES */
    00583 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
    00584 #endif
    00585
    00586 #ifndef GLX_MESA_pixmap_colormap
    00587 #define GLX_MESA_pixmap_colormap 1
    00588 #ifdef GLX_GLXEXT_PROTOTYPES
    00589 extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
    00590 #endif /* GLX_GLXEXT_PROTOTYPES */
    00591 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
    00592 #endif
    00593
    00594 #ifndef GLX_MESA_release_buffers
    00595 #define GLX_MESA_release_buffers 1
    00596 #ifdef GLX_GLXEXT_PROTOTYPES
    00597 extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
    00598 #endif /* GLX_GLXEXT_PROTOTYPES */
    00599 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
    00600 #endif
    00601
    00602 #ifndef GLX_MESA_set_3dfx_mode
    00603 #define GLX_MESA_set_3dfx_mode 1
    00604 #ifdef GLX_GLXEXT_PROTOTYPES
    00605 extern Bool glXSet3DfxModeMESA (int);
    00606 #endif /* GLX_GLXEXT_PROTOTYPES */
    00607 typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
    00608 #endif
    00609
    00610 #ifndef GLX_SGIX_visual_select_group
    00611 #define GLX_SGIX_visual_select_group 1
    00612 #endif
    00613
    00614 #ifndef GLX_OML_swap_method
    00615 #define GLX_OML_swap_method 1
    00616 #endif
    00617
    00618 #ifndef GLX_OML_sync_control
    00619 #define GLX_OML_sync_control 1
    00620 #ifdef GLX_GLXEXT_PROTOTYPES
    00621 extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
    00622 extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
    00623 extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
    00624 extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
    00625 extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
    00626 #endif /* GLX_GLXEXT_PROTOTYPES */
    00627 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
    00628 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
    00629 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
    00630 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);
    00631 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
    00632 #endif
    00633
    00634 #ifndef GLX_SGIX_hyperpipe_group
    00635 #define GLX_SGIX_hyperpipe_group 1
    00636
    00637 typedef struct {
    00638     char    pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00639     int     networkId;
    00640 } GLXHyperpipeNetworkSGIX;
    00641
    00642 typedef struct {
    00643     char    pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00644     int     channel;
    00645     unsigned int
    00646       participationType;
    00647     int     timeSlice;
    00648 } GLXHyperpipeConfigSGIX;
    00649
    00650 typedef struct {
    00651     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00652     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
    00653     int destXOrigin, destYOrigin, destWidth, destHeight;
    00654 } GLXPipeRect;
    00655
    00656 typedef struct {
    00657     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
    00658     int XOrigin, YOrigin, maxHeight, maxWidth;
    00659 } GLXPipeRectLimits;
    00660
    00661 #ifdef GLX_GLXEXT_PROTOTYPES
    00662 extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
    00663 extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
    00664 extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
    00665 extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
    00666 extern int glXBindHyperpipeSGIX (Display *, int);
    00667 extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
    00668 extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
    00669 extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
    00670 #endif /* GLX_GLXEXT_PROTOTYPES */
    00671 typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
    00672 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
    00673 typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
    00674 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
    00675 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
    00676 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
    00677 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
    00678 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
    00679 #endif
    00680
    00681 #ifndef GLX_MESA_agp_offset
    00682 #define GLX_MESA_agp_offset 1
    00683 #ifdef GLX_GLXEXT_PROTOTYPES
    00684 extern unsigned int glXGetAGPOffsetMESA (const void *);
    00685 #endif /* GLX_GLXEXT_PROTOTYPES */
    00686 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
    00687 #endif
    00688
    00689 #ifdef __cplusplus
    00690 }
    00691 #endif
    00692
    00693 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines