realglx.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct _glxapi_table_real_GetGLXDispatchTable (void)
XVisualInfo * _real_glXChooseVisual (Display *dpy, int screen, int *list)
GLXContext _real_glXCreateContext (Display *dpy, XVisualInfo *visinfo, GLXContext share_list, Bool direct)
GLXPixmap _real_glXCreateGLXPixmap (Display *dpy, XVisualInfo *visinfo, Pixmap pixmap)
GLXPixmap _real_glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap)
void _real_glXDestroyGLXPixmap (Display *dpy, GLXPixmap pixmap)
void _real_glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, unsigned long mask)
Bool _real_glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx)
Bool _real_glXQueryExtension (Display *dpy, int *errorb, int *event)
void _real_glXDestroyContext (Display *dpy, GLXContext ctx)
Bool _real_glXIsDirect (Display *dpy, GLXContext ctx)
void _real_glXSwapBuffers (Display *dpy, GLXDrawable drawable)
void _real_glXUseXFont (Font font, int first, int count, int listbase)
Bool _real_glXQueryVersion (Display *dpy, int *maj, int *min)
int _real_glXGetConfig (Display *dpy, XVisualInfo *visinfo, int attrib, int *value)
void _real_glXWaitGL (void)
void _real_glXWaitX (void)
const char * _real_glXQueryExtensionsString (Display *dpy, int screen)
const char * _real_glXQueryServerString (Display *dpy, int screen, int name)
const char * _real_glXGetClientString (Display *dpy, int name)
GLXFBConfig * _real_glXChooseFBConfig (Display *dpy, int screen, const int *attribList, int *nitems)
int _real_glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value)
GLXFBConfig * _real_glXGetFBConfigs (Display *dpy, int screen, int *nelements)
XVisualInfo * _real_glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config)
GLXWindow _real_glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attribList)
void _real_glXDestroyWindow (Display *dpy, GLXWindow window)
GLXPixmap _real_glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attribList)
void _real_glXDestroyPixmap (Display *dpy, GLXPixmap pixmap)
GLXPbuffer _real_glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attribList)
void _real_glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf)
void _real_glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
GLXContext _real_glXCreateNewContext (Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, Bool direct)
Bool _real_glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
int _real_glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value)
void _real_glXSelectEvent (Display *dpy, GLXDrawable drawable, unsigned long mask)
void _real_glXGetSelectedEvent (Display *dpy, GLXDrawable drawable, unsigned long *mask)


Function Documentation

struct _glxapi_table* _real_GetGLXDispatchTable ( void   )  [read]

Definition at line 34 of file realglx.c.

