Changeset 45484 in vbox
- Timestamp:
- Apr 11, 2013 2:29:37 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/defs.py
r43487 r45484 455 455 "wglGetPixelFormatAttribfvEXT", 456 456 "wglGetExtensionsStringEXT"): 457 print "%s @%d = %s_prox" % (func_name,stack_sizes[func_name],func_name)457 print "%s = %s_prox" % (func_name,func_name) 458 458 459 459 """ -
trunk/src/VBox/Additions/common/crOpenGL/wgl.c
r43487 r45484 16 16 #include <windows.h> 17 17 #include <stdio.h> 18 19 #include <iprt/cdefs.h> 18 20 19 21 /* Currently host part will misbehave re-creating context with proper visual bits … … 66 68 #endif 67 69 68 intWINAPI wglChoosePixelFormat_prox( HDC hdc, CONST PIXELFORMATDESCRIPTOR *pfd )70 DECLEXPORT(int) WINAPI wglChoosePixelFormat_prox( HDC hdc, CONST PIXELFORMATDESCRIPTOR *pfd ) 69 71 { 70 72 DWORD okayFlags; … … 163 165 } 164 166 165 BOOL WINAPI wglSetPixelFormat_prox( HDC hdc, int pixelFormat, 167 DECLEXPORT(BOOL) WINAPI wglSetPixelFormat_prox( HDC hdc, int pixelFormat, 166 168 CONST PIXELFORMATDESCRIPTOR *pdf ) 167 169 { … … 175 177 } 176 178 177 BOOLWINAPI wglDeleteContext_prox( HGLRC hglrc )179 DECLEXPORT(BOOL) WINAPI wglDeleteContext_prox( HGLRC hglrc ) 178 180 { 179 181 CR_DDI_PROLOGUE(); … … 182 184 } 183 185 184 BOOLWINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc )186 DECLEXPORT(BOOL) WINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc ) 185 187 { 186 188 ContextInfo *context; … … 209 211 } 210 212 211 HGLRCWINAPI wglGetCurrentContext_prox( void )213 DECLEXPORT(HGLRC) WINAPI wglGetCurrentContext_prox( void ) 212 214 { 213 215 ContextInfo *context = stubGetCurrentContext(); … … 216 218 } 217 219 218 HDCWINAPI wglGetCurrentDC_prox( void )220 DECLEXPORT(HDC) WINAPI wglGetCurrentDC_prox( void ) 219 221 { 220 222 ContextInfo *context = stubGetCurrentContext(); … … 226 228 } 227 229 228 intWINAPI wglGetPixelFormat_prox( HDC hdc )230 DECLEXPORT(int) WINAPI wglGetPixelFormat_prox( HDC hdc ) 229 231 { 230 232 CR_DDI_PROLOGUE(); … … 233 235 } 234 236 235 intWINAPI wglDescribePixelFormat_prox( HDC hdc, int pixelFormat, UINT nBytes,237 DECLEXPORT(int) WINAPI wglDescribePixelFormat_prox( HDC hdc, int pixelFormat, UINT nBytes, 236 238 LPPIXELFORMATDESCRIPTOR pfd ) 237 239 { … … 287 289 } 288 290 289 BOOLWINAPI wglShareLists_prox( HGLRC hglrc1, HGLRC hglrc2 )291 DECLEXPORT(BOOL) WINAPI wglShareLists_prox( HGLRC hglrc1, HGLRC hglrc2 ) 290 292 { 291 293 CR_DDI_PROLOGUE(); … … 295 297 296 298 297 HGLRCWINAPI VBoxCreateContext( HDC hdc, struct VBOXUHGSMI *pHgsmi )299 DECLEXPORT(HGLRC) WINAPI VBoxCreateContext( HDC hdc, struct VBOXUHGSMI *pHgsmi ) 298 300 { 299 301 char dpyName[MAX_DPY_NAME]; … … 325 327 } 326 328 327 GLintWINAPI VBoxGetWindowId( HDC hdc )329 DECLEXPORT(GLint) WINAPI VBoxGetWindowId( HDC hdc ) 328 330 { 329 331 WindowInfo *window = stubGetWindowInfo(hdc); … … 343 345 } 344 346 345 HGLRCWINAPI wglCreateContext_prox( HDC hdc )347 DECLEXPORT(HGLRC) WINAPI wglCreateContext_prox( HDC hdc ) 346 348 { 347 349 return VBoxCreateContext(hdc, NULL); 348 350 } 349 351 350 voidWINAPI VBoxFlushToHost ( HGLRC hglrc )352 DECLEXPORT(void) WINAPI VBoxFlushToHost ( HGLRC hglrc ) 351 353 { 352 354 ContextInfo *context; … … 366 368 } 367 369 368 BOOLWINAPI370 DECLEXPORT(BOOL) WINAPI 369 371 wglSwapBuffers_prox( HDC hdc ) 370 372 { … … 375 377 } 376 378 377 BOOLWINAPI wglCopyContext_prox( HGLRC src, HGLRC dst, UINT mask )379 DECLEXPORT(BOOL) WINAPI wglCopyContext_prox( HGLRC src, HGLRC dst, UINT mask ) 378 380 { 379 381 CR_DDI_PROLOGUE(); … … 382 384 } 383 385 384 HGLRCWINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane )386 DECLEXPORT(HGLRC) WINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane ) 385 387 { 386 388 CR_DDI_PROLOGUE(); … … 390 392 } 391 393 392 PROCWINAPI wglGetProcAddress_prox( LPCSTR name )394 DECLEXPORT(PROC) WINAPI wglGetProcAddress_prox( LPCSTR name ) 393 395 { 394 396 CR_DDI_PROLOGUE(); … … 396 398 } 397 399 398 BOOLWINAPI wglUseFontBitmapsA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )400 DECLEXPORT(BOOL) WINAPI wglUseFontBitmapsA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase ) 399 401 { 400 402 CR_DDI_PROLOGUE(); … … 403 405 } 404 406 405 BOOLWINAPI wglUseFontBitmapsW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )407 DECLEXPORT(BOOL) WINAPI wglUseFontBitmapsW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase ) 406 408 { 407 409 CR_DDI_PROLOGUE(); … … 410 412 } 411 413 412 BOOLWINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane,414 DECLEXPORT(BOOL) WINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane, 413 415 UINT nBytes, LPLAYERPLANEDESCRIPTOR lpd ) 414 416 { … … 418 420 } 419 421 420 intWINAPI wglSetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,422 DECLEXPORT(int) WINAPI wglSetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start, 421 423 int entries, CONST COLORREF *cr ) 422 424 { … … 426 428 } 427 429 428 intWINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,430 DECLEXPORT(int) WINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start, 429 431 int entries, COLORREF *cr ) 430 432 { … … 434 436 } 435 437 436 BOOLWINAPI wglRealizeLayerPalette_prox( HDC hdc, int layerPlane, BOOL realize )438 DECLEXPORT(BOOL) WINAPI wglRealizeLayerPalette_prox( HDC hdc, int layerPlane, BOOL realize ) 437 439 { 438 440 CR_DDI_PROLOGUE(); … … 441 443 } 442 444 443 D WORDWINAPI wglSwapMultipleBuffers_prox( UINT a, CONST void *b )445 DECLEXPORT(DWORD) WINAPI wglSwapMultipleBuffers_prox( UINT a, CONST void *b ) 444 446 { 445 447 CR_DDI_PROLOGUE(); … … 448 450 } 449 451 450 BOOLWINAPI wglUseFontOutlinesA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,452 DECLEXPORT(BOOL) WINAPI wglUseFontOutlinesA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase, 451 453 FLOAT deviation, FLOAT extrusion, int format, 452 454 LPGLYPHMETRICSFLOAT gmf ) … … 457 459 } 458 460 459 BOOLWINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,461 DECLEXPORT(BOOL) WINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase, 460 462 FLOAT deviation, FLOAT extrusion, int format, 461 463 LPGLYPHMETRICSFLOAT gmf ) … … 466 468 } 467 469 468 BOOLWINAPI wglSwapLayerBuffers_prox( HDC hdc, UINT planes )470 DECLEXPORT(BOOL) WINAPI wglSwapLayerBuffers_prox( HDC hdc, UINT planes ) 469 471 { 470 472 CR_DDI_PROLOGUE(); … … 480 482 } 481 483 482 BOOLWINAPI wglChoosePixelFormatEXT_prox484 DECLEXPORT(BOOL) WINAPI wglChoosePixelFormatEXT_prox 483 485 (HDC hdc, const int *piAttributes, const FLOAT *pfAttributes, UINT nMaxFormats, int *piFormats, UINT *nNumFormats) 484 486 { … … 602 604 } 603 605 604 BOOLWINAPI wglGetPixelFormatAttribivEXT_prox606 DECLEXPORT(BOOL) WINAPI wglGetPixelFormatAttribivEXT_prox 605 607 (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *pValues) 606 608 { … … 737 739 } 738 740 739 BOOLWINAPI wglGetPixelFormatAttribfvEXT_prox741 DECLEXPORT(BOOL) WINAPI wglGetPixelFormatAttribfvEXT_prox 740 742 (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, float *pValues) 741 743 { … … 872 874 } 873 875 874 BOOLWINAPI wglSwapIntervalEXT_prox(int interval)876 DECLEXPORT(BOOL) WINAPI wglSwapIntervalEXT_prox(int interval) 875 877 { 876 878 CR_DDI_PROLOGUE(); … … 878 880 } 879 881 880 intWINAPI wglGetSwapIntervalEXT_prox()882 DECLEXPORT(int) WINAPI wglGetSwapIntervalEXT_prox() 881 883 { 882 884 CR_DDI_PROLOGUE(); … … 886 888 static GLubyte *gsz_wgl_extensions = "WGL_EXT_pixel_format WGL_ARB_pixel_format WGL_ARB_multisample"; 887 889 888 const GLubyte *WINAPI wglGetExtensionsStringEXT_prox()890 DECLEXPORT(const GLubyte *) WINAPI wglGetExtensionsStringEXT_prox() 889 891 { 890 892 CR_DDI_PROLOGUE(); … … 892 894 } 893 895 894 const GLubyte *WINAPI wglGetExtensionsStringARB_prox(HDC hdc)896 DECLEXPORT(const GLubyte *) WINAPI wglGetExtensionsStringARB_prox(HDC hdc) 895 897 { 896 898 CR_DDI_PROLOGUE();
Note:
See TracChangeset
for help on using the changeset viewer.