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.

Graphics > How is the background laid out in memory

#176921 - blessingta@hotmail.co.uk - Fri Oct 21, 2011 9:51 am

hi

How is the background memory laid out?
How many frames can you store within its buffer?

And is there a simple newbie guide code, to dmonstrate it?

#176924 - sverx - Fri Oct 21, 2011 1:50 pm

TONC is your friend: http://www.coranac.com/tonc/text/objbg.htm
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS / GBA|A DS Homebrewer's Diary

#176984 - blessingta@hotmail.co.uk - Wed Nov 16, 2011 5:03 pm

the guy doesn't seems to be using devkitpro, or more speciafically its naming conversion, is his code generally safe to compile? (Im a noob thats why im worried)

#176988 - elhobbs - Wed Nov 16, 2011 6:44 pm

yes, it may be a little out of date and might require some minor adjustments to compile.

#176992 - Cearn - Thu Nov 17, 2011 8:06 pm

elhobbs wrote:
yes, it may be a little out of date and might require some minor adjustments to compile.
I just noticed that I messed up of the links to grit in some of the advanced demos ^_^;;. With that fixed everything just compile just fine though.

blessingta@hotmail.co.uk wrote:
the guy doesn't seems to be using devkitpro, or more speciafically its naming conversion, is his code generally safe to compile? (Im a noob thats why im worried)

I think you may be mixing up a few things:

'devkitpro' is the vendor, 'devkitarm' is the toolchain contains all the tools that you need to build a GBA project (there are others, but they are very old). 'libgba' is a code library with a number of utility functions. Strictly speaking, it's not necessary to use that, other libraries exist as well. libtonc is an example of this.

#176993 - blessingta@hotmail.co.uk - Fri Nov 18, 2011 11:53 am

my lecturer will be using devkitpro & libgba, which is why it would be safe for me to use it too, plus again I've got less than 2weeks to get everything running.