![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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, ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() My name is Mud
|
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.. |
|
|
|
|
|
#3 | |
![]() ![]() Developer
|
Quote:
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 |
|
|
|
|
![]() |
| Tags |
| background , image |
| Thread Tools | |
|
|