Not sure how to use extensions on Win32 platforms, but I think this is the way to do it. However, you have to check if your functions actually get a value from wglGetProcAddress(), because if you specify an invalid extension, it will return NULL and you cant use the function.
Yes, I want the user to decide if VSync is on or off. Let me guess, for VSync off I use wglSwapIntervalEXT(0);?
I have got another question if I try to get the current state of the SwapInterval I allways get a negative number (-1 or -2), what does that mean? And what are the numbers for the states?
I use a TNT with 2.40 drivers (which are best for TNT)!
Diapolo
[This message has been edited by Diapolo (edited 04-12-2000).]
" wglSwapIntervalEXT specifies the minimum number of video frame periods per buffer swap for the window associated with the current context.
The interval takes effect when SwapBuffers or wglSwapLayerBuffer is first called subsequent to the wglSwapIntervalEXT call. "