Results 1 to 6 of 6

Thread: How do I load a .TGA file into a texture map ?

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    FRANCE
    Posts
    9

    How do I load a .TGA file into a texture map ?

    can you provide some sources samples ?

    Thank You !!!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: How do I load a .TGA file into a texture map ?

    Look at Nate's page at http://nate.scuzzy.net/ . He got lot of nice stuff. A .TGA loader can be found under 'Common Code' in the main menu. Works nice for me at least.

  3. #3
    Junior Member Newbie
    Join Date
    May 2000
    Location
    france
    Posts
    11

    Re: How do I load a .TGA file into a texture map ?

    Look into "OpenGL Tutor", there's a tutorial program that does just this: loading a .TGA file and making it a texture.

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    FRANCE
    Posts
    9

    Re: How do I load a .TGA file into a texture map ?

    i've got 2 error with nate code why ?

    main.obj : error LNK2001: unresolved external symbol "int __cdecl loadTGA(char *,int)" (?loadTGA@@YAHPADH@Z)
    Debug/SkinMapperGL.exe : fatal error LNK1120: 1 unresolved externals

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: How do I load a .TGA file into a texture map ?

    If you got the code i mentioned, there's no function called loadTGA(). It's called Load().

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    FRANCE
    Posts
    9

    Re: How do I load a .TGA file into a texture map ?

    thanks, it's ok now, no more erros but i don't know how tu use this class .....

    can you help me ?

Similar Threads

  1. Load texture coordinates from text file
    By aje1234l in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-02-2015, 01:11 AM
  2. can i load a texture file without auxDIBImageLoad?
    By supercoollee in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-11-2010, 04:27 AM
  3. Replies: 1
    Last Post: 11-30-2005, 03:12 AM
  4. How to Load Bmp File for Texture Mapping?
    By Fadi Chehimi in forum OpenGL ES
    Replies: 3
    Last Post: 09-26-2005, 08:22 AM
  5. I cannot load texture form file.tga image
    By Dol AI with 3D Bone system in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-14-2004, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean