struct OAM_DATA
Attributes zero through two copied to OAM, plus the halfword after them.
Declared in window_sprite.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | y : 8 | screen pixels |
Uint16 | affineMode : 2 | OBJ_AFFINE, and OBJ_DOUBLE_SIZE to turn it without clipping |
Uint16 | objectMode : 2 | an SPR_MODE |
Uint16 | mosaic : 1 | |
Uint16 | fullColor : 1 | 256 colours instead of a 16-colour palette |
Uint16 | shape : 2 | square, wide or tall, as the OBJ_SIZE_ macros |
Uint16 | x : 9 | screen pixels |
Uint16 | matrix : 5 | affine matrix; for a plain sprite, OBJ_HFLIP and OBJ_VFLIP bits |
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 BGs of the same or a larger priority number |
Uint16 | palette : 4 | 16-colour palette |
Uint16 | high |
Description
Attributes zero through two copied to OAM, plus the halfword after them.
struct OAM_DATA
Definition at line 48 of file window_sprite.h.
Fields in detail
y
Uint16 y : 8
screen pixels
affineMode
Uint16 affineMode : 2
OBJ_AFFINE, and OBJ_DOUBLE_SIZE to turn it
without clipping
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
square, wide or tall, as the OBJ_SIZE_ macros
x
Uint16 x : 9
screen pixels
matrix
Uint16 matrix : 5
affine matrix; for a plain sprite, OBJ_HFLIP and
OBJ_VFLIP bits
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 BGs of the same or a larger priority number
palette
Uint16 palette : 4
16-colour palette
high
Uint16 high