TGA Picture Display?
TGA Picture Display?
The eLoader Displays a .tga file for the background what lib would i use to do this? or do i just use mytgafile = loadImage("./images/blank.tga"); and then blit the image if so what librarys do i include?
1. eLoader most likely has a TGALoader source file from FileAssistant.
2. You cannot use the Portable Network Graphics Library to load a TGA image as it will read the pixels placement/bytes wrong, or 90% of the time, return an error saying what it couldnt do.
I suggest getting hte Fileassisnt source for all your 2d needs :)
2. You cannot use the Portable Network Graphics Library to load a TGA image as it will read the pixels placement/bytes wrong, or 90% of the time, return an error saying what it couldnt do.
I suggest getting hte Fileassisnt source for all your 2d needs :)
Uncompressed TGA image is just a raw image with specific header contains such data, like resolution, bpp, etc.
Here's the description of tga file :
http://tfcduke.developpez.com/tutoriel/ ... _specs.pdf
/lar
Here's the description of tga file :
http://tfcduke.developpez.com/tutoriel/ ... _specs.pdf
/lar