LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Opening TGA's? (https://www.linuxquestions.org/questions/programming-9/opening-tgas-141401/)

drdroid 02-02-2004 11:45 AM

Opening TGA's?
 
Hey, I haven't been around in a while soooo. Anyone know of any common functions for opening and applying TGA's to textures? I've been searching around but the best I can find is in German ;) And I can't read German... French... But not German :rolleyes: The irony.

wapcaplet 02-02-2004 12:53 PM

It sorta depends on what language you're using and what APIs and other libraries you have available...

synna 02-02-2004 12:55 PM

Personaly I use OpenIL, to do all the job. OpenIL is cross-plateform library for loading, saving etc... image files. Many file formats are supported and it can be used with OpenGL. you can find it here:

http://openil.sourceforge.net

Otherwise try to check http://nehe.gamedev.net I'm quite sure there's a tutorial about TGA loading (Maybe only for M$).

deiussum 02-03-2004 08:25 AM

The TGA format is actually a pretty easy one to write your own loader for, if you are so inclined. Just go to http://www.wotsit.org and check out the specification. Or as has already been said, you can find a third party library like OpenIL.

drdroid 02-03-2004 05:03 PM

Right, sorry, I forgot to mention I'm using opengl... Thanks for the replies.


All times are GMT -5. The time now is 11:32 AM.