[ros-diffs] [greatlrd] 30756: adding stub for wglChoosePixelFormatARB, wglSwapIntervalEXT, wglGetSwapIntervalEXT

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Nov 25 21:28:05 CET 2007


Author: greatlrd
Date: Sun Nov 25 23:28:04 2007
New Revision: 30756

URL: http://svn.reactos.org/svn/reactos?rev=30756&view=rev
Log:
adding stub for wglChoosePixelFormatARB, wglSwapIntervalEXT, wglGetSwapIntervalEXT

Modified:
    trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/gdi/wgl.c
    trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c

Modified: trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/gdi/wgl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/gdi/wgl.c?rev=30756&r1=30755&r2=30756&view=diff
==============================================================================
--- trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/gdi/wgl.c (original)
+++ trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/gdi/wgl.c Sun Nov 25 23:28:04 2007
@@ -712,3 +712,50 @@
           "WGL_EXT_extensions_string WGL_ARB_extensions_string"
          /*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;
+}
+

Modified: trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c?rev=30756&r1=30755&r2=30756&view=diff
==============================================================================
--- trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c (original)
+++ trunk/reactos/dll/3rdparty/mesa32/src/drivers/windows/icd/icd.c Sun Nov 25 23:28:04 2007
@@ -50,6 +50,9 @@
 #include "glapi.h"
 
 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
 
@@ -315,24 +318,25 @@
 } wgl_ext[] = {
        {"wglGetExtensionsStringARB",    (PROC)wglGetExtensionsStringARB},
        {"wglGetExtensionsStringEXT",    (PROC)wglGetExtensionsStringEXT},
-//       {"wglSwapIntervalEXT",           (PROC)wglSwapIntervalEXT},
-//       {"wglGetSwapIntervalEXT",        (PROC)wglGetSwapIntervalEXT},
-//       {"wglGetDeviceGammaRamp3DFX",    (PROC)wglGetDeviceGammaRamp3DFX},
-//       {"wglSetDeviceGammaRamp3DFX",    (PROC)wglSetDeviceGammaRamp3DFX},
-       /* WGL_ARB_pixel_format */
-//       {"wglGetPixelFormatAttribivARB", (PROC)wglGetPixelFormatAttribivARB},
-//       {"wglGetPixelFormatAttribfvARB", (PROC)wglGetPixelFormatAttribfvARB},
-//       {"wglChoosePixelFormatARB",      (PROC)wglChoosePixelFormatARB},
-       /* WGL_ARB_render_texture */
-//       {"wglBindTexImageARB",           (PROC)wglBindTexImageARB},
-//       {"wglReleaseTexImageARB",        (PROC)wglReleaseTexImageARB},
-//       {"wglSetPbufferAttribARB",       (PROC)wglSetPbufferAttribARB},
-//       /* WGL_ARB_pbuffer */
-//       {"wglCreatePbufferARB",          (PROC)wglCreatePbufferARB},
-//       {"wglGetPbufferDCARB",           (PROC)wglGetPbufferDCARB},
-//       {"wglReleasePbufferDCARB",       (PROC)wglReleasePbufferDCARB},
-//       {"wglDestroyPbufferARB",         (PROC)wglDestroyPbufferARB},
-//       {"wglQueryPbufferARB",           (PROC)wglQueryPbufferARB},
+       {"wglSwapIntervalEXT",    (PROC)wglSwapIntervalEXT},
+       {"wglGetSwapIntervalEXT",    (PROC)wglGetSwapIntervalEXT},
+//       {"wglGetPixelFormatAttribivARB",    (PROC)wglGetPixelFormatAttribivARB},
+//       {"wglGetPixelFormatAttribfvARB",    (PROC)wglGetPixelFormatAttribfvARB},
+       {"wglChoosePixelFormatARB",    (PROC)wglChoosePixelFormatARB},
+//       {"wglCreatePbufferARB",    (PROC)wglCreatePbufferARB},
+//       {"wglGetPbufferDCARB",    (PROC)wglGetPbufferDCARB},
+//       {"wglReleasePbufferDCARB",    (PROC)wglReleasePbufferDCARB},
+//       {"wglDestroyPbufferARB",    (PROC)wglDestroyPbufferARB},
+//       {"wglQueryPbufferARB",    (PROC)wglQueryPbufferARB},
+//       {"wglSetPbufferAttribARB",    (PROC)wglSetPbufferAttribARB},
+//       {"wglBindTexImageARB",    (PROC)wglBindTexImageARB},
+//       {"wglReleaseTexImageARB",    (PROC)wglReleaseTexImageARB},
+//       {"wglCreateBufferRegionARB",    (PROC)wglCreateBufferRegionARB},
+//       {"wglDeleteBufferRegionARB",    (PROC)wglDeleteBufferRegionARB},
+//       {"wglSaveBufferRegionARB",    (PROC)wglSaveBufferRegionARB},
+//       {"wglRestoreBufferRegionARB",    (PROC)wglRestoreBufferRegionARB},
+//       {"wglMakeContextCurrentARB",    (PROC)wglMakeContextCurrentARB},
+//       {"wglGetCurrentReadDCARB",    (PROC)wglGetCurrentReadDCARB},
        {NULL, NULL}
 };
 




More information about the Ros-diffs mailing list