PDA

View Full Version : VSYNC and other stuff



06-05-2001, 03:53 AM
Hi guys,
I have two questions for you :
1) Is there an easy way to tell OpenGL to perform a page flipping with VSYNC or without it ?
2) In DirectX someone could check a CAPS structure and see what actions are done by the hardware (e.g. blitting, alpha blending etc...) and what actions done by software. Is there something like that in OpenGL? (Not the general information from PixelFormat but some detailed information for every action)
Thanks in advance.

iGMar.

Teofuzz
06-05-2001, 04:35 AM
//vsync disable
BOOL (APIENTRY *wglSwapIntervalEXT)(int);
wglSwapIntervalEXT=( BOOL (APIENTRY*)(int) )wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT!=NULL) {
message("Vsync disabled (wglSwapIntervalEXT)\n");
wglSwapIntervalEXT(0);
}
else {
message("Vsync unchanged (wglSwapIntervalEXT not found)\n");
}