View Full Version : How do I load a .TGA file into a texture map ?

05-14-2000, 11:23 PM
can you provide some sources samples ?

Thank You !!!

05-15-2000, 01:53 AM
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.

05-15-2000, 02:19 AM
Look into "OpenGL Tutor", there's a tutorial program that does just this: loading a .TGA file and making it a texture.

05-15-2000, 10:20 PM
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

05-15-2000, 11:38 PM
If you got the code i mentioned, there's no function called loadTGA(). It's called Load().

05-17-2000, 05:19 AM
thanks, it's ok now, no more erros but i don't know how tu use this class .....

can you help me ?