Menu

OpenGL Multitexture problem

2004-05-24
2012-09-26
  • Nobody/Anonymous

    Hi,

    I've read some of the threads in this forum and in others, but none of those seems to offer help for me.
    So here is my problem:

    I'm trying to write a 3D Engine with OpenGL. So far I had some small problems I was able to fix, but now I'm kind of stuck.
    I want to display a large landscape so I have to optimize a much as I can. Therefor I calculated a LightMap I want to use instead of using the GL_LIGHTING of OpenGL.
    Everything works fine. But if I want to use mutitexturing to light my texture with the lightmap, I get this Message:

    CPatch.o(.text+0x33b): In function `ZN6CPatch8GenerateEh':
    CPatch.cpp:66: undefined reference to `glActiveTextureARB'

    I'm using ATIExtensions.h since I've had some trouble with the standard glext.h header.
    When I use glext.h I get this error message:

    CPatch.cpp: In member function `void CPatch::Generate(unsigned char)':
    CPatch.cpp:66: `glActiveTextureARB' undeclared (first use this function)
    CPatch.cpp:66: (Each undeclared identifier is reported only once for each
       function it appears in.)

    So when I use glext.h I have an undeclared function, when I use ATIExtensions.h I've some linker issues.
    I figured it must have to do something with the libopengl32.a file delivered with dev-cpp.

    So what can I do to solve this problem?

     
    • Wayne Keen

      Wayne Keen - 2004-05-24

      Let me ask a *really* stupid question here, as that reflects my true understanding of the problem. :-(

      The variable glActiveTextureARB, where do you think it is defined?

      Wayne

       
    • Nobody/Anonymous

      I was trying to implement mutitexturing like described in
      http://www.berkelium.com/OpenGL/GDC99/multitexture.html

      so glActiveTextureARB is not a variable but a function.

       
      • Anonymous

        Anonymous - 2004-05-24

        Both. A function pointer.

        On Windows platform it's just a extension. See this link how to use extension(s)...

        http://www.opengl.org/resources/features/OGLextensions/

         
  • Merak

    Merak - 2009-10-11

    I have about the same problem at the moment. The problem is that
    glActiveTexture demands at least OpenGL 2.1... and that's not what comes with
    dev-c++... So where can I get it?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.