References _glxapi_get_dispatch_table_size(), _glxapi_set_no_op_table(), _real_glXChooseFBConfig(), _real_glXChooseVisual(), _real_glXCopyContext(), _real_glXCreateContext(), _real_glXCreateGLXPixmap(), _real_glXCreateGLXPixmapMESA(), _real_glXCreateNewContext(), _real_glXCreatePbuffer(), _real_glXCreatePixmap(), _real_glXCreateWindow(), _real_glXDestroyContext(), _real_glXDestroyGLXPixmap(), _real_glXDestroyPbuffer(), _real_glXDestroyPixmap(), _real_glXDestroyWindow(), _real_glXGetClientString(), _real_glXGetConfig(), _real_glXGetFBConfigAttrib(), _real_glXGetFBConfigs(), _real_glXGetSelectedEvent(), _real_glXGetVisualFromFBConfig(), _real_glXIsDirect(), _real_glXMakeContextCurrent(), _real_glXMakeCurrent(), _real_glXQueryContext(), _real_glXQueryDrawable(), _real_glXQueryExtension(), _real_glXQueryExtensionsString(), _real_glXQueryServerString(), _real_glXQueryVersion(), _real_glXSelectEvent(), _real_glXSwapBuffers(), _real_glXUseXFont(), _real_glXWaitGL(), _real_glXWaitX(), _glxapi_table::AllocateMemoryNV, assert, _glxapi_table::BindChannelToWindowSGIX, _glxapi_table::BindSwapBarrierSGIX, _glxapi_table::ChannelRectSGIX, _glxapi_table::ChannelRectSyncSGIX, _glxapi_table::ChooseFBConfig, _glxapi_table::ChooseFBConfigSGIX, _glxapi_table::ChooseVisual, _glxapi_table::CopyContext, _glxapi_table::CopySubBufferMESA, _glxapi_table::CreateContext, _glxapi_table::CreateContextWithConfigSGIX, _glxapi_table::CreateGLXPbufferSGIX, _glxapi_table::CreateGLXPixmap, _glxapi_table::CreateGLXPixmapMESA, _glxapi_table::CreateGLXPixmapWithConfigSGIX, _glxapi_table::CreateGLXVideoSourceSGIX, _glxapi_table::CreateNewContext, _glxapi_table::CreatePbuffer, _glxapi_table::CreatePixmap, _glxapi_table::CreateWindow, _glxapi_table::CushionSGI, _glxapi_table::DestroyContext, _glxapi_table::DestroyGLXPbufferSGIX, _glxapi_table::DestroyGLXPixmap, _glxapi_table::DestroyGLXVideoSourceSGIX, _glxapi_table::DestroyPbuffer, _glxapi_table::DestroyPixmap, _glxapi_table::DestroyWindow, _glxapi_table::FreeContextEXT, _glxapi_table::FreeMemoryNV, _glxapi_table::GetAGPOffsetMESA, _glxapi_table::GetClientString, _glxapi_table::GetConfig, _glxapi_table::GetFBConfigAttrib, _glxapi_table::GetFBConfigAttribSGIX, _glxapi_table::GetFBConfigFromVisualSGIX, _glxapi_table::GetFBConfigs, _glxapi_table::GetSelectedEvent, _glxapi_table::GetSelectedEventSGIX, _glxapi_table::GetTransparentIndexSUN, _glxapi_table::GetVideoSyncSGI, _glxapi_table::GetVisualFromFBConfig, _glxapi_table::GetVisualFromFBConfigSGIX, _glxapi_table::ImportContextEXT, _glxapi_table::IsDirect, _glxapi_table::JoinSwapGroupSGIX, _glxapi_table::MakeContextCurrent, _glxapi_table::MakeCurrent, _glxapi_table::MakeCurrentReadSGI, _glxapi_table::QueryChannelDeltasSGIX, _glxapi_table::QueryChannelRectSGIX, _glxapi_table::QueryContext, _glxapi_table::QueryContextInfoEXT, _glxapi_table::QueryDrawable, _glxapi_table::QueryExtension, _glxapi_table::QueryExtensionsString, _glxapi_table::QueryGLXPbufferSGIX, _glxapi_table::QueryMaxSwapBarriersSGIX, _glxapi_table::QueryServerString, _glxapi_table::QueryVersion, _glxapi_table::ReleaseBuffersMESA, _glxapi_table::SelectEvent, _glxapi_table::SelectEventSGIX, _glxapi_table::Set3DfxModeMESA, _glxapi_table::SwapBuffers, _glxapi_table::SwapIntervalSGI, _glxapi_table::UseXFont, _glxapi_table::WaitGL, _glxapi_table::WaitVideoSyncSGI, and _glxapi_table::WaitX.

