Alchemy
Loading...
Searching...
No Matches

DisplayTransitionFrame Struct Reference

The display transition state as the centre-line transition and the dissolve read it: the dissolve's tile pixels and the transition's progress. More...

#include <graphics/display_transition.h>

Data Fields

u8 unk000 [0x508]
 DisplayTransitionState's pages; not named here.
u8 paletteNibbles [0x22]
 DisplayTransitionState's solidTile, as 4-bit pixels two a byte: the dissolve sets two more each frame and copies the tile to BG character block 0.
u16 value
 The progress, moved from start to end over duration frames: bit 5 says whether the dissolve fills or clears, the low 5 bits how far it is.
u8 unk52c [13]
 DisplayTransitionState's centreX to unk538; not named here.
u8 ditherToggle
 DisplayTransitionState's page: the dissolve flips it each frame and never reads it.
s8 start
 the value's first step
s8 end
 the value's last step
s8 duration
 frames; 0 when the value is not moving
s8 step
 frames

Detailed Description

The display transition state as the centre-line transition and the dissolve read it: the dissolve's tile pixels and the transition's progress.

Definition at line 13 of file display_transition.h.

Field Documentation

◆ unk000

u8 DisplayTransitionFrame::unk000[0x508]

DisplayTransitionState's pages; not named here.

Definition at line 14 of file display_transition.h.

◆ paletteNibbles

u8 DisplayTransitionFrame::paletteNibbles[0x22]

DisplayTransitionState's solidTile, as 4-bit pixels two a byte: the dissolve sets two more each frame and copies the tile to BG character block 0.

Definition at line 18 of file display_transition.h.

Referenced by DisplayTransition_UpdateFrame().

◆ value

u16 DisplayTransitionFrame::value

The progress, moved from start to end over duration frames: bit 5 says whether the dissolve fills or clears, the low 5 bits how far it is.

Definition at line 21 of file display_transition.h.

Referenced by DisplayTransition_Update(), DisplayTransition_UpdateFrame(), and DisplayTransition_UpdateFromCentre().

◆ unk52c

u8 DisplayTransitionFrame::unk52c[13]

DisplayTransitionState's centreX to unk538; not named here.

Definition at line 23 of file display_transition.h.

◆ ditherToggle

u8 DisplayTransitionFrame::ditherToggle

DisplayTransitionState's page: the dissolve flips it each frame and never reads it.

Definition at line 26 of file display_transition.h.

Referenced by DisplayTransition_UpdateFrame().

◆ start

s8 DisplayTransitionFrame::start

the value's first step

Definition at line 27 of file display_transition.h.

Referenced by DisplayTransition_Update(), DisplayTransition_UpdateFrame(), and DisplayTransition_UpdateFromCentre().

◆ end

s8 DisplayTransitionFrame::end

the value's last step

Definition at line 28 of file display_transition.h.

Referenced by DisplayTransition_Update(), DisplayTransition_UpdateFrame(), and DisplayTransition_UpdateFromCentre().

◆ duration

s8 DisplayTransitionFrame::duration

frames; 0 when the value is not moving

Definition at line 29 of file display_transition.h.

Referenced by DisplayTransition_Update(), DisplayTransition_UpdateFrame(), and DisplayTransition_UpdateFromCentre().

◆ step

s8 DisplayTransitionFrame::step