OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
panel.h
Go to the documentation of this file.
1
5
66#ifndef SNES_PANEL_H
67#define SNES_PANEL_H
68
69#include <snes/types.h>
70
93
102void panelInit(const Panel *p);
103
119void panelDraw(const Panel *p, u8 x, u8 y, u8 w, u8 h);
120
132void panelClear(const Panel *p, u8 x, u8 y, u8 w, u8 h);
133
147void panelPut(const Panel *p, u8 x, u8 y, u16 tile);
148
166void panelFlush(const Panel *p);
167
168#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:85
u16 * map
Definition panel.h:86
u8 stride
Definition panel.h:89
u8 palette
Definition panel.h:90
u16 vram_addr
Definition panel.h:87
u16 base_tile
Definition panel.h:88
u8 priority
Definition panel.h:91
OpenSNES Standard Types.