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.
|
It sorta depends on what language you're using and what APIs and other libraries you have available...
|
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$). |
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.
|
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. |