Alchemy
Loading...
Searching...
No Matches

battle_display.h File Reference

The battle camera and the presentation's transition, background and affine work. More...

Go to the source code of this file.

Data Structures

struct  BattleCamera
 The battle camera: its eye, the focus it turns about, and its pitch, yaw and distance. More...
struct  BattlePresentationTransition
 The battle background's work slot as the camera reads it: the yaw the camera eases toward and the frames left to ease it. More...
struct  BattlePresentationWork
 The effect updates its command while the presentation keeps animation state. More...
struct  BattleBackgroundView
 The battle background's work slot as the background code reads it: its display mode (2 draws it as an affine perspective plane). More...
struct  BattleAffine
 The battle background's affine parameters and reference point, copied whole to the BG2PA registers. More...
struct  BattleAffineHdma
 The battle background's scanline work in heap slot 10: two pages of per-line BG2CNT values, swapped each frame, and the affine parameters. More...

Functions

 STATIC_ASSERT (sizeof(struct BattleCamera)==0x4c)
 STATIC_ASSERT (offsetof(struct BattleCamera, pos)==0x0c)
 STATIC_ASSERT (offsetof(struct BattleCamera, followPos)==0x1c)
 STATIC_ASSERT (offsetof(struct BattleCamera, pitch)==0x34)
 STATIC_ASSERT (offsetof(struct BattleCamera, yaw)==0x36)
 STATIC_ASSERT (sizeof(struct BattlePresentationTransition)==0x20)
 STATIC_ASSERT (offsetof(struct BattlePresentationTransition, active)==0x10)
 STATIC_ASSERT (sizeof(struct BattlePresentationWork)==0x54)
 STATIC_ASSERT (offsetof(struct BattlePresentationWork, effect.actors)==0x24)
 STATIC_ASSERT (sizeof(struct BattleBackgroundView)==0x14)
 STATIC_ASSERT (offsetof(struct BattleBackgroundView, mode)==0x08)
 STATIC_ASSERT (sizeof(struct BattleAffineHdma)==0x2a0)
 STATIC_ASSERT (offsetof(struct BattleAffineHdma, affine)==0x10)
 STATIC_ASSERT (offsetof(struct BattleAffineHdma, lines)==0x20)

Variables

struct BattleCamera * gCameraWork

Detailed Description

The battle camera and the presentation's transition, background and affine work.

Definition in file battle_display.h.

Function Documentation

◆ STATIC_ASSERT() [1/14]

STATIC_ASSERT ( sizeof(struct BattleCamera) = =0x4c)

◆ STATIC_ASSERT() [2/14]

STATIC_ASSERT ( offsetof(struct BattleCamera, pos) = =0x0c)

◆ STATIC_ASSERT() [3/14]

STATIC_ASSERT ( offsetof(struct BattleCamera, followPos) = =0x1c)

◆ STATIC_ASSERT() [4/14]

STATIC_ASSERT ( offsetof(struct BattleCamera, pitch) = =0x34)

◆ STATIC_ASSERT() [5/14]

STATIC_ASSERT ( offsetof(struct BattleCamera, yaw) = =0x36)

◆ STATIC_ASSERT() [6/14]

STATIC_ASSERT ( sizeof(struct BattlePresentationTransition) = =0x20)

◆ STATIC_ASSERT() [7/14]

STATIC_ASSERT ( offsetof(struct BattlePresentationTransition, active) = =0x10)

◆ STATIC_ASSERT() [8/14]

STATIC_ASSERT ( sizeof(struct BattlePresentationWork) = =0x54)

◆ STATIC_ASSERT() [9/14]

STATIC_ASSERT ( offsetof(struct BattlePresentationWork, effect.actors) = =0x24)

◆ STATIC_ASSERT() [10/14]

STATIC_ASSERT ( sizeof(struct BattleBackgroundView) = =0x14)

◆ STATIC_ASSERT() [11/14]

STATIC_ASSERT ( offsetof(struct BattleBackgroundView, mode) = =0x08)

◆ STATIC_ASSERT() [12/14]

STATIC_ASSERT ( sizeof(struct BattleAffineHdma) = =0x2a0)

◆ STATIC_ASSERT() [13/14]

STATIC_ASSERT ( offsetof(struct BattleAffineHdma, affine) = =0x10)

◆ STATIC_ASSERT() [14/14]

STATIC_ASSERT ( offsetof(struct BattleAffineHdma, lines) = =0x20)

Variable Documentation

◆ gCameraWork