gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Displaying an image full-screen in the GBA?

#85243 - Kixdemp - Sun May 28, 2006 4:20 am

Hello everyone! :D

I've tried many things to get this done... I've tried using BMP and PNG, resizing the image to GBA's screen size, using different code options... NOTHING WORKS!! Can anyone give me some sample code to do this? Or, a tutorial on GBA programming (SGADE and devkitARM)? The Boulder Bombers Advance doesn't show how to use bitmap (0) mode, and that's the only tutorial Google yells out... Can anyone help me? Thanks! ;)
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald

#85245 - tepples - Sun May 28, 2006 4:54 am

Try freemirror from my GBA page. It's pretty old, so it might need a few updates to the build process to work on devkitARM (try using arm-elf-gcc each time, and use -specs=gba_mb.specs at the link phase).

And no, mode 0 is not a "bitmap" mode as most people understand the term. The "bitmap" modes of the GBA are the extended rotation modes (3 to 5), which do not use tiles.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#85253 - Kixdemp - Sun May 28, 2006 5:26 am

Hmm... I was looking for SGADE code, as that's a lot easier... Thanks! ;-)

[edit]Hold on a second... I've been to your page before, and I played your "Tetanus On Drugs" game! I cracked up at that! :-D[/edit]
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald