#128786 - kalus - Tue May 15, 2007 7:52 am
Ok, i have got 3D on top screen, and a 2D hud on bottom screen. Id like to use console text ontop of the HUD, but cant quite get it to work... is this a stupid idea, or should it work, and ive made a stupid mistake? Code below, please help!
Code: |
powerON(POWER_ALL);
//put 3D on top lcdMainOnTop(); // Setup the Main screen for 3D videoSetMode(MODE_0_3D); videoSetModeSub(MODE_5_2D | DISPLAY_BG3_ACTIVE); //sub bg 0 will be used to print text vramSetMainBanks( VRAM_A_MAIN_BG_0x06000000, VRAM_B_TEXTURE, VRAM_C_SUB_BG , VRAM_D_LCD); SUB_BG0_CR = BG_MAP_BASE(31); BG_PALETTE_SUB[255] = RGB15(31,31,31);//by default font will be rendered with color 255 consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); SUB_BG3_CR = BG_BMP8_256x256; SUB_BG3_XDX = 1 << 8; SUB_BG3_XDY = 0; SUB_BG3_YDX = 0; SUB_BG3_YDY = 1 << 8; dmaCopy(hud_texture_bin, BG_GFX_SUB, 256*256); dmaCopy(palette_bin, BG_PALETTE_SUB, 256*2); |