forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TGA Picture Display?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
uber0ne



Joined: 14 Jun 2006
Posts: 4

PostPosted: Mon Jul 10, 2006 6:38 am    Post subject: TGA Picture Display? Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website AIM Address
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Mon Jul 10, 2006 8:23 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Mon Jul 10, 2006 8:45 am    Post subject: Reply with quote

TGA is a very easy format to parse
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
LarryTM



Joined: 04 Jul 2006
Posts: 30

PostPosted: Mon Jul 10, 2006 8:21 pm    Post subject: Reply with quote

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/format/tga/fichiers/tga_specs.pdf

/lar
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group