TGA Picture Display?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
uber0ne
Posts: 4
Joined: Wed Jun 14, 2006 4:23 pm
Contact:

TGA Picture Display?

Post by uber0ne »

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?
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

Post by sg57 »

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 :)
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

TGA is a very easy format to parse
Shoot Pixels Not People!
Makeshift Development
LarryTM
Posts: 30
Joined: Tue Jul 04, 2006 4:05 am
Contact:

Post by LarryTM »

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
Post Reply