61
Display * VBOXGLXENTRYTAG(glXGetCurrentDisplayEXT)(void)
61
DECLEXPORT(Display*) VBOXGLXENTRYTAG(glXGetCurrentDisplayEXT)(void)
63
63
return glxim.GetCurrentDisplayEXT();
66
void VBOXGLXENTRYTAG(glXFreeContextEXT)(Display *dpy, GLXContext ctx)
66
DECLEXPORT(void) VBOXGLXENTRYTAG(glXFreeContextEXT)(Display *dpy, GLXContext ctx)
68
68
return glxim.FreeContextEXT(dpy, ctx);
72
int VBOXGLXENTRYTAG(glXQueryContextInfoEXT)(Display *dpy, GLXContext ctx)
72
DECLEXPORT(int) VBOXGLXENTRYTAG(glXQueryContextInfoEXT)(Display *dpy, GLXContext ctx)
74
74
return glxim.QueryContextInfoEXT(dpy, ctx);
77
void * VBOXGLXENTRYTAG(glXAllocateMemoryMESA)(Display *dpy, int scrn,
77
DECLEXPORT(void *) VBOXGLXENTRYTAG(glXAllocateMemoryMESA)(Display *dpy, int scrn,
78
78
size_t size, float readFreq,
79
79
float writeFreq, float priority)
81
81
return glxim.AllocateMemoryMESA(dpy, scrn, size, readFreq, writeFreq, priority);
84
GLuint VBOXGLXENTRYTAG(glXGetMemoryOffsetMESA)(Display *dpy, int scrn, const void *pointer )
84
DECLEXPORT(GLuint) VBOXGLXENTRYTAG(glXGetMemoryOffsetMESA)(Display *dpy, int scrn, const void *pointer )
86
86
return glxim.GetMemoryOffsetMESA(dpy, scrn, pointer);
90
GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap)
90
DECLEXPORT(GLXPixmap) VBOXGLXENTRYTAG(glXCreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap)
92
92
return glxim.CreateGLXPixmapMESA(dpy, visual, pixmap, cmap);
96
96
/*Common glX functions*/
97
void VBOXGLXENTRYTAG(glXCopyContext)( Display *dpy, GLXContext src, GLXContext dst, unsigned long mask)
97
DECLEXPORT(void) VBOXGLXENTRYTAG(glXCopyContext)( Display *dpy, GLXContext src, GLXContext dst, unsigned long mask)
99
99
return glxim.CopyContext(dpy, src, dst, mask);
103
void VBOXGLXENTRYTAG(glXUseXFont)(Font font, int first, int count, int listBase)
103
DECLEXPORT(void) VBOXGLXENTRYTAG(glXUseXFont)(Font font, int first, int count, int listBase)
105
105
return glxim.UseXFont(font, first, count, listBase);
108
CR_GLXFuncPtr VBOXGLXENTRYTAG(glXGetProcAddress)(const GLubyte *name)
108
DECLEXPORT(CR_GLXFuncPtr) VBOXGLXENTRYTAG(glXGetProcAddress)(const GLubyte *name)
110
110
return glxim.GetProcAddress(name);
113
Bool VBOXGLXENTRYTAG(glXQueryExtension)(Display *dpy, int *errorBase, int *eventBase)
113
DECLEXPORT(Bool) VBOXGLXENTRYTAG(glXQueryExtension)(Display *dpy, int *errorBase, int *eventBase)
115
115
return glxim.QueryExtension(dpy, errorBase, eventBase);
118
Bool VBOXGLXENTRYTAG(glXIsDirect)(Display *dpy, GLXContext ctx)
118
DECLEXPORT(Bool) VBOXGLXENTRYTAG(glXIsDirect)(Display *dpy, GLXContext ctx)
120
120
return glxim.IsDirect(dpy, ctx);
123
GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmap)(Display *dpy, XVisualInfo *vis, Pixmap pixmap)
123
DECLEXPORT(GLXPixmap) VBOXGLXENTRYTAG(glXCreateGLXPixmap)(Display *dpy, XVisualInfo *vis, Pixmap pixmap)
125
125
return glxim.CreateGLXPixmap(dpy, vis, pixmap);
128
void VBOXGLXENTRYTAG(glXSwapBuffers)(Display *dpy, GLXDrawable drawable)
128
DECLEXPORT(void) VBOXGLXENTRYTAG(glXSwapBuffers)(Display *dpy, GLXDrawable drawable)
130
130
return glxim.SwapBuffers(dpy, drawable);
134
GLXDrawable VBOXGLXENTRYTAG(glXGetCurrentDrawable)(void)
134
DECLEXPORT(GLXDrawable) VBOXGLXENTRYTAG(glXGetCurrentDrawable)(void)
136
136
return glxim.GetCurrentDrawable();
139
void VBOXGLXENTRYTAG(glXWaitGL)(void)
139
DECLEXPORT(void) VBOXGLXENTRYTAG(glXWaitGL)(void)
141
141
return glxim.WaitGL();
144
Display * VBOXGLXENTRYTAG(glXGetCurrentDisplay)(void)
144
DECLEXPORT(Display *) VBOXGLXENTRYTAG(glXGetCurrentDisplay)(void)
146
146
return glxim.GetCurrentDisplay();
149
const char * VBOXGLXENTRYTAG(glXQueryServerString)(Display *dpy, int screen, int name)
149
DECLEXPORT(const char *) VBOXGLXENTRYTAG(glXQueryServerString)(Display *dpy, int screen, int name)
151
151
return glxim.QueryServerString(dpy, screen, name);
154
GLXContext VBOXGLXENTRYTAG(glXCreateContext)(Display *dpy, XVisualInfo *vis, GLXContext share, Bool direct)
154
DECLEXPORT(GLXContext) VBOXGLXENTRYTAG(glXCreateContext)(Display *dpy, XVisualInfo *vis, GLXContext share, Bool direct)
156
156
return glxim.CreateContext(dpy, vis, share, direct);
159
int VBOXGLXENTRYTAG(glXGetConfig)(Display *dpy, XVisualInfo *vis, int attrib, int *value)
159
DECLEXPORT(int) VBOXGLXENTRYTAG(glXGetConfig)(Display *dpy, XVisualInfo *vis, int attrib, int *value)
161
161
return glxim.GetConfig(dpy, vis, attrib, value);
164
void VBOXGLXENTRYTAG(glXWaitX)(void)
164
DECLEXPORT(void) VBOXGLXENTRYTAG(glXWaitX)(void)
166
166
return glxim.WaitX();
169
GLXContext VBOXGLXENTRYTAG(glXGetCurrentContext)(void)
169
DECLEXPORT(GLXContext) VBOXGLXENTRYTAG(glXGetCurrentContext)(void)
171
171
return glxim.GetCurrentContext();
174
const char * VBOXGLXENTRYTAG(glXGetClientString)(Display *dpy, int name)
174
DECLEXPORT(const char *) VBOXGLXENTRYTAG(glXGetClientString)(Display *dpy, int name)
176
176
return glxim.GetClientString(dpy, name);
179
Bool VBOXGLXENTRYTAG(glXMakeCurrent)(Display *dpy, GLXDrawable drawable, GLXContext ctx)
179
DECLEXPORT(Bool) VBOXGLXENTRYTAG(glXMakeCurrent)(Display *dpy, GLXDrawable drawable, GLXContext ctx)
181
181
return glxim.MakeCurrent(dpy, drawable, ctx);
184
void VBOXGLXENTRYTAG(glXDestroyContext)(Display *dpy, GLXContext ctx)
184
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyContext)(Display *dpy, GLXContext ctx)
186
186
return glxim.DestroyContext(dpy, ctx);
189
CR_GLXFuncPtr VBOXGLXENTRYTAG(glXGetProcAddressARB)(const GLubyte *name)
189
DECLEXPORT(CR_GLXFuncPtr) VBOXGLXENTRYTAG(glXGetProcAddressARB)(const GLubyte *name)
191
191
return glxim.GetProcAddressARB(name);
194
void VBOXGLXENTRYTAG(glXDestroyGLXPixmap)(Display *dpy, GLXPixmap pix)
194
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyGLXPixmap)(Display *dpy, GLXPixmap pix)
196
196
return glxim.DestroyGLXPixmap(dpy, pix);
199
Bool VBOXGLXENTRYTAG(glXQueryVersion)(Display *dpy, int *major, int *minor)
199
DECLEXPORT(Bool) VBOXGLXENTRYTAG(glXQueryVersion)(Display *dpy, int *major, int *minor)
201
201
return glxim.QueryVersion(dpy, major, minor);
204
XVisualInfo * VBOXGLXENTRYTAG(glXChooseVisual)(Display *dpy, int screen, int *attribList)
204
DECLEXPORT(XVisualInfo *) VBOXGLXENTRYTAG(glXChooseVisual)(Display *dpy, int screen, int *attribList)
206
206
return glxim.ChooseVisual(dpy, screen, attribList);
209
const char * VBOXGLXENTRYTAG(glXQueryExtensionsString)(Display *dpy, int screen)
209
DECLEXPORT(const char *) VBOXGLXENTRYTAG(glXQueryExtensionsString)(Display *dpy, int screen)
211
211
return glxim.QueryExtensionsString(dpy, screen);
215
GLXPbufferSGIX VBOXGLXENTRYTAG(glXCreateGLXPbufferSGIX)
215
DECLEXPORT(GLXPbufferSGIX) VBOXGLXENTRYTAG(glXCreateGLXPbufferSGIX)
216
216
(Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list)
218
218
return glxim.CreateGLXPbufferSGIX(dpy, config, width, height, attrib_list);
221
int VBOXGLXENTRYTAG(glXQueryGLXPbufferSGIX)
221
DECLEXPORT(int) VBOXGLXENTRYTAG(glXQueryGLXPbufferSGIX)
222
222
(Display *dpy, GLXPbuffer pbuf, int attribute, unsigned int *value)
224
224
return glxim.QueryGLXPbufferSGIX(dpy, pbuf, attribute, value);
227
GLXFBConfigSGIX * VBOXGLXENTRYTAG(glXChooseFBConfigSGIX)
227
DECLEXPORT(GLXFBConfigSGIX *) VBOXGLXENTRYTAG(glXChooseFBConfigSGIX)
228
228
(Display *dpy, int screen, int *attrib_list, int *nelements)
230
230
return glxim.ChooseFBConfigSGIX(dpy, screen, attrib_list, nelements);
233
void VBOXGLXENTRYTAG(glXDestroyGLXPbufferSGIX)(Display *dpy, GLXPbuffer pbuf)
233
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyGLXPbufferSGIX)(Display *dpy, GLXPbuffer pbuf)
235
235
return glxim.DestroyGLXPbufferSGIX(dpy, pbuf);
238
void VBOXGLXENTRYTAG(glXSelectEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long mask)
238
DECLEXPORT(void) VBOXGLXENTRYTAG(glXSelectEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long mask)
240
240
return glxim.SelectEventSGIX(dpy, drawable, mask);
243
void VBOXGLXENTRYTAG(glXGetSelectedEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long *mask)
243
DECLEXPORT(void) VBOXGLXENTRYTAG(glXGetSelectedEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long *mask)
245
245
return glxim.GetSelectedEventSGIX(dpy, drawable, mask);
248
GLXFBConfigSGIX VBOXGLXENTRYTAG(glXGetFBConfigFromVisualSGIX)(Display *dpy, XVisualInfo *vis)
248
DECLEXPORT(GLXFBConfigSGIX) VBOXGLXENTRYTAG(glXGetFBConfigFromVisualSGIX)(Display *dpy, XVisualInfo *vis)
250
250
return glxim.GetFBConfigFromVisualSGIX(dpy, vis);
253
XVisualInfo * VBOXGLXENTRYTAG(glXGetVisualFromFBConfigSGIX)(Display *dpy, GLXFBConfig config)
253
DECLEXPORT(XVisualInfo *) VBOXGLXENTRYTAG(glXGetVisualFromFBConfigSGIX)(Display *dpy, GLXFBConfig config)
255
255
return glxim.GetVisualFromFBConfigSGIX(dpy, config);
258
GLXContext VBOXGLXENTRYTAG(glXCreateContextWithConfigSGIX)
258
DECLEXPORT(GLXContext) VBOXGLXENTRYTAG(glXCreateContextWithConfigSGIX)
259
259
(Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct)
261
261
return glxim.CreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct);
264
GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmapWithConfigSGIX)(Display *dpy, GLXFBConfig config, Pixmap pixmap)
264
DECLEXPORT(GLXPixmap) VBOXGLXENTRYTAG(glXCreateGLXPixmapWithConfigSGIX)(Display *dpy, GLXFBConfig config, Pixmap pixmap)
266
266
return glxim.CreateGLXPixmapWithConfigSGIX(dpy, config, pixmap);
269
int VBOXGLXENTRYTAG(glXGetFBConfigAttribSGIX)(Display *dpy, GLXFBConfig config, int attribute, int *value)
269
DECLEXPORT(int) VBOXGLXENTRYTAG(glXGetFBConfigAttribSGIX)(Display *dpy, GLXFBConfig config, int attribute, int *value)
271
271
return glxim.GetFBConfigAttribSGIX(dpy, config, attribute, value);
276
276
* GLX 1.3 functions
278
GLXFBConfig * VBOXGLXENTRYTAG(glXChooseFBConfig)(Display *dpy, int screen, ATTRIB_TYPE *attrib_list, int *nelements)
278
DECLEXPORT(GLXFBConfig *) VBOXGLXENTRYTAG(glXChooseFBConfig)(Display *dpy, int screen, ATTRIB_TYPE *attrib_list, int *nelements)
280
280
return glxim.ChooseFBConfig(dpy, screen, attrib_list, nelements);
283
GLXPbuffer VBOXGLXENTRYTAG(glXCreatePbuffer)(Display *dpy, GLXFBConfig config, ATTRIB_TYPE *attrib_list)
283
DECLEXPORT(GLXPbuffer) VBOXGLXENTRYTAG(glXCreatePbuffer)(Display *dpy, GLXFBConfig config, ATTRIB_TYPE *attrib_list)
285
285
return glxim.CreatePbuffer(dpy, config, attrib_list);
288
GLXPixmap VBOXGLXENTRYTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const ATTRIB_TYPE *attrib_list)
288
DECLEXPORT(GLXPixmap) VBOXGLXENTRYTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const ATTRIB_TYPE *attrib_list)
290
290
return glxim.CreatePixmap(dpy, config, pixmap, attrib_list);
293
GLXWindow VBOXGLXENTRYTAG(glXCreateWindow)(Display *dpy, GLXFBConfig config, Window win, ATTRIB_TYPE *attrib_list)
293
DECLEXPORT(GLXWindow) VBOXGLXENTRYTAG(glXCreateWindow)(Display *dpy, GLXFBConfig config, Window win, ATTRIB_TYPE *attrib_list)
295
295
return glxim.CreateWindow(dpy, config, win, attrib_list);
299
GLXContext VBOXGLXENTRYTAG(glXCreateNewContext)
299
DECLEXPORT(GLXContext) VBOXGLXENTRYTAG(glXCreateNewContext)
300
300
(Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct)
302
302
return glxim.CreateNewContext(dpy, config, render_type, share_list, direct);
305
void VBOXGLXENTRYTAG(glXDestroyPbuffer)(Display *dpy, GLXPbuffer pbuf)
305
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyPbuffer)(Display *dpy, GLXPbuffer pbuf)
307
307
return glxim.DestroyPbuffer(dpy, pbuf);
310
void VBOXGLXENTRYTAG(glXDestroyPixmap)(Display *dpy, GLXPixmap pixmap)
310
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyPixmap)(Display *dpy, GLXPixmap pixmap)
312
312
return glxim.DestroyPixmap(dpy, pixmap);
315
void VBOXGLXENTRYTAG(glXDestroyWindow)(Display *dpy, GLXWindow win)
315
DECLEXPORT(void) VBOXGLXENTRYTAG(glXDestroyWindow)(Display *dpy, GLXWindow win)
317
317
return glxim.DestroyWindow(dpy, win);
320
GLXDrawable VBOXGLXENTRYTAG(glXGetCurrentReadDrawable)(void)
320
DECLEXPORT(GLXDrawable) VBOXGLXENTRYTAG(glXGetCurrentReadDrawable)(void)
322
322
return glxim.GetCurrentReadDrawable();
325
int VBOXGLXENTRYTAG(glXGetFBConfigAttrib)(Display *dpy, GLXFBConfig config, int attribute, int *value)
325
DECLEXPORT(int) VBOXGLXENTRYTAG(glXGetFBConfigAttrib)(Display *dpy, GLXFBConfig config, int attribute, int *value)
327
327
return glxim.GetFBConfigAttrib(dpy, config, attribute, value);
330
GLXFBConfig * VBOXGLXENTRYTAG(glXGetFBConfigs)(Display *dpy, int screen, int *nelements)
330
DECLEXPORT(GLXFBConfig *) VBOXGLXENTRYTAG(glXGetFBConfigs)(Display *dpy, int screen, int *nelements)
332
332
return glxim.GetFBConfigs(dpy, screen, nelements);
335
void VBOXGLXENTRYTAG(glXGetSelectedEvent)(Display *dpy, GLXDrawable draw, unsigned long *event_mask)
335
DECLEXPORT(void) VBOXGLXENTRYTAG(glXGetSelectedEvent)(Display *dpy, GLXDrawable draw, unsigned long *event_mask)
337
337
return glxim.GetSelectedEvent(dpy, draw, event_mask);
340
XVisualInfo * VBOXGLXENTRYTAG(glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config)
340
DECLEXPORT(XVisualInfo *) VBOXGLXENTRYTAG(glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config)
342
342
return glxim.GetVisualFromFBConfig(dpy, config);
345
Bool VBOXGLXENTRYTAG(glXMakeContextCurrent)(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
345
DECLEXPORT(Bool) VBOXGLXENTRYTAG(glXMakeContextCurrent)(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
347
347
return glxim.MakeContextCurrent(display, draw, read, ctx);
350
int VBOXGLXENTRYTAG(glXQueryContext)(Display *dpy, GLXContext ctx, int attribute, int *value)
350
DECLEXPORT(int) VBOXGLXENTRYTAG(glXQueryContext)(Display *dpy, GLXContext ctx, int attribute, int *value)
352
352
return glxim.QueryContext(dpy, ctx, attribute, value);
355
void VBOXGLXENTRYTAG(glXQueryDrawable)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
355
DECLEXPORT(void) VBOXGLXENTRYTAG(glXQueryDrawable)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
357
357
return glxim.QueryDrawable(dpy, draw, attribute, value);
360
void VBOXGLXENTRYTAG(glXSelectEvent)(Display *dpy, GLXDrawable draw, unsigned long event_mask)
360
DECLEXPORT(void) VBOXGLXENTRYTAG(glXSelectEvent)(Display *dpy, GLXDrawable draw, unsigned long event_mask)
362
362
return glxim.SelectEvent(dpy, draw, event_mask);
366
366
#ifdef CR_EXT_texture_from_pixmap
367
void VBOXGLXENTRYTAG(glXBindTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer, const int *attrib_list)
367
DECLEXPORT(void) VBOXGLXENTRYTAG(glXBindTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer, const int *attrib_list)
369
369
return glxim.BindTexImageEXT(dpy, draw, buffer, attrib_list);
372
void VBOXGLXENTRYTAG(glXReleaseTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer)
372
DECLEXPORT(void) VBOXGLXENTRYTAG(glXReleaseTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer)
374
374
return glxim.ReleaseTexImageEXT(dpy, draw, buffer);