unsigned short u16
16-bit unsigned integer (0 to 65535)
Definition types.h:53
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
void panelPut(const Panel *p, u8 x, u8 y, u16 tile)
Put one tile of the sheet into the map, with the layer's palette and priority.
void panelInit(const Panel *p)
Blank the whole tilemap. Call once before the first draw.
void panelDraw(const Panel *p, u8 x, u8 y, u8 w, u8 h)
Stamp a bordered box of w x h tiles at (x, y).
void panelClear(const Panel *p, u8 x, u8 y, u8 w, u8 h)
Blank a rectangle of the tilemap, leaving the rest alone.
void panelFlush(const Panel *p)
Upload the tilemap to VRAM under forced blank.
A 9-slice panel layer: one BG tilemap and the sheet to stamp from.
Definition panel.h:80
u16 * map
Definition panel.h:81
u8 stride
Definition panel.h:84
u8 palette
Definition panel.h:85
u16 vram_addr
Definition panel.h:82
u16 base_tile
Definition panel.h:83
u8 priority
Definition panel.h:86