Skip to Content
The Alchemy Project

union OAM_ATTR2_WORD

A sprite's OAM attribute 2 (tile index, priority and palette) and the halfword after it, as one word or as fields.

Declared in window_sprite.h.

Fields

NameDescription
Uint32value
struct { unsigned shortindex, priority, palette, high, bits : 10; unsigned short priority : 2; unsigned short palette : 4; Uint16 high; } bits
struct { Uint16low, high, half ; Uint16 high; } half

Description

A sprite's OAM attribute 2 (tile index, priority and palette) and the halfword after it, as one word or as fields.

union OAM_ATTR2_WORD

Definition at line 28 of file window_sprite.h.

Fields in detail

value

Uint32 value

index, priority, palette, high, bits

struct { unsigned short index : 10; unsigned short priority : 2; unsigned short palette : 4; Uint16 high; } bits

low, high, half

struct { Uint16 low; Uint16 high; } half