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.

DS development > New background functions

#166043 - iainprice - Sun Jan 18, 2009 4:53 pm

Having problems with these new function type things.....

You used to be able to use GFX[233]=0xFFFF to colour a section of screen, but if you use many layers how do you use the gfx_ptr to point to the layer you want to adjust?

#166044 - dovoto - Sun Jan 18, 2009 6:41 pm

You can get a pointer to the grahics for a background with bgGetGfxPtr(id)
Http://Libnds.devkitpro.org
_________________
www.drunkencoders.com

#166046 - iainprice - Sun Jan 18, 2009 6:46 pm

How do you assign a part of a layer with a colour?

Just
ptr = bgGetGfxPtr(id);
ptr[??] = 0x????;