3 #include "SettingsGL.hh"
5 #if defined(BIAS_HAVE_GLEW) && defined(WIN32)
13 #include <Base/Debug/Error.hh>
14 #include <Base/Debug/DebugSimple.hh>
29 #if defined(WIN32) && defined(BIAS_HAVE_GLEW)
30 if (WGLEW_EXT_swap_control)
32 if (!wglSwapIntervalEXT(interval))
34 BIASERR(
"error on wglSwapIntervalEXT");
39 BIASERR(
"WGLEW_EXT_swap_control not supported.");
41 #else // WIN32 and glew
42 BIASERR(
"Sorry, not implemented. Look at glXSwapInterval or AGL_SWAP_INTERVAL or enabled glew on win32 (JW)");
63 #if defined(WIN32) && defined(BIAS_HAVE_GLEW)
64 if(wglewIsSupported(
"WGL_EXT_swap_control"))
66 interval = wglGetSwapIntervalEXT();
69 BIASERR(
"WGLEW_EXT_swap_control not supported.");
71 #else // WIN32 and glew
72 BIASERR(
"Sorry, not implemented/tested. Enable glew on Window (JW)");
static int GetVSyncInterval()
query status of vsync/swap control interval=VSYNC JW
static void SetVSyncInterval(const int &interval)
set the vsync/swap control interval JW