QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Background image?

This is a discussion on Background image? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; how would i go about displaying a png as the background inside my application? meaning everything else is on top, ...

Reply
 
LinkBack Thread Tools
Old 02-13-2006, 11:53 AM   #1

My name is Mud
 
Join Date: Dec 2005
Posts: 1,538
Trader Feedback: 0
Default Background image?

how would i go about displaying a png as the background inside my application? meaning everything else is on top, including other images / text.
edit: in C, not lua
__________________


Last edited by harleyg; 02-13-2006 at 12:36 PM..
hàrléyg² is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-13-2006, 02:36 PM   #2
 
Flatnick's Avatar
 
Join Date: Jan 2006
Posts: 22
Trader Feedback: 0
Default

Have a look at the 2 sticky posts. I think there should be your answer.
Flatnick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-14-2006, 12:44 PM   #3

Developer
 
Join Date: Oct 2005
Posts: 50
Trader Feedback: 0
Default background

Quote:
Originally Posted by harleyg
how would i go about displaying a png as the background inside my application? meaning everything else is on top, including other images / text.
edit: in C, not lua
In the PSP, there is used what's called "double buffering". You can display images a number of different ways.

You could display a background image, then flip the screen to the other buffer, draw on that and flip back to the original, redrawing the background again. This makes it appear as though one image is infront of the other. Games where figures, characters or other objects are animated work this way.

You could also draw the background image and then use a screen text function to add the text to either the current screen's buffer... or render it directly to the background image.

Either way, when done rendering you have to flip the screen and start all over. Nothing shows up on the screen until the screen is flipped. Think of it like someone drawing on a piece of paper infront of you. Until they flip it over and show you what's there, you can't see it. Works the same way.

Read the "Lesson #1", etc. tutorials to get a better handle on displaying things. It uses the graphics.c library if I remember correctly. It's pretty easy to use.

The idea of double-buffering is the toughest part to get used to. Once you get that idea in your mind, the rest isn't too bad.

David Beyer
dbeyer3069 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
background , image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 10:37 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us