Palette fades, the battle effect palette buffers and the colour channel curves. More...
Go to the source code of this file.
Data Structures | |
| struct | PaletteFade |
| A colour buffer for all 512 palette colours: the source palette, the shown and target colour channels, their steps, and two pages of packed colours. More... | |
| struct | BattleEffectBuffers |
| The colour buffer (heap block 32) that fades the BG and OBJ palettes: the source palette, the shown and target colour channels, their per-frame steps, and two pages of packed RGB555 colours queued each frame. More... | |
Enumerations | |
| enum | PaletteTransform { PALETTE_TRANSFORM_FROM_SOURCE = 0x8000 , PALETTE_TRANSFORM_PLAIN = 0x10000 , PALETTE_TRANSFORM_GREY = 0x10001 , PALETTE_TRANSFORM_SEPIA = 0x10002 , PALETTE_TRANSFORM_WARM = 0x10003 , PALETTE_TRANSFORM_MUTED = 0x10004 , PALETTE_TRANSFORM_PALE = 0x10005 , PALETTE_TRANSFORM_RED = 0x10006 , PALETTE_TRANSFORM_WARM2 = 0x10007 , PALETTE_TRANSFORM_FLAGS = 0x100000 , PALETTE_TRANSFORM_TINT = 0x200000 , PALETTE_TRANSFORM_BLEND = 0x400000 , PALETTE_TRANSFORM_SPLIT = 0x800000 } |
| A colour buffer's build mode: below 0x8000 one RGB555 colour for all. More... | |
Functions | |
| STATIC_ASSERT (sizeof(struct PaletteFade)==0x3004) | |
| STATIC_ASSERT (offsetof(struct PaletteFade, current)==0x400) | |
| STATIC_ASSERT (offsetof(struct PaletteFade, target)==0x1000) | |
| STATIC_ASSERT (offsetof(struct PaletteFade, delta)==0x1c00) | |
| STATIC_ASSERT (offsetof(struct PaletteFade, packed)==0x2800) | |
| STATIC_ASSERT (offsetof(struct PaletteFade, page)==0x3000) | |
| STATIC_ASSERT (sizeof(struct BattleEffectBuffers)==0x2a04) | |
| STATIC_ASSERT (offsetof(struct BattleEffectBuffers, current)==0x380) | |
| STATIC_ASSERT (offsetof(struct BattleEffectBuffers, target)==0xe00) | |
| STATIC_ASSERT (offsetof(struct BattleEffectBuffers, delta)==0x1880) | |
| STATIC_ASSERT (offsetof(struct BattleEffectBuffers, packed)==0x2300) | |
| STATIC_ASSERT (offsetof(struct BattleEffectBuffers, page)==0x2a00) | |
Variables | |
| u16 | gPalette_ChannelCurve [32] |
| Maps a channel (0..31) to a component (0..31 << 10). | |
| u16 | gPalette_ChannelCurveLight [32] |
| A brighter curve. | |
| u16 | gPalette_ChannelCurveContrast [32] |
| A high-contrast curve (25 and above are full). | |
Palette fades, the battle effect palette buffers and the colour channel curves.
Definition in file palbuf.h.
| enum PaletteTransform |
A colour buffer's build mode: below 0x8000 one RGB555 colour for all.
| STATIC_ASSERT | ( | sizeof(struct PaletteFade) | = =0x3004 | ) |
| STATIC_ASSERT | ( | offsetof(struct PaletteFade, current) | = =0x400 | ) |
| STATIC_ASSERT | ( | offsetof(struct PaletteFade, target) | = =0x1000 | ) |
| STATIC_ASSERT | ( | offsetof(struct PaletteFade, delta) | = =0x1c00 | ) |
| STATIC_ASSERT | ( | offsetof(struct PaletteFade, packed) | = =0x2800 | ) |
| STATIC_ASSERT | ( | offsetof(struct PaletteFade, page) | = =0x3000 | ) |
| STATIC_ASSERT | ( | sizeof(struct BattleEffectBuffers) | = =0x2a04 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleEffectBuffers, current) | = =0x380 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleEffectBuffers, target) | = =0xe00 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleEffectBuffers, delta) | = =0x1880 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleEffectBuffers, packed) | = =0x2300 | ) |
| STATIC_ASSERT | ( | offsetof(struct BattleEffectBuffers, page) | = =0x2a00 | ) |
|
extern |
Maps a channel (0..31) to a component (0..31 << 10).
Definition at line 1089 of file intro.c.
Referenced by Palette_Transform(), and STATIC_ASSERT().
|
extern |
A brighter curve.
Definition at line 1097 of file intro.c.
Referenced by Palette_Transform(), and STATIC_ASSERT().
|
extern |
A high-contrast curve (25 and above are full).
Definition at line 1105 of file intro.c.
Referenced by Palette_Transform(), and STATIC_ASSERT().