mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 20:20:24 +01:00
wgl: Implement wglSwapMultipleBuffers.
This commit is contained in:
parent
6b1193820f
commit
a583c3ab47
4 changed files with 31 additions and 2 deletions
|
|
@ -362,7 +362,7 @@ EXPORTS
|
|||
wglShareLists
|
||||
wglSwapBuffers
|
||||
wglSwapLayerBuffers
|
||||
; wglSwapMultipleBuffers
|
||||
wglSwapMultipleBuffers
|
||||
wglUseFontBitmapsA
|
||||
wglUseFontBitmapsW
|
||||
wglUseFontOutlinesA
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ EXPORTS
|
|||
wglShareLists = wglShareLists@8
|
||||
wglSwapBuffers = wglSwapBuffers@4
|
||||
wglSwapLayerBuffers = wglSwapLayerBuffers@8
|
||||
; wglSwapMultipleBuffers = wglSwapMultipleBuffers@8
|
||||
wglSwapMultipleBuffers = wglSwapMultipleBuffers@8
|
||||
wglUseFontBitmapsA = wglUseFontBitmapsA@16
|
||||
wglUseFontBitmapsW = wglUseFontBitmapsW@16
|
||||
wglUseFontOutlinesA = wglUseFontOutlinesA@32
|
||||
|
|
|
|||
|
|
@ -97,6 +97,19 @@ wglSwapBuffers(
|
|||
}
|
||||
|
||||
|
||||
WINGDIAPI DWORD WINAPI
|
||||
wglSwapMultipleBuffers(UINT n,
|
||||
CONST WGLSWAP *ps)
|
||||
{
|
||||
UINT i;
|
||||
|
||||
for (i =0; i < n; ++i)
|
||||
wglSwapBuffers(ps->hdc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
WINGDIAPI BOOL APIENTRY
|
||||
wglSwapLayerBuffers(
|
||||
HDC hdc,
|
||||
|
|
|
|||
|
|
@ -59,5 +59,21 @@ wglSetPixelFormat(HDC hdc,
|
|||
int iPixelFormat,
|
||||
CONST PIXELFORMATDESCRIPTOR *ppfd);
|
||||
|
||||
#if defined(__MINGW32__) || (WINVER < 0x0500)
|
||||
|
||||
typedef struct _WGLSWAP
|
||||
{
|
||||
HDC hdc;
|
||||
UINT uiFlags;
|
||||
} WGLSWAP;
|
||||
|
||||
#define WGL_SWAPMULTIPLE_MAX 16
|
||||
|
||||
WINGDIAPI DWORD WINAPI
|
||||
wglSwapMultipleBuffers(UINT n,
|
||||
CONST WGLSWAP *ps);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* STW_WGL_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue