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
| Name | Description | |
|---|---|---|
Uint16 | y : 8 | screen pixels |
Uint16 | affineMode : 2 | 0 plain, 1 affine, 3 affine at double size |
Uint16 | objectMode : 2 | an SPR_MODE |
Uint16 | mosaic : 1 | |
Uint16 | fullColor : 1 | 256 colours instead of a 16-colour palette |
Uint16 | shape : 2 | 0 square, 1 wide, 2 tall |
Uint16 | x : 9 | screen pixels |
Uint16 | matrix : 5 | affine matrix; plain sprite: 8 mirrors left-right, 16 top-bottom |
Uint16 | size : 2 | with shape, the sprite's size |
Uint16 | index : 10 | first sprite tile in VRAM |
Uint16 | priority : 2 | 0 to 3: drawn over backgrounds of the same or larger priority |
Uint16 | palette : 4 | 16-colour palette |
Uint16 | high |
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