At first the problem was that I did’t have “wgl.h” on my machine. So, I went and found it. But, the version I found has a #include for “gdi.h”, which I don’t have either. I found “gdi.h”, but it has a #include for “super.h.” I can’t find this file, and I bet that when I do, it will have some other dependancy. Can anybody help me. I would really appreciate it. Google and MSDN have nothing left for me!
Cheers,
Lee
[This message has been edited by leepatton (edited 08-28-2002).]
I believe the WGL routines are defined via the “windows.h” include file. I’m assuming you’re coding in Win32 since you’re using a ‘wgl*’ prefixed procedure.
Thanks. The code compiled beautifully, but it seems that the address of wglSwapIntervalEXT is not being returned by wglGetProcAddress. Hmm… I’ll admit very quickly that I am no C++ expert. Perhaps there is something else I’m doing incorrectly. I’m writing a dll in C++ to be called from VB. Here’s what I have:
in the header:
typedef int (APIENTRY *WGLSWAPINTERVALEXT_T) (int interval);
WGLSWAPINTERVALEXT_T wglSwapIntervalEXT;
and here’s the function:
int __stdcall vsync( int enable)
{
// outline: this function enables (1) disables (0) the syncronizaiton of the swapbuffers
// command to the vertical blank of the monitor
Correction… I am developing this app to run on a number of different platforms, and it was the platform I was testing this routine on that didn’t support wglSwapIntervalEXT. I got it to work on an NVIDIA platform. Thanks for all the help.