#119539 - krucraft - Sat Feb 24, 2007 2:48 am
Hi, I am having trouble getting my graphics on the bottom screen. I originally had my 3D on the top screen and text on the bottom screen. I tried to change everything so that my 3D is on the bottom screen and text is on the top screen. I successfully put the text on the top screen but nothing is displayed on the bottom screen.
So far my code is as follows:
Can anyone see what I am doing wrong?
Thanks in advance.
So far my code is as follows:
Code: |
// Setup the top screen for text vramSetMainBanks( VRAM_A_MAIN_SPRITE, //A and B maped consecutivly as sprite memory VRAM_B_MAIN_SPRITE, //this gives us 256KB which is the max VRAM_C_MAIN_BG_0x6000000, //map C to background memory VRAM_D_LCD //not using D ); videoSetMode(MODE_0_2D | DISPLAY_BG0_ACTIVE); //bg 0 will be used to print text BG0_CR = BG_MAP_BASE(31);//use bg0 for the text BG_PALETTE[255] = RGB15(31,31,31); //by default font will be rendered with color 255 // set up bottom screen for 3D videoSetModeSub(MODE_0_3D); //consoleInit() is a lot more flexible but this gets you up and running quick consoleInitDefault((u16*)SCREEN_BASE_BLOCK(31), (u16*)CHAR_BASE_BLOCK(0), 16); |
Can anyone see what I am doing wrong?
Thanks in advance.