summaryrefslogtreecommitdiffstats
path: root/esp32/main/scrn.h
blob: e62aca6ddf7564741d934c890b6fdda5775b2280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef SCRN_H
#define SCRN_H

struct scrn {
	int width;
	int height;
	unsigned char *fb;
};

struct sprite {
	int width;
	int height;
	int offset_x;
	int offset_y;
	unsigned char *bmp;
};

void scrn_clear(struct scrn *sc);

void scrn_draw(struct scrn *sc, struct sprite *s);

#endif /* SCRN_H */