OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
panel.h
Go to the documentation of this file.
1
61#ifndef SNES_PANEL_H
62#define SNES_PANEL_H
63
64#include <snes/types.h>
65
88
97void panelInit(const Panel *p);
98
114void panelDraw(const Panel *p, u8 x, u8 y, u8 w, u8 h);
115
127void panelClear(const Panel *p, u8 x, u8 y, u8 w, u8 h);
128
142void panelPut(const Panel *p, u8 x, u8 y, u16 tile);
143
156void panelFlush(const Panel *p);
157
158#endif /* SNES_PANEL_H */
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
OpenSNES Standard Types.