does there exist such a gl function?

does there exist the function:

glClientActiveTextureARB(GL_TEXTURE1_ARB);

As I read from OpenGL book that there is such a function, however, when I try to use it in my prog, it says that such identifier was not found…

Such problem exist during my compilation and hence I was not able to compile my program

It does exists.

For explanation about extensions programming under win32, see: http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/014848.html

Do you read the docs ??? http://www.opengl.org/resources/features/

The glext project is useful if you have plenty of extensions to use : http://glew.sourceforge.net/

A STICKY thread with such info would be very appreciated.

Sorry ar, I will go to read the doc soon. But since I am in a hurry to run the program (it is urgent), would you mind telling me the way to solve it in win32 prog? Thx a lot

Just use glActiveTextureARB, it is the exact same thing.

didnt you forget to import it? as this is an extension, so in the standard opengl header it is not imported. search for extgl, it helps you a lot!

Thx for your help!!!

Originally posted by candy:
Sorry ar, I will go to read the doc soon. But since I am in a hurry to run the program (it is urgent), would you mind telling me the way to solve it in win32 prog? Thx a lot

If it is urgent, you should have read the doc about how to use extensions. It would have gone faster than waiting around for someone to post that you need to use wglGetProcAddress to get a function pointer to extensions in Windows. Of course, a quick search on these forums would also reveal to you that you need to use wglGetProcAddress to get a function pointer to extensions in Windows. In fact, I think just a few posts down, I mention that you need to use wglGetProcAddress to get a function pointer to extensions in Windows.