Archived

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

OpenGL V1.2

This topic is 5984 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

I''ve tried to compile some demos using multitexturing but have troubles with - glActiveTextureARB; - glMultiTexCoord2fARB; I''ve downloaded the NVIDIA OpenGL SDK 1.2 and updated my VisualC++ OpenGL stuff. But glActiveTextureARB and glMultiTexCoord2fARB still couldn''t be found. Finally I''ve put the extern void APIENTRY glActiveTextureARB (GLenum); extern void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat); into the code but at last the linker couldn''t find void __stdcall glMultiTexCoord2fARB(unsigned int,float,float)" (?glMultiTexCoord2fARB@@YGXIMM@Z) (blahblah..) Short, have troubles to use OpenGL V1.2... Any ideas what''s wrong? I hope someone could help me... Thanks in advance.

Share this post


Link to post
Share on other sites
look for a header file on nVidia''s site called glExt.h. that is probably your problem.


Never underestimante the power of stupid people in large groups.

Share this post


Link to post
Share on other sites
It works!
I only forgott this:

PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB = 0;
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = 0;
PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB = 0;

bool multitex_supported(void)
{
char *ext;

ext = (char *) glGetString(GL_EXTENSIONS);

if (!(strstr(ext, "GL_ARB_multitexture")) == 1)
{
return FALSE;
}

else
{
glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC) wglGetProcAddress("glMultiTexCoord2fARB");
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC) wglGetProcAddress("glActiveTextureARB");
glClientActiveTextureARB = (PFNGLCLIENTACTIVETEXTUREARBPROC) wglGetProcAddress("glClientActiveTextureARB");

if (!glActiveTextureARB || !glMultiTexCoord2fARB ||
!glClientActiveTextureARB)
{
return FALSE;
}
}

return TRUE;
}

Share this post


Link to post
Share on other sites