2020-12-04 15:40:24 +00:00
|
|
|
// The intended palette for a boss, with no effects applied.
|
|
|
|
extern Palette4 boss_palette;
|
|
|
|
|
|
|
|
#define boss_palette_snap_inlined() \
|
|
|
|
for(int col = 0; col < COLOR_COUNT; col++) { \
|
2021-05-16 20:40:36 +00:00
|
|
|
for(int comp = 0; comp < COMPONENT_COUNT; comp++) { \
|
2020-12-04 15:40:24 +00:00
|
|
|
boss_palette[col].v[comp] = z_Palettes[col].v[comp]; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
// Overwrites [boss_palette] with [z_Palettes].
|
|
|
|
void boss_palette_snap(void);
|
|
|
|
|
|
|
|
// Sets both [z_Palettes] and the hardware palette to [boss_palette].
|
|
|
|
void boss_palette_show(void);
|