Alchemy
Loading...
Searching...
No Matches

scroll.h File Reference

The display scroll work, the HBlank scroll work and its wave. More...

Go to the source code of this file.

Data Structures

struct  DisplayScrollWork
 The wavy background's work: two pages of BG1 to BG3 scroll offsets for each of the 160 scanlines, and the sine wave that bends them on each axis. More...

Functions

 STATIC_ASSERT (sizeof(struct DisplayScrollWork)==0xf20)
 STATIC_ASSERT (offsetof(struct DisplayScrollWork, page)==0xf00)
 STATIC_ASSERT (offsetof(struct DisplayScrollWork, freqX)==0xf08)

Variables

struct DisplayScrollWork * gHBlankScrollWork
const s16 gDisplayScroll_WaveSine []
 Sine times 4096, 256 steps to a turn.

Detailed Description

The display scroll work, the HBlank scroll work and its wave.

Definition in file scroll.h.

Function Documentation

◆ STATIC_ASSERT() [1/3]

STATIC_ASSERT ( sizeof(struct DisplayScrollWork) = =0xf20)

◆ STATIC_ASSERT() [2/3]

STATIC_ASSERT ( offsetof(struct DisplayScrollWork, page) = =0xf00)

◆ STATIC_ASSERT() [3/3]

STATIC_ASSERT ( offsetof(struct DisplayScrollWork, freqX) = =0xf08)

Variable Documentation

◆ gHBlankScrollWork

◆ gDisplayScroll_WaveSine

const s16 gDisplayScroll_WaveSine[]
extern

Sine times 4096, 256 steps to a turn.

Definition at line 347 of file fxdata.c.

Referenced by DisplayScroll_BuildAndSwapHBlankPage(), and STATIC_ASSERT().