00035 {
00036    static struct _glxapi_table glx;
00037 
00038    /* be sure our dispatch table size <= libGL's table */
00039    {
00040       GLuint size = sizeof(struct _glxapi_table) / sizeof(void *);
00041       (void) size;
00042       assert(_glxapi_get_dispatch_table_size() >= size);
00043    }
00044 
00045    /* initialize the whole table to no-ops */
00046    _glxapi_set_no_op_table(&glx);
00047 
00048    /* now initialize the table with the functions I implement */
00049 
00050    /*** GLX_VERSION_1_0 ***/
00051    glx.ChooseVisual = _real_glXChooseVisual;
00052    glx.CopyContext = _real_glXCopyContext;
00053    glx.CreateContext = _real_glXCreateContext;
00054    glx.CreateGLXPixmap = _real_glXCreateGLXPixmap;
00055    glx.DestroyContext = _real_glXDestroyContext;
00056    glx.DestroyGLXPixmap = _real_glXDestroyGLXPixmap;
00057    glx.GetConfig = _real_glXGetConfig;
00058    /*glx.GetCurrentContext = _real_glXGetCurrentContext;*/
00059    /*glx.GetCurrentDrawable = _real_glXGetCurrentDrawable;*/
00060    glx.IsDirect = _real_glXIsDirect;
00061    glx.MakeCurrent = _real_glXMakeCurrent;
00062    glx.QueryExtension = _real_glXQueryExtension;
00063    glx.QueryVersion = _real_glXQueryVersion;
00064    glx.SwapBuffers = _real_glXSwapBuffers;
00065    glx.UseXFont = _real_glXUseXFont;
00066    glx.WaitGL = _real_glXWaitGL;
00067    glx.WaitX = _real_glXWaitX;
00068 
00069    /*** GLX_VERSION_1_1 ***/
00070    glx.GetClientString = _real_glXGetClientString;
00071    glx.QueryExtensionsString = _real_glXQueryExtensionsString;
00072    glx.QueryServerString = _real_glXQueryServerString;
00073 
00074    /*** GLX_VERSION_1_2 ***/
00075    /*glx.GetCurrentDisplay = _real_glXGetCurrentDisplay;*/
00076 
00077    /*** GLX_VERSION_1_3 ***/
00078    glx.ChooseFBConfig = _real_glXChooseFBConfig;
00079    glx.CreateNewContext = _real_glXCreateNewContext;
00080    glx.CreatePbuffer = _real_glXCreatePbuffer;
00081    glx.CreatePixmap = _real_glXCreatePixmap;
00082    glx.CreateWindow = _real_glXCreateWindow;
00083    glx.DestroyPbuffer = _real_glXDestroyPbuffer;
00084    glx.DestroyPixmap = _real_glXDestroyPixmap;
00085    glx.DestroyWindow = _real_glXDestroyWindow;
00086    /*glx.GetCurrentReadDrawable = _real_glXGetCurrentReadDrawable;*/
00087    glx.GetFBConfigAttrib = _real_glXGetFBConfigAttrib;
00088    glx.GetFBConfigs = _real_glXGetFBConfigs;
00089    glx.GetSelectedEvent = _real_glXGetSelectedEvent;
00090    glx.GetVisualFromFBConfig = _real_glXGetVisualFromFBConfig;
00091    glx.MakeContextCurrent = _real_glXMakeContextCurrent;
00092    glx.QueryContext = _real_glXQueryContext;
00093    glx.QueryDrawable = _real_glXQueryDrawable;
00094    glx.SelectEvent = _real_glXSelectEvent;
00095 
00096    /*** GLX_SGI_swap_control ***/
00097    glx.SwapIntervalSGI = _real_glXSwapIntervalSGI;
00098 
00099    /*** GLX_SGI_video_sync ***/
00100    glx.GetVideoSyncSGI = _real_glXGetVideoSyncSGI;
00101    glx.WaitVideoSyncSGI = _real_glXWaitVideoSyncSGI;
00102 
00103    /*** GLX_SGI_make_current_read ***/
00104    glx.MakeCurrentReadSGI = _real_glXMakeCurrentReadSGI;
00105    /*glx.GetCurrentReadDrawableSGI = _real_glXGetCurrentReadDrawableSGI;*/
00106 
00107 #if defined(_VL_H)
00108    /*** GLX_SGIX_video_source ***/
00109    glx.CreateGLXVideoSourceSGIX = _real_glXCreateGLXVideoSourceSGIX;
00110    glx.DestroyGLXVideoSourceSGIX = _real_glXDestroyGLXVideoSourceSGIX;
00111 #endif
00112 
00113    /*** GLX_EXT_import_context ***/
00114    glx.FreeContextEXT = _real_glXFreeContextEXT;
00115    /*glx.GetContextIDEXT = _real_glXGetContextIDEXT;*/
00116    /*glx.GetCurrentDisplayEXT = _real_glXGetCurrentDisplayEXT;*/
00117    glx.ImportContextEXT = _real_glXImportContextEXT;
00118    glx.QueryContextInfoEXT = _real_glXQueryContextInfoEXT;
00119 
00120    /*** GLX_SGIX_fbconfig ***/
00121    glx.GetFBConfigAttribSGIX = _real_glXGetFBConfigAttribSGIX;
00122    glx.ChooseFBConfigSGIX = _real_glXChooseFBConfigSGIX;
00123    glx.CreateGLXPixmapWithConfigSGIX = _real_glXCreateGLXPixmapWithConfigSGIX;
00124    glx.CreateContextWithConfigSGIX = _real_glXCreateContextWithConfigSGIX;
00125    glx.GetVisualFromFBConfigSGIX = _real_glXGetVisualFromFBConfigSGIX;
00126    glx.GetFBConfigFromVisualSGIX = _real_glXGetFBConfigFromVisualSGIX;
00127 
00128    /*** GLX_SGIX_pbuffer ***/
00129    glx.CreateGLXPbufferSGIX = _real_glXCreateGLXPbufferSGIX;
00130    glx.DestroyGLXPbufferSGIX = _real_glXDestroyGLXPbufferSGIX;
00131    glx.QueryGLXPbufferSGIX = _real_glXQueryGLXPbufferSGIX;
00132    glx.SelectEventSGIX = _real_glXSelectEventSGIX;
00133    glx.GetSelectedEventSGIX = _real_glXGetSelectedEventSGIX;
00134 
00135    /*** GLX_SGI_cushion ***/
00136    glx.CushionSGI = _real_glXCushionSGI;
00137 
00138    /*** GLX_SGIX_video_resize ***/
00139    glx.BindChannelToWindowSGIX = _real_glXBindChannelToWindowSGIX;
00140    glx.ChannelRectSGIX = _real_glXChannelRectSGIX;
00141    glx.QueryChannelRectSGIX = _real_glXQueryChannelRectSGIX;
00142    glx.QueryChannelDeltasSGIX = _real_glXQueryChannelDeltasSGIX;
00143    glx.ChannelRectSyncSGIX = _real_glXChannelRectSyncSGIX;
00144 
00145 #if defined(_DM_BUFFER_H_)
00146    /*** (GLX_SGIX_dmbuffer ***/
00147    glx.AssociateDMPbufferSGIX = NULL;
00148 #endif
00149 
00150    /*** GLX_SGIX_swap_group ***/
00151    glx.JoinSwapGroupSGIX = _real_glXJoinSwapGroupSGIX;
00152 
00153    /*** GLX_SGIX_swap_barrier ***/
00154    glx.BindSwapBarrierSGIX = _real_glXBindSwapBarrierSGIX;
00155    glx.QueryMaxSwapBarriersSGIX = _real_glXQueryMaxSwapBarriersSGIX;
00156 
00157    /*** GLX_SUN_get_transparent_index ***/
00158    glx.GetTransparentIndexSUN = _real_glXGetTransparentIndexSUN;
00159 
00160    /*** GLX_MESA_copy_sub_buffer ***/
00161    glx.CopySubBufferMESA = _real_glXCopySubBufferMESA;
00162 
00163    /*** GLX_MESA_release_buffers ***/
00164    glx.ReleaseBuffersMESA = _real_glXReleaseBuffersMESA;
00165 
00166    /*** GLX_MESA_pixmap_colormap ***/
00167    glx.CreateGLXPixmapMESA = _real_glXCreateGLXPixmapMESA;
00168 
00169    /*** GLX_MESA_set_3dfx_mode ***/
00170    glx.Set3DfxModeMESA = _real_glXSet3DfxModeMESA;
00171 
00172    /*** GLX_NV_vertex_array_range ***/
00173    glx.AllocateMemoryNV = _real_glXAllocateMemoryNV;
00174    glx.FreeMemoryNV = _real_glXFreeMemoryNV;
00175 
00176    /*** GLX_MESA_agp_offset ***/
00177    glx.GetAGPOffsetMESA = _real_glXGetAGPOffsetMESA;
00178 
00179    return &glx;
00180 }

