now the problem is that GL_GLEXT_PROTOTYPES apparently isn’t defined on my system, so glActiveTextureARB(…) is also unavailable, which would be quite fine if i didnt need it, but unfortunately i do.
so does anyone know what libraries/includes/?? i’m missing and where i could get them?
Under Windows you will need to use wglGetProcAddress(). glext.h should have typedefs for the function pointers you need so you would do something similar to:
Note: You have to do this AFTER you have a valid GL context created.
Edit: Also should note that you should check the version/extensions string with glGetString first. And if your version is >=1.3(?) for this particular function you should be able to use “glActiveTexture” instead of “glActiveTextureARB.”
[This message has been edited by Deiussum (edited 11-27-2003).]
That’d get rid of the error saying it’s not defined, but then you would get a linker error since opengl32.lib doesn’t have an entry point to any of those functions. Under Windows, you have to use the function pointer typedefs and wglGetProcAddress().