PDA

View Full Version : how can I call the function wglSwapIntervalEXT



GermanGuy
08-31-2014, 02:46 PM
i want to use it, to disable vsync.

in wglext.h its defined as:


#ifdef WGL_WGLEXT_PROTOTYPES
extern BOOL WINAPI wglSwapIntervalEXT (int interval);
extern int WINAPI wglGetSwapIntervalEXT (void);
#endif /* WGL_WGLEXT_PROTOTYPES */

When I try to compile the program, I get:


'wglSwapIntervalEXT': identifier not found

Agent D
08-31-2014, 11:06 PM
You have to load a pointer to this function using wglGetProcAddress while the context is current. You may then call the pointer returned by this function.