View Full Version : How can I link to the nvidia OpenGL drive in windows2000?

01-06-2002, 12:49 AM
It seems that all the call to OpenGL are caught by the display driver so that I can still use microsoft's opengl32.dll?!

But what about the gl-function that not in opengl32.dll(eg. glTexImage3D), if I call such function in my code and link opengl32.lib, there will be a link error(can't find the function).

what can I do about that?

01-06-2002, 12:54 AM
you can use extensions ...

01-06-2002, 01:07 AM
Hi, I'm a beginner, would you so kind to explain some more?

01-06-2002, 10:21 AM
use wglGetProcAddress to retrieve a function pointer to the 1.2 and 1.3 functions that are not in the 1.1 Microsoft implementation. Check that the GL_VERSION really is 1.2 (or 1.3) before you do.

If you want a good reference on the syntax of function pointers, I'd suggest "the C programming language" by Kernighan and Ritchie (make sure to get a later copy that supports ANSI standard syntax). If you want a good reference on wglGetProcAddress, I suggest msdn.microsoft.com and its search field.