Optimized affine background HBLANK effect - improved but still not good enough

This commit is contained in:
MeirGavish
2025-08-12 00:06:04 +03:00
parent af2358f487
commit b043b82d3f
2 changed files with 43 additions and 27 deletions
+3 -2
View File
@@ -7,10 +7,11 @@
#define AFFINE_BG_PAL_LEN 5
#define AFFINE_BG_PB (PAL_ROW_LEN * 15) // This isn't really a palette bank, just the starting index of the palette
#define AFFINE_BG_IDX 2 // The index of BGCNT register etc.
void affine_background_init();
void affine_background_hblank();
void affine_background_update();
IWRAM_CODE void affine_background_hblank();
IWRAM_CODE void affine_background_update();
void affine_background_set_color(COLOR color);
// Must be called with an array of size at least AFFINE_BG_PAL_LEN
void affine_background_load_palette(const u16 *src);