Archived

This topic is now archived and is closed to further replies.

'GL_TEXTURE0_ARB' : undeclared identifier

This topic is 5170 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, this is my first time on the forum and I have a quick question...I am using SDL/OpenGL on MS Visual Studio .NET and I get this: ''glActiveTextureARB'': identifier not found, even with argument- dependent lookup what is this? I know all my libraries are linked cuz i have written other code w/ no problems...any ideas?

Share this post


Link to post
Share on other sites
Just a stab in the dark, because you don''t explain your code much...

OpenGL uses an extension mechanism. Since no one ever updates the window''s OpenGL library, the only way to access the newer features and features different cards support is through extensions. glActiveTextureARB is one such extension. Go to NeHe, he has tutorials on using extensions. He even has a tutorial on Multitexturing which is what I am assuming you are doing.

I hope this helps, if not, explain your problem better.

Share this post


Link to post
Share on other sites
Well one option is to download the GLee library (see sig). It allows you to just do


#include <GL\Glee.h>
...
gleeInit(); //in your setup code

...
if (GLEE_ARB_multitexture) //check for multitexture extension

{
glActiveTextureARB(...);
}

//OR alternatively, if you have an OpenGL 1.3 card

if (GLEE_VERSION >= 1.3)
{
glActiveTexture(...);
}


____________________________________________________________
www.elf-stone.com | Automated GL Extension Loading: GLee 1.12 for Win32

Share this post


Link to post
Share on other sites