VirtualBox

Changeset 3413 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 4, 2007 2:31:52 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22617
Message:

OGL: correction + more wgl exports

Location:
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLComplexSync.cpp

    r3339 r3413  
    117117}
    118118
     119/* Test export for directly linking with vboxogl.dll */
     120BOOL WINAPI wglDescribeLayerPlane(HDC hdc,int iPixelFormat,
     121                                  int iLayerPlane, UINT nBytes,
     122                                  LPLAYERPLANEDESCRIPTOR plpd)
     123{
     124    return DrvDescribeLayerPlane(hdc, iPixelFormat, iLayerPlane, nBytes, plpd);
     125}
     126
    119127int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
    120128                                       int iStart, int cEntries,
     
    125133}
    126134
     135/* Test export for directly linking with vboxogl.dll */
     136int WINAPI wglGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
     137                                     int iStart, int cEntries,
     138                                     COLORREF *pcr)
     139{
     140    return DrvGetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr);
     141}
     142
    127143int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd)
    128144{
     
    130146    VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd);
    131147    return retval;
     148}
     149
     150/* Test export for directly linking with vboxogl.dll */
     151int WINAPI wglDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd)
     152{
     153    return DrvDescribePixelFormat(hdc, iPixelFormat, nBytes, ppfd);
    132154}
    133155
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLSimpleSync.cpp

    r3339 r3413  
    4242}
    4343
     44/* Test export for directly linking with vboxogl.dll */
     45BOOL WINAPI wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask)
     46{
     47    return DrvCopyContext(hglrcSrc, hglrcDst, mask);
     48}
     49
    4450void APIENTRY DrvReleaseContext(HGLRC hglrc)
    4551{
     
    5157    VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvShareLists, hglrc1, hglrc2);
    5258    return retval;
     59}
     60
     61BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2)
     62{
     63    return DrvShareLists(hglrc1, hglrc2);
    5364}
    5465
     
    6172}
    6273
     74/* Test export for directly linking with vboxogl.dll */
     75int WINAPI wglSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
     76                                     int iStart, int cEntries,
     77                                     CONST COLORREF *pcr)
     78{
     79    return DrvSetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr);
     80}
     81
    6382BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize)
    6483{
     
    6786}
    6887
     88/* Test export for directly linking with vboxogl.dll */
     89BOOL WINAPI wglRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize)
     90{
     91    return DrvRealizeLayerPalette(hdc, iLayerPlane, bRealize);
     92}
     93
    6994BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes)
    7095{
     
    7398}
    7499
     100/* Test export for directly linking with vboxogl.dll */
     101BOOL WINAPI wglSwapLayerBuffers(HDC hdc, UINT fuPlanes)
     102{
     103    return DrvSwapLayerBuffers(hdc, fuPlanes);
     104}
     105
    75106BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat)
    76107{
    77     VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvSetPixelFormat, hdc);
    78     return retval;
     108    VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSetPixelFormat, hdc, iPixelFormat);
     109    return retval;
     110}
     111
     112/* Test export for directly linking with vboxogl.dll */
     113BOOL WINAPI wglSetPixelFormat(HDC hdc, int iPixelFormat)
     114{
     115    return DrvSetPixelFormat(hdc, iPixelFormat);
    79116}
    80117
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/drv.cpp

    r3339 r3413  
    7676}
    7777
     78/* Test export for directly linking with vboxogl.dll */
     79PROC WINAPI wglGetProcAddress(LPCSTR lpszProc)
     80{
     81    return DrvGetProcAddress(lpszProc);
     82}
     83
    7884BOOL APIENTRY DrvValidateVersion(DWORD version)
    7985{
Note: See TracChangeset for help on using the changeset viewer.

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