Skip to Content
The Alchemy Project

struct PREVIEW_SPR

The OAM entry of a window sprite (from WINDOW_SPR.link on), as the Djinn preview places its stat arrows (mnDjinnMenuDrawStatArrow).

Declared in djinn_preview.h.

Fields

NameDescription
Uint32linkThe output's depth-queue link (WINDOW_SPR.link).
union { Uint32word, y, flags, x, high, bits, attributes ; struct { unsigned y : 8; unsigned flags : 8; unsigned x : 9; unsigned high : 7; } bits; } attributesOAM attributes 0 and 1, written whole first: a 16x16
OAM_ATTR2_WORDtileOAM attribute 2: the arrow's VRAM tile.

Description

The OAM entry of a window sprite (from WINDOW_SPR.link on), as the Djinn preview places its stat arrows (mnDjinnMenuDrawStatArrow).

struct PREVIEW_SPR

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 12 of file djinn_preview.h.

Fields in detail

Uint32 link

The output's depth-queue link (WINDOW_SPR.link).

word, y, flags, x, high, bits, attributes

union { Uint32 word; struct { unsigned y : 8; unsigned flags : 8; unsigned x : 9; unsigned high : 7; } bits; } attributes

OAM attributes 0 and 1, written whole first: a 16x16

semi-transparent sprite.

screen pixels

attribute 0's high byte: its mode and shape

screen pixels

attribute 1's flip and size bits: 16 by 16

tile

OAM_ATTR2_WORD tile

OAM attribute 2: the arrow's VRAM tile.