Skip to Content
The Alchemy Project

struct OAM_DATA

Attributes zero through two as the hardware lays them out in OAM, plus the halfword after them.

Declared in window_sprite.h.

Fields

NameDescription
Uint16y : 8screen pixels
Uint16affineMode : 20 plain, 1 affine, 3 affine at double size
Uint16objectMode : 2an SPR_MODE
Uint16mosaic : 1
Uint16fullColor : 1256 colours instead of a 16-colour palette
Uint16shape : 20 square, 1 wide, 2 tall
Uint16x : 9screen pixels
Uint16matrix : 5affine matrix; plain sprite: 8 mirrors left-right, 16 top-bottom
Uint16size : 2with shape, the sprite's size
Uint16index : 10first sprite tile in VRAM
Uint16priority : 20 to 3: drawn over backgrounds of the same or larger priority
Uint16palette : 416-colour palette
Uint16high

Description

Attributes zero through two as the hardware lays them out in OAM, plus the halfword after them.

struct OAM_DATA

Definition at line 50 of file window_sprite.h.

Fields in detail

y

Uint16 y : 8

screen pixels

affineMode

Uint16 affineMode : 2

0 plain, 1 affine, 3 affine at double size

objectMode

Uint16 objectMode : 2

an SPR_MODE

mosaic

Uint16 mosaic : 1

fullColor

Uint16 fullColor : 1

256 colours instead of a 16-colour palette

shape

Uint16 shape : 2

0 square, 1 wide, 2 tall

x

Uint16 x : 9

screen pixels

matrix

Uint16 matrix : 5

affine matrix; plain sprite: 8 mirrors left-right, 16 top-bottom

size

Uint16 size : 2

with shape, the sprite's size

index

Uint16 index : 10

first sprite tile in VRAM

priority

Uint16 priority : 2

0 to 3: drawn over backgrounds of the same or larger priority

palette

Uint16 palette : 4

16-colour palette

high

Uint16 high