[SDL] tga file loading ...

Mattias Engdegård f91-men at nada.kth.se
Fri Apr 28 09:24:24 PDT 2000

>Does anyone here know how to load a tga into a SDL surface? 
>the sdl image lib doesnt seem to have it ...

Having written a number of TGA encoders/decoders, I can assure you it is
nearly trivial since it is a *very* simple format (even if you allow RLE
encoding). The only major drawback is its lack of magic number in the header,
so you have to identify them by the file suffix.

More information about the SDL mailing list