Skip to Content
The Alchemy Project

struct BATTLE_AFFINE_HDMA

The battle background's scanline state, in HEAP_SLOT_BATTLE_SCANLINES: two pages of per-line BG2CNT values, swapped each tick, and the affine parameters.

Declared in battle_camera.h.

Fields

NameDescription
Uint32pageThe page of lines shown; the other one is built.
Uint8unused [12]No code names it.
BATTLE_AFFINEaffine
Uint16lines [2][160]Each scanline's BG2CNT, one page per tick: which half of the picture a line shows, or the plane off, with BGCNT_WRAP at a zoom of 1 or more.

Description

The battle background's scanline state, in HEAP_SLOT_BATTLE_SCANLINES: two pages of per-line BG2CNT values, swapped each tick, and the affine parameters.

struct BATTLE_AFFINE_HDMA

Referenced by btBackgroundInit(), btBackgroundShowZoomedPage() and btCameraSetRange().

Definition at line 122 of file battle_camera.h.

Fields in detail

page

Uint32 page

The page of lines shown; the other one is built.

unused

Uint8 unused[12]

No code names it.

affine

BATTLE_AFFINE affine

lines

Uint16 lines[2][160]

Each scanline's BG2CNT, one page per tick: which half of the picture a line shows, or the plane off, with BGCNT_WRAP at a zoom of 1 or more.