GLXFBConfig* _real_glXChooseFBConfig ( Display *  dpy,
int  screen,
const int *  attribList,
int *  nitems 
)

XVisualInfo* _real_glXChooseVisual ( Display *  dpy,
int  screen,
int *  list 
)

void _real_glXCopyContext ( Display *  dpy,
GLXContext  src,
GLXContext  dst,
unsigned long  mask 
)

GLXContext _real_glXCreateContext ( Display *  dpy,
XVisualInfo *  visinfo,
GLXContext  share_list,
Bool  direct 
)

GLXPixmap _real_glXCreateGLXPixmap ( Display *  dpy,
XVisualInfo *  visinfo,
Pixmap  pixmap 
)

GLXPixmap _real_glXCreateGLXPixmapMESA ( Display *  dpy,
XVisualInfo *  visinfo,
Pixmap  pixmap,
Colormap  cmap 
)

GLXContext _real_glXCreateNewContext ( Display *  dpy,
GLXFBConfig  config,
int  renderType,
GLXContext  shareList,
Bool  direct 
)

GLXPbuffer _real_glXCreatePbuffer ( Display *  dpy,
GLXFBConfig  config,
const int *  attribList 
)

GLXPixmap _real_glXCreatePixmap ( Display *  dpy,
GLXFBConfig  config,
Pixmap  pixmap,
const int *  attribList 
)

