struct SCREEN_TRANSITION_DISPLAY
The map grid state as a transition reads it: the display control bits the scene shows, and the two lines where the centre-line transition blanks the screen and shows it again, with the HBlank interrupt's copies of them.
Declared in display_transition.h.
Fields
| Name | Description | |
|---|---|---|
Sint32 * | origin | The map grid state's followed point, screen shake and treasure spots (MAP_GRID_SCROLL_STATE's); no transition reads them. |
Sint32 | shakeX, shakeY, shakeDecay , shakeY, shakeDecay | |
Uint8 * | markers | |
Uint16 | dispcnt | Display control bits ORed into DISPCNT; fdScreenTransitionHideBackgrounds clears those of backgrounds 1 to 3. |
Uint8 | viewState [234] | The rest of the map grid state, from wideTiles to the world map's window rows (WORLD_MAP_VIEW's windowTop); no transition reads it. |
Uint16 | firstLine | Scanlines: where the screen goes blank, below the screen (CENTER_LINE_HIDDEN_FIRST) while it is wholly shown. |
Uint16 | secondLine | Scanlines: where the screen shows again, CENTER_LINE_HIDDEN_SECOND while it is wholly shown. |
Uint16 | irqFirstLine | firstLine as the HBlank interrupt reads it |
Uint16 | irqSecondLine | secondLine as the HBlank interrupt reads it |
Uint16 | irqPhase | Where the HBlank interrupt is in the tick, an enum SCREEN_TRANSITION_IRQ_PHASE. |
Description
The map grid state as a transition reads it: the display control bits the scene shows, and the two lines where the centre-line transition blanks the screen and shows it again, with the HBlank interrupt's copies of them.
struct SCREEN_TRANSITION_DISPLAY
Referenced by fdScreenTransitionHideBackgrounds(), fdScreenTransitionStart(), fdScreenTransitionUpdate(), fdScreenTransitionUpdateFromCenter() and fdScreenTransitionUpdateScanline().
Definition at line 16 of file display_transition.h.
Fields in detail
origin
Sint32 *origin
The map grid state's followed point, screen shake and treasure spots
(MAP_GRID_SCROLL_STATE's); no transition reads them.
shakeX, shakeY, shakeDecay
Sint32 shakeX, shakeY, shakeDecay
markers
Uint8 *markers
dispcnt
Uint16 dispcnt
Display control bits ORed into DISPCNT;
fdScreenTransitionHideBackgrounds clears those of
backgrounds 1 to 3.
viewState
Uint8 viewState[234]
The rest of the map grid state, from wideTiles to
the world map's window rows (WORLD_MAP_VIEW's
windowTop); no transition reads it.
firstLine
Uint16 firstLine
Scanlines: where the screen goes blank, below the
screen (CENTER_LINE_HIDDEN_FIRST) while it is
wholly shown.
secondLine
Uint16 secondLine
Scanlines: where the screen shows again,
CENTER_LINE_HIDDEN_SECOND while it is wholly
shown.
irqFirstLine
Uint16 irqFirstLine
firstLine as the HBlank interrupt reads it
irqSecondLine
Uint16 irqSecondLine
secondLine as the HBlank interrupt reads it
irqPhase
Uint16 irqPhase
Where the HBlank interrupt is in the tick, an
enum SCREEN_TRANSITION_IRQ_PHASE.