VirtualBox

Changeset 45484 in vbox


Ignore:
Timestamp:
Apr 11, 2013 2:29:37 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: correct VBoxOGL exports defs

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/defs.py

    r43487 r45484  
    455455           "wglGetPixelFormatAttribfvEXT",
    456456           "wglGetExtensionsStringEXT"):
    457     print "%s@%d = %s_prox" % (func_name,stack_sizes[func_name],func_name)
     457    print "%s = %s_prox" % (func_name,func_name)
    458458
    459459"""
  • trunk/src/VBox/Additions/common/crOpenGL/wgl.c

    r43487 r45484  
    1616#include <windows.h>
    1717#include <stdio.h>
     18
     19#include <iprt/cdefs.h>
    1820
    1921/* Currently host part will misbehave re-creating context with proper visual bits
     
    6668#endif
    6769
    68 int WINAPI wglChoosePixelFormat_prox( HDC hdc, CONST PIXELFORMATDESCRIPTOR *pfd )
     70DECLEXPORT(int) WINAPI wglChoosePixelFormat_prox( HDC hdc, CONST PIXELFORMATDESCRIPTOR *pfd )
    6971{
    7072    DWORD okayFlags;
     
    163165}
    164166
    165 BOOL WINAPI wglSetPixelFormat_prox( HDC hdc, int pixelFormat,
     167DECLEXPORT(BOOL) WINAPI wglSetPixelFormat_prox( HDC hdc, int pixelFormat,
    166168        CONST PIXELFORMATDESCRIPTOR *pdf )
    167169{
     
    175177}
    176178
    177 BOOL WINAPI wglDeleteContext_prox( HGLRC hglrc )
     179DECLEXPORT(BOOL) WINAPI wglDeleteContext_prox( HGLRC hglrc )
    178180{
    179181    CR_DDI_PROLOGUE();
     
    182184}
    183185
    184 BOOL WINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc )
     186DECLEXPORT(BOOL) WINAPI wglMakeCurrent_prox( HDC hdc, HGLRC hglrc )
    185187{
    186188    ContextInfo *context;
     
    209211}
    210212
    211 HGLRC WINAPI wglGetCurrentContext_prox( void )
     213DECLEXPORT(HGLRC) WINAPI wglGetCurrentContext_prox( void )
    212214{
    213215    ContextInfo *context = stubGetCurrentContext();
     
    216218}
    217219
    218 HDC WINAPI wglGetCurrentDC_prox( void )
     220DECLEXPORT(HDC) WINAPI wglGetCurrentDC_prox( void )
    219221{
    220222    ContextInfo *context = stubGetCurrentContext();
     
    226228}
    227229
    228 int WINAPI wglGetPixelFormat_prox( HDC hdc )
     230DECLEXPORT(int) WINAPI wglGetPixelFormat_prox( HDC hdc )
    229231{
    230232    CR_DDI_PROLOGUE();
     
    233235}
    234236
    235 int WINAPI wglDescribePixelFormat_prox( HDC hdc, int pixelFormat, UINT nBytes,
     237DECLEXPORT(int) WINAPI wglDescribePixelFormat_prox( HDC hdc, int pixelFormat, UINT nBytes,
    236238        LPPIXELFORMATDESCRIPTOR pfd )
    237239{
     
    287289}
    288290
    289 BOOL WINAPI wglShareLists_prox( HGLRC hglrc1, HGLRC hglrc2 )
     291DECLEXPORT(BOOL) WINAPI wglShareLists_prox( HGLRC hglrc1, HGLRC hglrc2 )
    290292{
    291293    CR_DDI_PROLOGUE();
     
    295297
    296298
    297 HGLRC WINAPI VBoxCreateContext( HDC hdc, struct VBOXUHGSMI *pHgsmi )
     299DECLEXPORT(HGLRC) WINAPI VBoxCreateContext( HDC hdc, struct VBOXUHGSMI *pHgsmi )
    298300{
    299301    char dpyName[MAX_DPY_NAME];
     
    325327}
    326328
    327 GLint WINAPI VBoxGetWindowId( HDC hdc )
     329DECLEXPORT(GLint) WINAPI VBoxGetWindowId( HDC hdc )
    328330{
    329331    WindowInfo *window = stubGetWindowInfo(hdc);
     
    343345}
    344346
    345 HGLRC WINAPI wglCreateContext_prox( HDC hdc )
     347DECLEXPORT(HGLRC) WINAPI wglCreateContext_prox( HDC hdc )
    346348{
    347349    return VBoxCreateContext(hdc, NULL);
    348350}
    349351
    350 void WINAPI VBoxFlushToHost ( HGLRC hglrc )
     352DECLEXPORT(void) WINAPI VBoxFlushToHost ( HGLRC hglrc )
    351353{
    352354    ContextInfo *context;
     
    366368}
    367369
    368 BOOL WINAPI
     370DECLEXPORT(BOOL) WINAPI
    369371wglSwapBuffers_prox( HDC hdc )
    370372{
     
    375377}
    376378
    377 BOOL WINAPI wglCopyContext_prox( HGLRC src, HGLRC dst, UINT mask )
     379DECLEXPORT(BOOL) WINAPI wglCopyContext_prox( HGLRC src, HGLRC dst, UINT mask )
    378380{
    379381    CR_DDI_PROLOGUE();
     
    382384}
    383385
    384 HGLRC WINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane )
     386DECLEXPORT(HGLRC) WINAPI wglCreateLayerContext_prox( HDC hdc, int layerPlane )
    385387{
    386388    CR_DDI_PROLOGUE();
     
    390392}
    391393
    392 PROC WINAPI wglGetProcAddress_prox( LPCSTR name )
     394DECLEXPORT(PROC) WINAPI wglGetProcAddress_prox( LPCSTR name )
    393395{
    394396    CR_DDI_PROLOGUE();
     
    396398}
    397399
    398 BOOL WINAPI wglUseFontBitmapsA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )
     400DECLEXPORT(BOOL) WINAPI wglUseFontBitmapsA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )
    399401{
    400402    CR_DDI_PROLOGUE();
     
    403405}
    404406
    405 BOOL WINAPI wglUseFontBitmapsW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )
     407DECLEXPORT(BOOL) WINAPI wglUseFontBitmapsW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase )
    406408{
    407409    CR_DDI_PROLOGUE();
     
    410412}
    411413
    412 BOOL WINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane,
     414DECLEXPORT(BOOL) WINAPI wglDescribeLayerPlane_prox( HDC hdc, int pixelFormat, int layerPlane,
    413415        UINT nBytes, LPLAYERPLANEDESCRIPTOR lpd )
    414416{
     
    418420}
    419421
    420 int WINAPI wglSetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,
     422DECLEXPORT(int) WINAPI wglSetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,
    421423        int entries, CONST COLORREF *cr )
    422424{
     
    426428}
    427429
    428 int WINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,
     430DECLEXPORT(int) WINAPI wglGetLayerPaletteEntries_prox( HDC hdc, int layerPlane, int start,
    429431        int entries, COLORREF *cr )
    430432{
     
    434436}
    435437
    436 BOOL WINAPI wglRealizeLayerPalette_prox( HDC hdc, int layerPlane, BOOL realize )
     438DECLEXPORT(BOOL) WINAPI wglRealizeLayerPalette_prox( HDC hdc, int layerPlane, BOOL realize )
    437439{
    438440    CR_DDI_PROLOGUE();
     
    441443}
    442444
    443 DWORD WINAPI wglSwapMultipleBuffers_prox( UINT a, CONST void *b )
     445DECLEXPORT(DWORD) WINAPI wglSwapMultipleBuffers_prox( UINT a, CONST void *b )
    444446{
    445447    CR_DDI_PROLOGUE();
     
    448450}
    449451
    450 BOOL WINAPI wglUseFontOutlinesA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,
     452DECLEXPORT(BOOL) WINAPI wglUseFontOutlinesA_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,
    451453        FLOAT deviation, FLOAT extrusion, int format,
    452454        LPGLYPHMETRICSFLOAT gmf )
     
    457459}
    458460
    459 BOOL WINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,
     461DECLEXPORT(BOOL) WINAPI wglUseFontOutlinesW_prox( HDC hdc, DWORD first, DWORD count, DWORD listBase,
    460462        FLOAT deviation, FLOAT extrusion, int format,
    461463        LPGLYPHMETRICSFLOAT gmf )
     
    466468}
    467469
    468 BOOL WINAPI wglSwapLayerBuffers_prox( HDC hdc, UINT planes )
     470DECLEXPORT(BOOL) WINAPI wglSwapLayerBuffers_prox( HDC hdc, UINT planes )
    469471{
    470472    CR_DDI_PROLOGUE();
     
    480482}
    481483
    482 BOOL WINAPI wglChoosePixelFormatEXT_prox
     484DECLEXPORT(BOOL) WINAPI wglChoosePixelFormatEXT_prox
    483485(HDC hdc, const int *piAttributes, const FLOAT *pfAttributes, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
    484486{
     
    602604}
    603605
    604 BOOL WINAPI wglGetPixelFormatAttribivEXT_prox
     606DECLEXPORT(BOOL) WINAPI wglGetPixelFormatAttribivEXT_prox
    605607(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *pValues)
    606608{
     
    737739}
    738740
    739 BOOL WINAPI wglGetPixelFormatAttribfvEXT_prox
     741DECLEXPORT(BOOL) WINAPI wglGetPixelFormatAttribfvEXT_prox
    740742(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, float *pValues)
    741743{
     
    872874}
    873875
    874 BOOL WINAPI wglSwapIntervalEXT_prox(int interval)
     876DECLEXPORT(BOOL) WINAPI wglSwapIntervalEXT_prox(int interval)
    875877{
    876878    CR_DDI_PROLOGUE();
     
    878880}
    879881
    880 int  WINAPI wglGetSwapIntervalEXT_prox()
     882DECLEXPORT(int)  WINAPI wglGetSwapIntervalEXT_prox()
    881883{
    882884    CR_DDI_PROLOGUE();
     
    886888static GLubyte *gsz_wgl_extensions = "WGL_EXT_pixel_format WGL_ARB_pixel_format WGL_ARB_multisample";
    887889
    888 const GLubyte * WINAPI wglGetExtensionsStringEXT_prox()
     890DECLEXPORT(const GLubyte *) WINAPI wglGetExtensionsStringEXT_prox()
    889891{
    890892    CR_DDI_PROLOGUE();
     
    892894}
    893895
    894 const GLubyte * WINAPI wglGetExtensionsStringARB_prox(HDC hdc)
     896DECLEXPORT(const GLubyte *) WINAPI wglGetExtensionsStringARB_prox(HDC hdc)
    895897{
    896898    CR_DDI_PROLOGUE();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette