This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Questions about loading TGAs...


Questions about loading TGAs...

Postby stefanminning » Dec 8, 2001 @ 4:20pm

Hi all,<br><br>having worked through the tutorials I'm now trying to set up my own little project; however, being rather new to PPC development in C++, I'm experiencing some trouble with EasyCE.<br><br>1. What I want to do seems rather simple, but I can't quite figure it out: I'd like to load a TGA which is smaller than 240x320 and tile it on the canvas. Whatever I tried didn't work as the images' height and width would always be 'overlooked' and the image would just draw 3 lines of 240 pixels instead of the intended 24x30 image!<br>2. Somewhat related to the above: How can I load a small TGA (say 30x30) and then draw it at a specific position on the canvas?<br><br>Any help would be appreciated!<br><br>Thanks,<br>Stefan
stefanminning
pm Member
 
Posts: 2
Joined: Dec 8, 2001 @ 4:20pm


Re: Questions about loading TGAs...

Postby Ian F » Dec 9, 2001 @ 6:11am

Hello Stefan<br><br>First are you happy that your targa file is the same resolution as EasyCE requires? I don't use EasyCE but I do load Targa files & they are as easy as graphics formats come so you must have a basic mistake somewhere<br><br>Also if you can debug by writing values to the screen using the built in print feature in EasyCE to see what's actually in your X & Y variables.<br><br>Hope this helps you start the debug process<br><br>Ian
Ian F
 


Re: Questions about loading TGAs...

Postby Phantom » Dec 9, 2001 @ 8:41am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Re: Questions about loading TGAs...

Postby stefanminning » Dec 9, 2001 @ 10:00am

stefanminning
pm Member
 
Posts: 2
Joined: Dec 8, 2001 @ 4:20pm


Re: Questions about loading TGAs...

Postby Zensunni » Dec 12, 2001 @ 10:33pm

when i read about the dangers of drinking, i stopped reading...
Zensunni
pm Member
 
Posts: 55
Joined: Dec 12, 2001 @ 10:26pm


Re: Questions about loading TGAs...

Postby sillycat » Dec 13, 2001 @ 4:11am

i'm a cat, i type on four feet.
sillycat
pm Member
 
Posts: 14
Joined: Dec 11, 2001 @ 11:29pm


Re: Questions about loading TGAs...

Postby Phantom » Dec 13, 2001 @ 5:43am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

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 post attachments in this forum