#131276 - snowsquirrel - Wed Jun 13, 2007 3:37 pm
Can I enable/disable bg's on the fly.
i.e.,
Should this work?
i.e.,
Code: |
static uint32 videoGetMode() { return DISPLAY_CR; } videoSetMode( MODE_0_2D | DISPLAY_BG3_ACTIVE ); BG3_CR = DISPLAY_CR | BG_COLOR_256 | BG_MAP_BASE(0) | BG_TILE_BASE(1) | BG_PRIORITY(3) ; // ... //much later unit32 mode = videoGetMode(); mode |= DISPLAY_BG2_ACTIVE; videoSetMode( mode ); BG3_CR = DISPLAY_CR | BG_COLOR_256 | BG_MAP_BASE(1) | BG_TILE_BASE(2) | BG_PRIORITY(2) ; |
Should this work?