GLXWindow _real_glXCreateWindow ( Display *  dpy,
GLXFBConfig  config,
Window  win,
const int *  attribList 
)

void _real_glXDestroyContext ( Display *  dpy,
GLXContext  ctx 
)

void _real_glXDestroyGLXPixmap ( Display *  dpy,
GLXPixmap  pixmap 
)

void _real_glXDestroyPbuffer ( Display *  dpy,
GLXPbuffer  pbuf 
)

void _real_glXDestroyPixmap ( Display *  dpy,
GLXPixmap  pixmap 
)

void _real_glXDestroyWindow ( Display *  dpy,
GLXWindow  window 
)

const char* _real_glXGetClientString ( Display *  dpy,
int  name 
)

int _real_glXGetConfig ( Display *  dpy,
XVisualInfo *  visinfo,
int  attrib,
int *  value 
)

int _real_glXGetFBConfigAttrib ( Display *  dpy,
GLXFBConfig  config,
int  attribute,
int *  value 
)

GLXFBConfig* _real_glXGetFBConfigs ( Display *  dpy,
int  screen,
int *  nelements 
)

void _real_glXGetSelectedEvent ( Display *  dpy,
GLXDrawable  drawable,
unsigned long *  mask 
)

XVisualInfo* _real_glXGetVisualFromFBConfig ( Display *  dpy,
GLXFBConfig  config 
)

Bool _real_glXIsDirect ( Display *  dpy,
GLXContext  ctx 
)

Bool _real_glXMakeContextCurrent ( Display *  dpy,
GLXDrawable  draw,
GLXDrawable  read,
GLXContext  ctx 
)

Bool _real_glXMakeCurrent ( Display *  dpy,
GLXDrawable  drawable,
GLXContext  ctx 
)

int _real_glXQueryContext ( Display *  dpy,
GLXContext  ctx,
int  attribute,
int *  value 
)

void _real_glXQueryDrawable ( Display *  dpy,
GLXDrawable  draw,
int  attribute,
unsigned int *  value 
)

Bool _real_glXQueryExtension ( Display *  dpy,
int *  errorb,
int *  event 
)

const char* _real_glXQueryExtensionsString ( Display *  dpy,
int  screen 
)

const char* _real_glXQueryServerString ( Display *  dpy,
int  screen,
int  name 
)

Bool _real_glXQueryVersion ( Display *  dpy,
int *  maj,
int *  min 
)

void _real_glXSelectEvent ( Display *  dpy,
GLXDrawable  drawable,
unsigned long  mask 
)

void _real_glXSwapBuffers ( Display *  dpy,
GLXDrawable  drawable 
)

void _real_glXUseXFont ( Font  font,
int  first,
int  count,
int  listbase 
)

void _real_glXWaitGL ( void   ) 

void _real_glXWaitX ( void   ) 


Generated on Tue Sep 29 06:25:50 2009 for Gallium3D by  doxygen 1.5.4