summaryrefslogtreecommitdiffstats
path: root/esp32/main/scrn.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-11-01 09:46:52 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-11-01 09:46:52 +0800
commit9f938ab8ba5af561bd44dbc7142f338ce317a01a (patch)
tree7104ce2ac9456c5895f752eff26bad31f8436978 /esp32/main/scrn.h
downloadetlas-9f938ab8ba5af561bd44dbc7142f338ce317a01a.tar.gz
Etlas project.
Diffstat (limited to 'esp32/main/scrn.h')
-rw-r--r--esp32/main/scrn.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/esp32/main/scrn.h b/esp32/main/scrn.h
new file mode 100644
index 0000000..e62aca6
--- /dev/null
+++ b/esp32/main/scrn.h
@@ -0,0 +1,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 */