Thread: Has anyone gotten OpenGL SuperBible's gltLoadTGA() to work with C++?

  1. #1
    Software engineer
    Join Date
    Aug 2005
    Location
    Oregon
    Posts
    283

    Has anyone gotten OpenGL SuperBible's gltLoadTGA() to work with C++?

    It compiles fine when I am compiling in straight C code, but when I use C++ I get a "can't convert GLbyte* to GLubyte*. I reinterpret the cast, but then I get a linker error. Have you come across this? What are some solutions to get past this problem?

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Have a google around for tutorials on loading a TGA in OpenGL, or use DevIL.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why won't my OpenGL work?
    By Raigne in forum C++ Programming
    Replies: 7
    Last Post: 11-26-2005, 11:53 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. MISC questions about OpenGL
    By Silvercord in forum Game Programming
    Replies: 12
    Last Post: 01-25-2003, 04:20 PM
  4. What is it with OpenGL tutorials?
    By Eibro in forum Game Programming
    Replies: 22
    Last Post: 01-12-2003, 04:49 PM
  5. I know OpenGL...now i want a good project 2 work on...
    By Zeeshan Zia in forum Game Programming
    Replies: 2
    Last Post: 10-20-2001, 12:18 PM