#58931 - ventilo - Thu Oct 27, 2005 11:48 am
Hi everybody,
Sorry, I'm a noob so it is probably a dumb question, but.... I cannot see the way for multiple backgrounds.... using mode 5, I set the following:
videoSetMode(MODE_5_2D | DISPLAY_SPR_1D_LAYOUT | DISPLAY_SPR_ACTIVE | DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE);
vramSetBankA(VRAM_A_MAIN_BG_0x6000000);
vramSetBankB(VRAM_B_MAIN_BG_0x6020000);
vramSetBankC(VRAM_C_SUB_BG);
vramSetBankD(VRAM_D_LCD);
vramSetBankE(VRAM_E_MAIN_SPRITE);
BG2_CR = BG_BMP16_256x256 | BG_BMP_BASE(0) | BG_PRIORITY(1);
BG3_CR = BG_BMP16_256x256 | BG_BMP_BASE(16 /* times 16k */) | BG_PRIORITY(2);
then if I write bitmaps to BG_GFX or to BG_BMP_RAM(0) I see them, however if I write bitmaps to BG_BMP_RAM(16) I do not see anything
Please can you explain how to write to either background ? How to display both ? which is rendered "on top" of the other ? does it depend on bg priority ?
Ventilo
_________________
Firstname's Y.A.N.N..... yet another NDS noob :o)
Sorry, I'm a noob so it is probably a dumb question, but.... I cannot see the way for multiple backgrounds.... using mode 5, I set the following:
videoSetMode(MODE_5_2D | DISPLAY_SPR_1D_LAYOUT | DISPLAY_SPR_ACTIVE | DISPLAY_BG2_ACTIVE | DISPLAY_BG3_ACTIVE);
vramSetBankA(VRAM_A_MAIN_BG_0x6000000);
vramSetBankB(VRAM_B_MAIN_BG_0x6020000);
vramSetBankC(VRAM_C_SUB_BG);
vramSetBankD(VRAM_D_LCD);
vramSetBankE(VRAM_E_MAIN_SPRITE);
BG2_CR = BG_BMP16_256x256 | BG_BMP_BASE(0) | BG_PRIORITY(1);
BG3_CR = BG_BMP16_256x256 | BG_BMP_BASE(16 /* times 16k */) | BG_PRIORITY(2);
then if I write bitmaps to BG_GFX or to BG_BMP_RAM(0) I see them, however if I write bitmaps to BG_BMP_RAM(16) I do not see anything
Please can you explain how to write to either background ? How to display both ? which is rendered "on top" of the other ? does it depend on bg priority ?
Ventilo
_________________
Firstname's Y.A.N.N..... yet another NDS noob :o)