#121653 - alekmaul - Tue Mar 13, 2007 7:53 pm
Hello everyone !
I request your help because I have a little pb with my last try to write an emulator ...
I want to use 2 ext bg but I can't have a transparent color, only the BG with the highest priority is display, do you know how to setup them to use transparent EXT BGs.
Here is my init code of my BGs :
Also , my code works fine with Dualis but not with no$gba (the best emulator ?)
How, i forgot that : it is for a Ghost 'n goblins arcade emulator :D !
I request your help because I have a little pb with my last try to write an emulator ...
I want to use 2 ext bg but I can't have a transparent color, only the BG with the highest priority is display, do you know how to setup them to use transparent EXT BGs.
Here is my init code of my BGs :
Code: |
void BitmapInitArcadeMode(void) { #define SCRGNGH 234 // Init graphic mode vramSetMainBanks( VRAM_A_MAIN_BG_0x6000000, VRAM_B_MAIN_BG_0x6020000, VRAM_C_SUB_BG_0x6200000 , VRAM_D_MAIN_BG_0x6040000 ); vramSetBankE(VRAM_E_MAIN_SPRITE); videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE | DISPLAY_BG2_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_ACTIVE ); BG3_CR = BG_BMP8_512x512 | BG_BMP_BASE(0) | BG_PRIORITY(2) | BG_WRAP_ON; BG3_XDX = 1 << 8; BG3_XDY = 0; BG3_YDX = 0; BG3_YDY = ((SCRGNGH / 192) << 8) | ((SCRGNGH % 192) ) ; BG3_CX = 0; BG3_CY = 0; BG2_CR = BG_BMP8_256x256 | BG_BMP_BASE(16) | BG_PRIORITY(0); BG2_XDX = 1 << 8; BG2_XDY = 0; BG2_YDX = 0; BG2_YDY = ((SCRGNGH / 192) << 8) | ((SCRGNGH % 192) ) ; BG2_CX = 0; BG2_CY = 0; } |
Also , my code works fine with Dualis but not with no$gba (the best emulator ?)
How, i forgot that : it is for a Ghost 'n goblins arcade emulator :D !