mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
adding stub for wglChoosePixelFormatARB, wglSwapIntervalEXT, wglGetSwapIntervalEXT
svn path=/trunk/; revision=30756
This commit is contained in:
parent
b98f8ef114
commit
f7c97d73d8
|
@ -712,3 +712,50 @@ wglGetExtensionsStringEXT (void)
|
||||||
"WGL_EXT_extensions_string WGL_ARB_extensions_string"
|
"WGL_EXT_extensions_string WGL_ARB_extensions_string"
|
||||||
/*WGL_ARB_pixel_format WGL_ARB_render_texture WGL_ARB_pbuffer*/;
|
/*WGL_ARB_pixel_format WGL_ARB_render_texture WGL_ARB_pbuffer*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLAPI BOOL GLAPIENTRY
|
||||||
|
wglChoosePixelFormatARB (HDC hdc,
|
||||||
|
const int *piAttribIList,
|
||||||
|
const FLOAT *pfAttribFList,
|
||||||
|
UINT nMaxFormats,
|
||||||
|
int *piFormats,
|
||||||
|
UINT *nNumFormats)
|
||||||
|
{
|
||||||
|
SetLastError(0);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
GLAPI BOOL GLAPIENTRY
|
||||||
|
wglSwapIntervalEXT (int interval)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
WMesaContext ctx = wglGetCurrentContext();
|
||||||
|
if (ctx == NULL) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (interval < 0) {
|
||||||
|
interval = 0;
|
||||||
|
} else if (interval > 3) {
|
||||||
|
interval = 3;
|
||||||
|
}
|
||||||
|
ctx->gl_ctx.swapInterval = interval;
|
||||||
|
return TRUE;
|
||||||
|
*/
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
GLAPI int GLAPIENTRY
|
||||||
|
wglGetSwapIntervalEXT (void)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
|
||||||
|
WMesaContext ctx = wglGetCurrentContext();
|
||||||
|
|
||||||
|
if (ctx == NULL) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return (int)ctx->gl_ctx.swapInterval;
|
||||||
|
*/
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ extern "C" {
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
|
||||||
GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void);
|
GLAPI const char * GLAPIENTRY wglGetExtensionsStringEXT (void);
|
||||||
|
GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
||||||
|
GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval);
|
||||||
|
GLAPI int GLAPIENTRY wglGetSwapIntervalEXT (void);
|
||||||
|
|
||||||
#define MAX_MESA_ATTRS 20
|
#define MAX_MESA_ATTRS 20
|
||||||
|
|
||||||
|
@ -315,24 +318,25 @@ static struct {
|
||||||
} wgl_ext[] = {
|
} wgl_ext[] = {
|
||||||
{"wglGetExtensionsStringARB", (PROC)wglGetExtensionsStringARB},
|
{"wglGetExtensionsStringARB", (PROC)wglGetExtensionsStringARB},
|
||||||
{"wglGetExtensionsStringEXT", (PROC)wglGetExtensionsStringEXT},
|
{"wglGetExtensionsStringEXT", (PROC)wglGetExtensionsStringEXT},
|
||||||
// {"wglSwapIntervalEXT", (PROC)wglSwapIntervalEXT},
|
{"wglSwapIntervalEXT", (PROC)wglSwapIntervalEXT},
|
||||||
// {"wglGetSwapIntervalEXT", (PROC)wglGetSwapIntervalEXT},
|
{"wglGetSwapIntervalEXT", (PROC)wglGetSwapIntervalEXT},
|
||||||
// {"wglGetDeviceGammaRamp3DFX", (PROC)wglGetDeviceGammaRamp3DFX},
|
// {"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
|
||||||
// {"wglSetDeviceGammaRamp3DFX", (PROC)wglSetDeviceGammaRamp3DFX},
|
// {"wglGetPixelFormatAttribfvARB", (PROC)wglGetPixelFormatAttribfvARB},
|
||||||
/* WGL_ARB_pixel_format */
|
{"wglChoosePixelFormatARB", (PROC)wglChoosePixelFormatARB},
|
||||||
// {"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
|
// {"wglCreatePbufferARB", (PROC)wglCreatePbufferARB},
|
||||||
// {"wglGetPixelFormatAttribfvARB", (PROC)wglGetPixelFormatAttribfvARB},
|
// {"wglGetPbufferDCARB", (PROC)wglGetPbufferDCARB},
|
||||||
// {"wglChoosePixelFormatARB", (PROC)wglChoosePixelFormatARB},
|
// {"wglReleasePbufferDCARB", (PROC)wglReleasePbufferDCARB},
|
||||||
/* WGL_ARB_render_texture */
|
// {"wglDestroyPbufferARB", (PROC)wglDestroyPbufferARB},
|
||||||
// {"wglBindTexImageARB", (PROC)wglBindTexImageARB},
|
// {"wglQueryPbufferARB", (PROC)wglQueryPbufferARB},
|
||||||
// {"wglReleaseTexImageARB", (PROC)wglReleaseTexImageARB},
|
// {"wglSetPbufferAttribARB", (PROC)wglSetPbufferAttribARB},
|
||||||
// {"wglSetPbufferAttribARB", (PROC)wglSetPbufferAttribARB},
|
// {"wglBindTexImageARB", (PROC)wglBindTexImageARB},
|
||||||
// /* WGL_ARB_pbuffer */
|
// {"wglReleaseTexImageARB", (PROC)wglReleaseTexImageARB},
|
||||||
// {"wglCreatePbufferARB", (PROC)wglCreatePbufferARB},
|
// {"wglCreateBufferRegionARB", (PROC)wglCreateBufferRegionARB},
|
||||||
// {"wglGetPbufferDCARB", (PROC)wglGetPbufferDCARB},
|
// {"wglDeleteBufferRegionARB", (PROC)wglDeleteBufferRegionARB},
|
||||||
// {"wglReleasePbufferDCARB", (PROC)wglReleasePbufferDCARB},
|
// {"wglSaveBufferRegionARB", (PROC)wglSaveBufferRegionARB},
|
||||||
// {"wglDestroyPbufferARB", (PROC)wglDestroyPbufferARB},
|
// {"wglRestoreBufferRegionARB", (PROC)wglRestoreBufferRegionARB},
|
||||||
// {"wglQueryPbufferARB", (PROC)wglQueryPbufferARB},
|
// {"wglMakeContextCurrentARB", (PROC)wglMakeContextCurrentARB},
|
||||||
|
// {"wglGetCurrentReadDCARB", (PROC)wglGetCurrentReadDCARB},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue