PDA

View Full Version : does there exist such a gl function?



candy
01-11-2004, 06:00 AM
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..

candy
01-11-2004, 06:11 AM
Such problem exist during my compilation and hence I was not able to compile my program

ZbuffeR
01-11-2004, 06:20 AM
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.

candy
01-11-2004, 06:54 AM
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

soconne
01-11-2004, 06:59 AM
Just use glActiveTextureARB, it is the exact same thing.

orbano
01-11-2004, 07:25 AM
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!

candy
01-11-2004, 07:32 AM
Thx for your help!!!

Deiussum
01-12-2004, 07:01 AM
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.