aboutsummaryrefslogtreecommitdiff
path: root/include/graphics/drawer.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
committerChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
commit866a6ca0e749f4446b7fdc7579a6d553df85ec10 (patch)
treed259223d85c224d649c6c38675e99b155d50cf48 /include/graphics/drawer.h
parent3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (diff)
Moved includes to its own directory
Diffstat (limited to 'include/graphics/drawer.h')
-rw-r--r--include/graphics/drawer.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/graphics/drawer.h b/include/graphics/drawer.h
new file mode 100644
index 0000000..6d97163
--- /dev/null
+++ b/include/graphics/drawer.h
@@ -0,0 +1,27 @@
+#ifndef GRAPHICS_DRAWER_H
+#define GRAPHICS_DRAWER_H
+
+struct Drawer {
+ unsigned int x;
+ unsigned int y;
+};
+
+#ifndef GRAPHICS_DRAWER_C
+extern struct Drawer g_Drawer;
+#endif
+
+void write_cchar(struct Drawer* d, char s, unsigned int c);
+void write_char(struct Drawer* d, char s);
+
+void write_cstring(struct Drawer* d, char* s, unsigned int c);
+void write_string(struct Drawer* d, char* s);
+
+void write_chex32(struct Drawer* d, unsigned long val, unsigned int c);
+void write_hex32(struct Drawer* d, unsigned long val);
+
+void write_c10(struct Drawer* d, unsigned long val, unsigned int c);
+void write_10(struct Drawer* d, unsigned long val);
+
+void set_drawer(struct Drawer* d, unsigned int x, unsigned int y);
+
+#endif