Changeset 3419 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 4, 2007 3:51:30 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/OpenGL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLComplexSync.cpp
r3413 r3419 64 64 } 65 65 66 /* Test export for directly linking with vboxogl.dll */67 HGLRC WINAPI wglCreateContext(HDC hdc)68 {69 return DrvCreateContext(hdc);70 }71 72 66 HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane) 73 67 { … … 117 111 } 118 112 113 int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane, 114 int iStart, int cEntries, 115 COLORREF *pcr) 116 { 117 VBOX_OGL_GEN_SYNC_OP5_PASS_PTR_RET(int, DrvGetLayerPaletteEntries, hdc, iLayerPlane, iStart, cEntries, sizeof(COLORREF)*cEntries, pcr); 118 return retval; 119 } 120 121 int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd) 122 { 123 /* if ppfd == NULL, then DrvDescribelayerPlane returns the maximum nr of supported pixel formats */ 124 VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd); 125 return retval; 126 } 127 128 #ifdef VBOX_WITH_WGL_EXPORTS 119 129 /* Test export for directly linking with vboxogl.dll */ 130 int WINAPI wglDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd) 131 { 132 return DrvDescribePixelFormat(hdc, iPixelFormat, nBytes, ppfd); 133 } 134 120 135 BOOL WINAPI wglDescribeLayerPlane(HDC hdc,int iPixelFormat, 121 136 int iLayerPlane, UINT nBytes, … … 125 140 } 126 141 127 int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,128 int iStart, int cEntries,129 COLORREF *pcr)130 {131 VBOX_OGL_GEN_SYNC_OP5_PASS_PTR_RET(int, DrvGetLayerPaletteEntries, hdc, iLayerPlane, iStart, cEntries, sizeof(COLORREF)*cEntries, pcr);132 return retval;133 }134 135 /* Test export for directly linking with vboxogl.dll */136 142 int WINAPI wglGetLayerPaletteEntries(HDC hdc, int iLayerPlane, 137 143 int iStart, int cEntries, … … 141 147 } 142 148 143 int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd) 144 { 145 /* if ppfd == NULL, then DrvDescribelayerPlane returns the maximum nr of supported pixel formats */ 146 VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd); 147 return retval; 148 } 149 150 /* Test export for directly linking with vboxogl.dll */ 151 int WINAPI wglDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd) 152 { 153 return DrvDescribePixelFormat(hdc, iPixelFormat, nBytes, ppfd); 154 } 149 HGLRC WINAPI wglCreateContext(HDC hdc) 150 { 151 return DrvCreateContext(hdc); 152 } 153 154 #endif 155 155 156 156 void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLSimpleSync.cpp
r3413 r3419 30 30 } 31 31 32 /* Test export for directly linking with vboxogl.dll */33 BOOL WINAPI wglDeleteContext(HGLRC hglrc)34 {35 return DrvDeleteContext(hglrc);36 }37 38 32 BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) 39 33 { … … 42 36 } 43 37 44 /* Test export for directly linking with vboxogl.dll */45 BOOL WINAPI wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask)46 {47 return DrvCopyContext(hglrcSrc, hglrcDst, mask);48 }49 50 38 void APIENTRY DrvReleaseContext(HGLRC hglrc) 51 39 { … … 57 45 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvShareLists, hglrc1, hglrc2); 58 46 return retval; 59 }60 61 BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2)62 {63 return DrvShareLists(hglrc1, hglrc2);64 47 } 65 48 … … 72 55 } 73 56 57 58 BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize) 59 { 60 VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvRealizeLayerPalette, hdc, iLayerPlane, bRealize); 61 return retval; 62 } 63 64 BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes) 65 { 66 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSwapLayerBuffers, hdc, fuPlanes); 67 return retval; 68 } 69 70 BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat) 71 { 72 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSetPixelFormat, hdc, iPixelFormat); 73 return retval; 74 } 75 76 BOOL APIENTRY DrvSwapBuffers(HDC hdc) 77 { 78 VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvSwapBuffers, hdc); 79 return retval; 80 } 81 82 #ifdef VBOX_WITH_WGL_EXPORTS 74 83 /* Test export for directly linking with vboxogl.dll */ 75 84 int WINAPI wglSetLayerPaletteEntries(HDC hdc, int iLayerPlane, … … 80 89 } 81 90 82 BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize) 83 { 84 VBOX_OGL_GEN_SYNC_OP3_RET(BOOL, DrvRealizeLayerPalette, hdc, iLayerPlane, bRealize); 85 return retval; 86 } 87 88 /* Test export for directly linking with vboxogl.dll */ 91 BOOL WINAPI wglSetPixelFormat(HDC hdc, int iPixelFormat) 92 { 93 return DrvSetPixelFormat(hdc, iPixelFormat); 94 } 95 89 96 BOOL WINAPI wglRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize) 90 97 { … … 92 99 } 93 100 94 BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes) 95 { 96 VBOX_OGL_GEN_SYNC_OP2_RET(BOOL, DrvSwapLayerBuffers, hdc, fuPlanes); 97 return retval; 98 } 99 100 /* Test export for directly linking with vboxogl.dll */ 101 BOOL WINAPI wglDeleteContext(HGLRC hglrc) 102 { 103 return DrvDeleteContext(hglrc); 104 } 105 101 106 BOOL WINAPI wglSwapLayerBuffers(HDC hdc, UINT fuPlanes) 102 107 { … … 104 109 } 105 110 106 BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat)107 {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 */113 BOOL WINAPI wglSetPixelFormat(HDC hdc, int iPixelFormat)114 {115 return DrvSetPixelFormat(hdc, iPixelFormat);116 }117 118 BOOL APIENTRY DrvSwapBuffers(HDC hdc)119 {120 VBOX_OGL_GEN_SYNC_OP1_RET(BOOL, DrvSwapBuffers, hdc);121 return retval;122 }123 124 /* Test export for directly linking with vboxogl.dll */125 111 BOOL WINAPI SwapBuffers(HDC hdc) 126 112 { 127 113 return DrvSwapBuffers(hdc); 128 114 } 115 116 BOOL WINAPI wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) 117 { 118 return DrvCopyContext(hglrcSrc, hglrcDst, mask); 119 } 120 121 BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2) 122 { 123 return DrvShareLists(hglrc1, hglrc2); 124 } 125 #endif 129 126 130 127 /* OpenGL functions */ -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.def
r3414 r3419 379 379 380 380 ; test exports 381 wglCreateContext382 wglMakeCurrent383 wglDeleteContext384 SwapBuffers385 386 wglGetProcAddress387 wglDescribeLayerPlane388 wglGetLayerPaletteEntries389 wglDescribePixelFormat390 wglCopyContext391 wglShareLists392 wglSetLayerPaletteEntries393 wglRealizeLayerPalette394 wglSwapLayerBuffers395 wglSetPixelFormat381 ; wglCreateContext 382 ; wglMakeCurrent 383 ; wglDeleteContext 384 ; SwapBuffers 385 386 ; wglGetProcAddress 387 ; wglDescribeLayerPlane 388 ; wglGetLayerPaletteEntries 389 ; wglDescribePixelFormat 390 ; wglCopyContext 391 ; wglShareLists 392 ; wglSetLayerPaletteEntries 393 ; wglRealizeLayerPalette 394 ; wglSwapLayerBuffers 395 ; wglSetPixelFormat -
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/drv.cpp
r3413 r3419 76 76 } 77 77 78 /* Test export for directly linking with vboxogl.dll */79 PROC WINAPI wglGetProcAddress(LPCSTR lpszProc)80 {81 return DrvGetProcAddress(lpszProc);82 }83 84 78 BOOL APIENTRY DrvValidateVersion(DWORD version) 85 79 { … … 98 92 } 99 93 94 #ifdef VBOX_WITH_WGL_EXPORTS 100 95 /* Test export for directly linking with vboxogl.dll */ 101 96 BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc) … … 104 99 return TRUE; 105 100 } 101 102 PROC WINAPI wglGetProcAddress(LPCSTR lpszProc) 103 { 104 return DrvGetProcAddress(lpszProc); 105 } 106 #endif
Note:
See TracChangeset
for help on using the changeset viewer.