Thread: Texture mapping in OpenGL

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    8

    Texture mapping in OpenGL

    Can somebody tell me how to use texture mapping in OpenGL? I tried the tutorial on NeHe but I always get a compile error that looks something like this:

    Unresolved external "auxDIBImageLoadA"...

  2. #2
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    make sure you link glaux.lib, how to do this depends on your compiler, however, it's done the same way as you linked opengl32.lib and glu32.lib

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    8
    Thanks, I'll see if that works.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    or link it from your source:

    #pragma comment(lib, "name_of_lib.lib")

  5. #5
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Originally posted by pode
    or link it from your source:

    #pragma comment(lib, "name_of_lib.lib")
    isn't this a VC++ only thing?

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    8
    isn't this a VC++ only thing?
    No, I don't think so. I think it works with the Borland C++ Compiler (which I use) because I've used it before.

    BTW, I linked in glaux.lib and it worked fine. Thanks to everyone that helped!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Texture mapping anomaly opengl
    By Shakti in forum Game Programming
    Replies: 1
    Last Post: 04-11-2009, 02:09 AM
  2. OpenGL texture mapping with texCoordArray
    By nempo in forum Game Programming
    Replies: 1
    Last Post: 08-24-2008, 04:00 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. Texture mapping in OpenGL
    By Mithoric in forum Game Programming
    Replies: 3
    Last Post: 09-12-2003, 09:03 AM
  5. OpenGL texture mapping problems.
    By KnightSword in forum Game Programming
    Replies: 2
    Last Post: 07-12-2002, 10:26 PM