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

can you provide some sources samples ?

Thank You !!!

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.

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

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

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

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

can you help me ?