Alchemy
Loading...
Searching...
No Matches

DisplayTransitionWindow Struct Reference

The map work's display fields that transitions use: its display control bits and the lines where the centre-line transition shows and hides the screen, with the VCount interrupt's copies and phase. More...

#include <graphics/display_transition.h>

Data Fields

u32 unk000 [5]
 map work fields no transition names
u16 dispcnt
 Display control bits ORed into DISPCNT; DisplayState_ClearFlags clears those of backgrounds 1 to 3.
u8 unk016 [0xea]
 map work fields no transition names
u16 firstLine
 scanlines: where the screen is hidden, 200 when it is not
u16 secondLine
 scanlines: where the screen is shown again, 250 when it is not hidden
u16 irqFirstLine
 scanlines; firstLine as the VCount interrupt reads it
u16 irqSecondLine
 scanlines; secondLine as the VCount interrupt reads it
u16 irqPhase
 The VCount interrupt's phase: 0 waiting for a line above 159, 1 neither line passed, 2 the first passed, 3 the second passed first, 9 done.

Detailed Description

The map work's display fields that transitions use: its display control bits and the lines where the centre-line transition shows and hides the screen, with the VCount interrupt's copies and phase.

Definition at line 36 of file display_transition.h.

Field Documentation

◆ unk000

u32 DisplayTransitionWindow::unk000[5]

map work fields no transition names

Definition at line 37 of file display_transition.h.

◆ dispcnt

u16 DisplayTransitionWindow::dispcnt

Display control bits ORed into DISPCNT; DisplayState_ClearFlags clears those of backgrounds 1 to 3.

Definition at line 40 of file display_transition.h.

Referenced by DisplayState_ClearFlags(), and DisplayTransition_Start().

◆ unk016

u8 DisplayTransitionWindow::unk016[0xea]

map work fields no transition names

Definition at line 41 of file display_transition.h.

◆ firstLine

u16 DisplayTransitionWindow::firstLine

scanlines: where the screen is hidden, 200 when it is not

Definition at line 43 of file display_transition.h.

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

◆ secondLine

u16 DisplayTransitionWindow::secondLine

scanlines: where the screen is shown again, 250 when it is not hidden

Definition at line 45 of file display_transition.h.

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

◆ irqFirstLine

u16 DisplayTransitionWindow::irqFirstLine

scanlines; firstLine as the VCount interrupt reads it

Definition at line 46 of file display_transition.h.

Referenced by DisplayTransition_UpdateScanline().

◆ irqSecondLine

u16 DisplayTransitionWindow::irqSecondLine

scanlines; secondLine as the VCount interrupt reads it

Definition at line 47 of file display_transition.h.

Referenced by DisplayTransition_UpdateScanline().

◆ irqPhase

u16 DisplayTransitionWindow::irqPhase

The VCount interrupt's phase: 0 waiting for a line above 159, 1 neither line passed, 2 the first passed, 3 the second passed first, 9 done.

Definition at line 50 of file display_transition.h.

Referenced by DisplayTransition_UpdateScanline().