00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef REALGLX_H
00028 #define REALGLX_H
00029
00030
00031 extern struct _glxapi_table *
00032 _real_GetGLXDispatchTable(void);
00033
00034
00035
00036
00037
00038
00039
00040 extern XVisualInfo *
00041 _real_glXChooseVisual( Display *dpy, int screen, int *list );
00042
00043 extern GLXContext
00044 _real_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
00045 GLXContext share_list, Bool direct );
00046
00047 extern GLXPixmap
00048 _real_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap );
00049
00050 extern GLXPixmap
00051 _real_glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visinfo,
00052 Pixmap pixmap, Colormap cmap );
00053
00054 extern void
00055 _real_glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap );
00056
00057 extern void
00058 _real_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
00059 unsigned long mask );
00060
00061 extern Bool
00062 _real_glXMakeCurrent( Display *dpy, GLXDrawable drawable, GLXContext ctx );
00063
00064 extern Bool
00065 _real_glXQueryExtension( Display *dpy, int *errorb, int *event );
00066
00067 extern void
00068 _real_glXDestroyContext( Display *dpy, GLXContext ctx );
00069
00070 extern Bool
00071 _real_glXIsDirect( Display *dpy, GLXContext ctx );
00072
00073 extern void
00074 _real_glXSwapBuffers( Display *dpy, GLXDrawable drawable );
00075
00076 extern void
00077 _real_glXUseXFont( Font font, int first, int count, int listbase );
00078
00079 extern Bool
00080 _real_glXQueryVersion( Display *dpy, int *maj, int *min );
00081
00082 extern int
00083 _real_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
00084 int attrib, int *value );
00085
00086 extern void
00087 _real_glXWaitGL( void );
00088
00089
00090 extern void
00091 _real_glXWaitX( void );
00092
00093
00094 extern const char *
00095 _real_glXQueryExtensionsString( Display *dpy, int screen );
00096
00097
00098 extern const char *
00099 _real_glXQueryServerString( Display *dpy, int screen, int name );
00100
00101
00102 extern const char *
00103 _real_glXGetClientString( Display *dpy, int name );
00104
00105
00106
00107
00108
00109
00110 extern GLXFBConfig *
00111 _real_glXChooseFBConfig( Display *dpy, int screen,
00112 const int *attribList, int *nitems );
00113
00114 extern int
00115 _real_glXGetFBConfigAttrib( Display *dpy, GLXFBConfig config,
00116 int attribute, int *value );
00117
00118 extern GLXFBConfig *
00119 _real_glXGetFBConfigs( Display *dpy, int screen, int *nelements );
00120
00121 extern XVisualInfo *
00122 _real_glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config );
00123
00124 extern GLXWindow
00125 _real_glXCreateWindow( Display *dpy, GLXFBConfig config, Window win,
00126 const int *attribList );
00127
00128 extern void
00129 _real_glXDestroyWindow( Display *dpy, GLXWindow window );
00130
00131 extern GLXPixmap
00132 _real_glXCreatePixmap( Display *dpy, GLXFBConfig config, Pixmap pixmap,
00133 const int *attribList );
00134
00135 extern void
00136 _real_glXDestroyPixmap( Display *dpy, GLXPixmap pixmap );
00137
00138 extern GLXPbuffer
00139 _real_glXCreatePbuffer( Display *dpy, GLXFBConfig config,
00140 const int *attribList );
00141
00142 extern void
00143 _real_glXDestroyPbuffer( Display *dpy, GLXPbuffer pbuf );
00144
00145 extern void
00146 _real_glXQueryDrawable( Display *dpy, GLXDrawable draw, int attribute,
00147 unsigned int *value );
00148
00149 extern GLXContext
00150 _real_glXCreateNewContext( Display *dpy, GLXFBConfig config,
00151 int renderType, GLXContext shareList, Bool direct );
00152
00153
00154 extern Bool
00155 _real_glXMakeContextCurrent( Display *dpy, GLXDrawable draw,
00156 GLXDrawable read, GLXContext ctx );
00157
00158 extern int
00159 _real_glXQueryContext( Display *dpy, GLXContext ctx, int attribute, int *value );
00160
00161 extern void
00162 _real_glXSelectEvent( Display *dpy, GLXDrawable drawable, unsigned long mask );
00163
00164 extern void
00165 _real_glXGetSelectedEvent( Display *dpy, GLXDrawable drawable,
00166 unsigned long *mask );
00167
00168 #ifdef GLX_SGI_swap_control
00169 extern int
00170 _real_glXSwapIntervalSGI(int interval);
00171 #endif
00172
00173
00174 #ifdef GLX_SGI_video_sync
00175 extern int
00176 _real_glXGetVideoSyncSGI(unsigned int *count);
00177
00178 extern int
00179 _real_glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count);
00180 #endif
00181
00182
00183 #ifdef GLX_SGI_make_current_read
00184 extern Bool
00185 _real_glXMakeCurrentReadSGI(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
00186
00187 extern GLXDrawable
00188 _real_glXGetCurrentReadDrawableSGI(void);
00189 #endif
00190
00191 #if defined(_VL_H) && defined(GLX_SGIX_video_source)
00192 extern GLXVideoSourceSGIX
00193 _real_glXCreateGLXVideoSourceSGIX(Display *dpy, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
00194
00195 extern void
00196 _real_glXDestroyGLXVideoSourceSGIX(Display *dpy, GLXVideoSourceSGIX src);
00197 #endif
00198
00199 #ifdef GLX_EXT_import_context
00200 extern void
00201 _real_glXFreeContextEXT(Display *dpy, GLXContext context);
00202
00203 extern GLXContextID
00204 _real_glXGetContextIDEXT(const GLXContext context);
00205
00206 extern Display *
00207 _real_glXGetCurrentDisplayEXT(void);
00208
00209 extern GLXContext
00210 _real_glXImportContextEXT(Display *dpy, GLXContextID contextID);
00211
00212 extern int
00213 _real_glXQueryContextInfoEXT(Display *dpy, GLXContext context, int attribute, int *value);
00214 #endif
00215
00216 #ifdef GLX_SGIX_fbconfig
00217 extern int
00218 _real_glXGetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
00219
00220 extern GLXFBConfigSGIX *
00221 _real_glXChooseFBConfigSGIX(Display *dpy, int screen, int *attrib_list, int *nelements);
00222
00223 extern GLXPixmap
00224 _real_glXCreateGLXPixmapWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
00225
00226 extern GLXContext
00227 _real_glXCreateContextWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
00228
00229 extern XVisualInfo *
00230 _real_glXGetVisualFromFBConfigSGIX(Display *dpy, GLXFBConfigSGIX config);
00231
00232 extern GLXFBConfigSGIX
00233 _real_glXGetFBConfigFromVisualSGIX(Display *dpy, XVisualInfo *vis);
00234 #endif
00235
00236 #ifdef GLX_SGIX_pbuffer
00237 extern GLXPbufferSGIX
00238 _real_glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
00239
00240 extern void
00241 _real_glXDestroyGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf);
00242
00243 extern int
00244 _real_glXQueryGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
00245
00246 extern void
00247 _real_glXSelectEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long mask);
00248
00249 extern void
00250 _real_glXGetSelectedEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long *mask);
00251 #endif
00252
00253 #ifdef GLX_SGI_cushion
00254 extern void
00255 _real_glXCushionSGI(Display *dpy, Window win, float cushion);
00256 #endif
00257
00258 #ifdef GLX_SGIX_video_resize
00259 extern int
00260 _real_glXBindChannelToWindowSGIX(Display *dpy, int screen, int channel , Window window);
00261
00262 extern int
00263 _real_glXChannelRectSGIX(Display *dpy, int screen, int channel, int x, int y, int w, int h);
00264
00265 extern int
00266 _real_glXQueryChannelRectSGIX(Display *dpy, int screen, int channel, int *x, int *y, int *w, int *h);
00267
00268 extern int
00269 _real_glXQueryChannelDeltasSGIX(Display *dpy, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
00270
00271 extern int
00272 _real_glXChannelRectSyncSGIX(Display *dpy, int screen, int channel, GLenum synctype);
00273 #endif
00274
00275 #if defined(_DM_BUFFER_H_) && defined(GLX_SGIX_dmbuffer)
00276 extern Bool
00277 _real_glXAssociateDMPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
00278 #endif
00279
00280 #ifdef GLX_SGIX_swap_group
00281 extern void
00282 _real_glXJoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable, GLXDrawable member);
00283 #endif
00284
00285 #ifdef GLX_SGIX_swap_barrier
00286 extern void
00287 _real_glXBindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable, int barrier);
00288
00289 extern Bool
00290 _real_glXQueryMaxSwapBarriersSGIX(Display *dpy, int screen, int *max);
00291 #endif
00292
00293 #ifdef GLX_SUN_get_transparent_index
00294 extern Status
00295 _real_glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay, long *pTransparent);
00296 #endif
00297
00298 #ifdef GLX_MESA_release_buffers
00299 extern Bool
00300 _real_glXReleaseBuffersMESA( Display *dpy, GLXDrawable d );
00301 #endif
00302
00303 #ifdef GLX_MESA_set_3dfx_mode
00304 extern Bool
00305 _real_glXSet3DfxModeMESA( int mode );
00306 #endif
00307
00308 #ifdef GLX_NV_vertex_array_range
00309 extern void *
00310 _real_glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
00311 extern void
00312 _real_glXFreeMemoryNV(GLvoid *pointer);
00313 #endif
00314
00315 #ifdef GLX_MESA_agp_offset
00316 extern GLuint
00317 _real_glXGetAGPOffsetMESA(const GLvoid *pointer);
00318 #endif
00319
00320 #ifdef GLX_MESA_copy_sub_buffer
00321 extern void
00322 _real_glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable,
00323 int x, int y, int width, int height );
00324 #endif
00325
00326 #endif