Changeset 18547 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 30, 2009 1:38:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/glx_c_exports.c
r18545 r18547 27 27 28 28 #ifdef VBOXOGL_FAKEDRI 29 void VBOXGLXENTRYTAG(glXGetDriverConfig)(const char *driverName)30 { 31 return glxim ->GetDriverConfig(driverName);32 } 29 /*void VBOXGLXENTRYTAG(glXGetDriverConfig)(const char *driverName) 30 { 31 return glxim.GetDriverConfig(driverName); 32 }*/ 33 33 34 34 void VBOXGLXENTRYTAG(glXFreeMemoryMESA)(Display *dpy, int scrn, void *pointer) 35 35 { 36 return glxim ->FreeMemoryMESA(dpy, scrn, pointer);36 return glxim.FreeMemoryMESA(dpy, scrn, pointer); 37 37 } 38 38 39 39 GLXContext VBOXGLXENTRYTAG(glXImportContextEXT)(Display *dpy, GLXContextID contextID) 40 40 { 41 return glxim ->ImportContextEXT(dpy, contextID);41 return glxim.ImportContextEXT(dpy, contextID); 42 42 } 43 43 44 44 GLXContextID VBOXGLXENTRYTAG(glXGetContextIDEXT)(const GLXContext ctx) 45 45 { 46 return glxim ->GetContextIDEXT(ctx);46 return glxim.GetContextIDEXT(ctx); 47 47 } 48 48 49 49 Bool VBOXGLXENTRYTAG(glXMakeCurrentReadSGI)(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx) 50 50 { 51 return glxim ->MakeCurrentReadSGI(display, draw, read, ctx);52 } 53 54 55 const char * VBOXGLXENTRYTAG(glXGetScreenDriver)(Display *dpy, int scrNum)56 { 57 return glxim ->GetScreenDriver(dpy, scrNum);58 } 51 return glxim.MakeCurrentReadSGI(display, draw, read, ctx); 52 } 53 54 55 /*const char * VBOXGLXENTRYTAG(glXGetScreenDriver)(Display *dpy, int scrNum) 56 { 57 return glxim.GetScreenDriver(dpy, scrNum); 58 }*/ 59 59 60 60 61 61 Display * VBOXGLXENTRYTAG(glXGetCurrentDisplayEXT)(void) 62 62 { 63 return glxim ->GetCurrentDisplayEXT();63 return glxim.GetCurrentDisplayEXT(); 64 64 } 65 65 66 66 void VBOXGLXENTRYTAG(glXFreeContextEXT)(Display *dpy, GLXContext ctx) 67 67 { 68 return glxim ->FreeContextEXT(dpy, ctx);68 return glxim.FreeContextEXT(dpy, ctx); 69 69 } 70 70 … … 72 72 int VBOXGLXENTRYTAG(glXQueryContextInfoEXT)(Display *dpy, GLXContext ctx) 73 73 { 74 return glxim ->QueryContextInfoEXT(dpy, ctx);74 return glxim.QueryContextInfoEXT(dpy, ctx); 75 75 } 76 76 … … 79 79 float writeFreq, float priority); 80 80 { 81 return glxim ->AllocateMemoryMESA(dpy, scrn, size, readFreq, writeFreq, priority);81 return glxim.AllocateMemoryMESA(dpy, scrn, size, readFreq, writeFreq, priority); 82 82 } 83 83 84 84 GLuint VBOXGLXENTRYTAG(glXGetMemoryOffsetMESA)(Display *dpy, int scrn, const void *pointer ) 85 85 { 86 return glxim ->GetMemoryOffsetMESA(dpy, scr, pointer);86 return glxim.GetMemoryOffsetMESA(dpy, scr, pointer); 87 87 } 88 88 … … 90 90 GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap) 91 91 { 92 return glxim ->CreateGLXPixmapMESA(dpy, visual, pixmap, cmap);92 return glxim.CreateGLXPixmapMESA(dpy, visual, pixmap, cmap); 93 93 } 94 94 #endif … … 102 102 #endif 103 103 { 104 return glxim ->CopyContext(dpy,. src, dst, mask);104 return glxim.CopyContext(dpy,. src, dst, mask); 105 105 } 106 106 … … 108 108 void VBOXGLXENTRYTAG(glXUseXFont)(Font font, int first, int count, int listBase) 109 109 { 110 return glxim ->UseXFont(font, first, count, listBase);110 return glxim.UseXFont(font, first, count, listBase); 111 111 } 112 112 113 113 CR_GLXFuncPtr VBOXGLXENTRYTAG(glXGetProcAddress)(const GLubyte *name) 114 114 { 115 return glxim ->GetProcAddress(name);115 return glxim.GetProcAddress(name); 116 116 } 117 117 118 118 Bool VBOXGLXENTRYTAG(glXQueryExtension)(Display *dpy, int *errorBase, int *eventBase) 119 119 { 120 return glxim ->QueryExtension(dpy, errorBase, eventBase);120 return glxim.QueryExtension(dpy, errorBase, eventBase); 121 121 } 122 122 123 123 Bool VBOXGLXENTRYTAG(glXIsDirect)(Display *dpy, GLXContext ctx) 124 124 { 125 return glxim ->IsDirect(dpy, ctx);125 return glxim.IsDirect(dpy, ctx); 126 126 } 127 127 128 128 GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmap)(Display *dpy, XVisualInfo *vis, Pixmap pixmap) 129 129 { 130 return glxim ->CreateGLXPixmap(dpy, vis, pixmap);130 return glxim.CreateGLXPixmap(dpy, vis, pixmap); 131 131 } 132 132 133 133 void VBOXGLXENTRYTAG(glXSwapBuffers)(Display *dpy, GLXDrawable drawable) 134 134 { 135 return glxim ->SwapBuffers(dpy, drawable);135 return glxim.SwapBuffers(dpy, drawable); 136 136 } 137 137 … … 139 139 GLXDrawable VBOXGLXENTRYTAG(glXGetCurrentDrawable)(void) 140 140 { 141 return glxim ->GetCurrentDrawable();141 return glxim.GetCurrentDrawable(); 142 142 } 143 143 144 144 void VBOXGLXENTRYTAG(glXWaitGL)(void) 145 145 { 146 return glxim ->WaitGL();146 return glxim.WaitGL(); 147 147 } 148 148 149 149 Display * VBOXGLXENTRYTAG(glXGetCurrentDisplay)(void) 150 150 { 151 return glxim ->GetCurrentDisplay();151 return glxim.GetCurrentDisplay(); 152 152 } 153 153 154 154 const char * VBOXGLXENTRYTAG(glXQueryServerString)(Display *dpy, int screen, int name) 155 155 { 156 return glxim ->QueryServerString(dpy, screen, name);156 return glxim.QueryServerString(dpy, screen, name); 157 157 } 158 158 159 159 GLXContext VBOXGLXENTRYTAG(glXCreateContext)(Display *dpy, XVisualInfo *vis, GLXContext share, Bool direct) 160 160 { 161 return glxim ->CreateContext(dpy, vis, share, direct);161 return glxim.CreateContext(dpy, vis, share, direct); 162 162 } 163 163 164 164 int VBOXGLXENTRYTAG(glXGetConfig)(Display *dpy, XVisualInfo *vis, int attrib, int *value) 165 165 { 166 return glxim ->GetConfig(dpy, vis, attrib, value);166 return glxim.GetConfig(dpy, vis, attrib, value); 167 167 } 168 168 169 169 void VBOXGLXENTRYTAG(glXWaitX)(void) 170 170 { 171 return glxim ->WaitX();171 return glxim.WaitX(); 172 172 } 173 173 174 174 GLXContext VBOXGLXENTRYTAG(glXGetCurrentContext)(void) 175 175 { 176 return glxim ->GetCurrentContext();176 return glxim.GetCurrentContext(); 177 177 } 178 178 179 179 const char * VBOXGLXENTRYTAG(glXGetClientString)(Display *dpy, int name) 180 180 { 181 return glxim ->GetClientString(dpy, name);181 return glxim.GetClientString(dpy, name); 182 182 } 183 183 184 184 Bool VBOXGLXENTRYTAG(glXMakeCurrent)(Display *dpy, GLXDrawable drawable, GLXContext ctx) 185 185 { 186 return glxim ->MakeCurrent(dpy, drawable, ctx);186 return glxim.MakeCurrent(dpy, drawable, ctx); 187 187 } 188 188 189 189 void VBOXGLXENTRYTAG(glXDestroyContext)(Display *dpy, GLXContext ctx) 190 190 { 191 return glxim ->DestroyContext(dpy, ctx);191 return glxim.DestroyContext(dpy, ctx); 192 192 } 193 193 194 194 CR_GLXFuncPtr VBOXGLXENTRYTAG(glXGetProcAddressARB)(const GLubyte *name) 195 195 { 196 return glxim ->GetProcAddressARB(name);196 return glxim.GetProcAddressARB(name); 197 197 } 198 198 199 199 void VBOXGLXENTRYTAG(glXDestroyGLXPixmap)(Display *dpy, GLXPixmap pix) 200 200 { 201 return glxim ->DestroyGLXPixmap(dpy, pix);201 return glxim.DestroyGLXPixmap(dpy, pix); 202 202 } 203 203 204 204 Bool VBOXGLXENTRYTAG(glXQueryVersion)(Display *dpy, int *major, int *minor) 205 205 { 206 return glxim ->QueryVersion(dpy, major, minor);206 return glxim.QueryVersion(dpy, major, minor); 207 207 } 208 208 209 209 XVisualInfo * VBOXGLXENTRYTAG(glXChooseVisual)(Display *dpy, int screen, int *attribList) 210 210 { 211 return glxim ->ChooseVisual(dpy, screen, attribList);211 return glxim.ChooseVisual(dpy, screen, attribList); 212 212 } 213 213 214 214 const char * VBOXGLXENTRYTAG(glXQueryExtensionsString)(Display *dpy, int screen) 215 215 { 216 return glxim ->QueryExtensionsString(dpy, screen);216 return glxim.QueryExtensionsString(dpy, screen); 217 217 } 218 218 … … 221 221 (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list) 222 222 { 223 return glxim ->CreateGLXPbufferSGIX(dpy, config, width, height, attrib_list);223 return glxim.CreateGLXPbufferSGIX(dpy, config, width, height, attrib_list); 224 224 } 225 225 … … 227 227 (Display *dpy, GLXPbuffer pbuf, int attribute, unsigned int *value) 228 228 { 229 return glxim ->QueryGLXPbufferSGIX(dpy, pbuf, attribute, value);229 return glxim.QueryGLXPbufferSGIX(dpy, pbuf, attribute, value); 230 230 } 231 231 … … 233 233 (Display *dpy, int screen, int *attrib_list, int *nelements) 234 234 { 235 return glxim ->ChooseFBConfigSGIX(dpy, screen, attrib_list, nelements);235 return glxim.ChooseFBConfigSGIX(dpy, screen, attrib_list, nelements); 236 236 } 237 237 238 238 void VBOXGLXENTRYTAG(glXDestroyGLXPbufferSGIX)(Display *dpy, GLXPbuffer pbuf) 239 239 { 240 return glxim ->DestroyGLXPbufferSGIX(dpy, pbuf);240 return glxim.DestroyGLXPbufferSGIX(dpy, pbuf); 241 241 } 242 242 243 243 void VBOXGLXENTRYTAG(glXSelectEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long mask) 244 244 { 245 return glxim ->SelectEventSGIX(dpy, drawable, mask);245 return glxim.SelectEventSGIX(dpy, drawable, mask); 246 246 } 247 247 248 248 void VBOXGLXENTRYTAG(glXGetSelectedEventSGIX)(Display *dpy, GLXDrawable drawable, unsigned long *mask) 249 249 { 250 return glxim ->GetSelectedEventSGIX(dpy, drawable, mask);250 return glxim.GetSelectedEventSGIX(dpy, drawable, mask); 251 251 } 252 252 253 253 GLXFBConfigSGIX VBOXGLXENTRYTAG(glXGetFBConfigFromVisualSGIX)(Display *dpy, XVisualInfo *vis) 254 254 { 255 return glxim ->GetFBConfigFromVisualSGIX(dpy, vis);255 return glxim.GetFBConfigFromVisualSGIX(dpy, vis); 256 256 } 257 257 258 258 XVisualInfo * VBOXGLXENTRYTAG(glXGetVisualFromFBConfigSGIX)(Display *dpy, GLXFBConfig config) 259 259 { 260 return glxim ->GetVisualFromFBConfigSGIX(dpy, config);260 return glxim.GetVisualFromFBConfigSGIX(dpy, config); 261 261 } 262 262 … … 264 264 (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct) 265 265 { 266 return glxim ->CreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct);266 return glxim.CreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct); 267 267 } 268 268 269 269 GLXPixmap VBOXGLXENTRYTAG(glXCreateGLXPixmapWithConfigSGIX)(Display *dpy, GLXFBConfig config, Pixmap pixmap) 270 270 { 271 return glxim ->CreateGLXPixmapWithConfigSGIX(dpy, config, pixmap);271 return glxim.CreateGLXPixmapWithConfigSGIX(dpy, config, pixmap); 272 272 } 273 273 274 274 int VBOXGLXENTRYTAG(glXGetFBConfigAttribSGIX)(Display *dpy, GLXFBConfig config, int attribute, int *value) 275 275 { 276 return glxim ->GetFBConfigAttribSGIX(dpy, config, attribute, value);276 return glxim.GetFBConfigAttribSGIX(dpy, config, attribute, value); 277 277 } 278 278 … … 283 283 GLXFBConfig * VBOXGLXENTRYTAG(glXChooseFBConfig)(Display *dpy, int screen, ATTRIB_TYPE *attrib_list, int *nelements) 284 284 { 285 return glxim ->ChooseFBConfig(dpy, screen, attrib_list, nelements);285 return glxim.ChooseFBConfig(dpy, screen, attrib_list, nelements); 286 286 } 287 287 288 288 GLXPbuffer VBOXGLXENTRYTAG(glXCreatePbuffer)(Display *dpy, GLXFBConfig config, ATTRIB_TYPE *attrib_list) 289 289 { 290 return glxim ->CreatePbuffer(dpy, config, attrib_list);290 return glxim.CreatePbuffer(dpy, config, attrib_list); 291 291 } 292 292 293 293 GLXPixmap VBOXGLXENTRYTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const ATTRIB_TYPE *attrib_list) 294 294 { 295 return glxim ->CreatePixmap(dpy, config, pixmap, attrib_list);295 return glxim.CreatePixmap(dpy, config, pixmap, attrib_list); 296 296 } 297 297 298 298 GLXWindow VBOXGLXENTRYTAG(glXCreateWindow)(Display *dpy, GLXFBConfig config, Window win, ATTRIB_TYPE *attrib_list) 299 299 { 300 return glxim ->CreateWindow(dpy, config, win, attrib_list);300 return glxim.CreateWindow(dpy, config, win, attrib_list); 301 301 } 302 302 … … 305 305 (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct) 306 306 { 307 return glxim ->CreateNewContext(dpy, config, render_type, share_list, direct);307 return glxim.CreateNewContext(dpy, config, render_type, share_list, direct); 308 308 } 309 309 310 310 void VBOXGLXENTRYTAG(glXDestroyPbuffer)(Display *dpy, GLXPbuffer pbuf) 311 311 { 312 return glxim ->DestroyPbuffer(dpy, pbuf);312 return glxim.DestroyPbuffer(dpy, pbuf); 313 313 } 314 314 315 315 void VBOXGLXENTRYTAG(glXDestroyPixmap)(Display *dpy, GLXPixmap pixmap) 316 316 { 317 return glxim ->DestroyPixmap(dpy, pixmap);317 return glxim.DestroyPixmap(dpy, pixmap); 318 318 } 319 319 320 320 void VBOXGLXENTRYTAG(glXDestroyWindow)(Display *dpy, GLXWindow win) 321 321 { 322 return glxim ->DestroyWindow(dpy, win);322 return glxim.DestroyWindow(dpy, win); 323 323 } 324 324 325 325 GLXDrawable VBOXGLXENTRYTAG(glXGetCurrentReadDrawable)(void) 326 326 { 327 return glxim ->GetCurrentReadDrawable();327 return glxim.GetCurrentReadDrawable(); 328 328 } 329 329 330 330 int VBOXGLXENTRYTAG(glXGetFBConfigAttrib)(Display *dpy, GLXFBConfig config, int attribute, int *value) 331 331 { 332 return glxim ->GetFBConfigAttrib(dp, config, attribute, value);332 return glxim.GetFBConfigAttrib(dp, config, attribute, value); 333 333 } 334 334 335 335 GLXFBConfig * VBOXGLXENTRYTAG(glXGetFBConfigs)(Display *dpy, int screen, int *nelements) 336 336 { 337 return glxim ->GetFBConfigs(dpy, screen, nelements);337 return glxim.GetFBConfigs(dpy, screen, nelements); 338 338 } 339 339 340 340 void VBOXGLXENTRYTAG(glXGetSelectedEvent)(Display *dpy, GLXDrawable draw, unsigned long *event_mask) 341 341 { 342 return glxim ->GetSelectedEvent(dpy, draw, event_mask);342 return glxim.GetSelectedEvent(dpy, draw, event_mask); 343 343 } 344 344 345 345 XVisualInfo * VBOXGLXENTRYTAG(glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config) 346 346 { 347 return glxim ->GetVisualFromFBConfig(dpy, config);347 return glxim.GetVisualFromFBConfig(dpy, config); 348 348 } 349 349 350 350 Bool VBOXGLXENTRYTAG(glXMakeContextCurrent)(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx) 351 351 { 352 return glxim ->MakeContextCurrent(disaply, draw, read, ctx);352 return glxim.MakeContextCurrent(disaply, draw, read, ctx); 353 353 } 354 354 355 355 int VBOXGLXENTRYTAG(glXQueryContext)(Display *dpy, GLXContext ctx, int attribute, int *value) 356 356 { 357 return glxim ->QueryContext(dpy, ctx, attribute, value);357 return glxim.QueryContext(dpy, ctx, attribute, value); 358 358 } 359 359 360 360 void VBOXGLXENTRYTAG(glXQueryDrawable)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value) 361 361 { 362 return glxim ->QueryDrawable(dpy, draw, attribute, value);362 return glxim.QueryDrawable(dpy, draw, attribute, value); 363 363 } 364 364 365 365 void VBOXGLXENTRYTAG(glXSelectEvent)(Display *dpy, GLXDrawable draw, unsigned long event_mask) 366 366 { 367 return glxim ->SelectEvent(dpy, draw, event_mask);367 return glxim.SelectEvent(dpy, draw, event_mask); 368 368 } 369 369 … … 371 371 void VBOXGLXENTRYTAG(glXBindTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer, const int *attrib_list) 372 372 { 373 return glxim ->BindTexImageEXT(dpy, draw, buffer, attrib_list);373 return glxim.BindTexImageEXT(dpy, draw, buffer, attrib_list); 374 374 } 375 375 376 376 void VBOXGLXENTRYTAG(glXReleaseTexImageEXT)(Display *dpy, GLXDrawable draw, int buffer) 377 377 { 378 return glxim ->ReleaseTexImageEXT(dpy, draw, buffer);378 return glxim.ReleaseTexImageEXT(dpy, draw, buffer); 379 379 } 380 380 #endif
Note:
See TracChangeset
for help on using the changeset viewer.