aboutsummaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-07-26 13:34:29 +0200
committerMarvin Borner2020-07-26 13:34:29 +0200
commit0de8165d440c549847a1c600558305b04a36a77e (patch)
tree3949c82af1c559c3353d4cf83aac9bf536021145 /src/inc
parent141ee54c3fc9a2f4f0b6c7158b9f1ccb22af3626 (diff)
Added basic gui writer
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/gui.h20
-rw-r--r--src/inc/psf.h2
2 files changed, 21 insertions, 1 deletions
diff --git a/src/inc/gui.h b/src/inc/gui.h
new file mode 100644
index 0000000..130db8b
--- /dev/null
+++ b/src/inc/gui.h
@@ -0,0 +1,20 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+// Some GUI functions
+
+#ifndef GUI_H
+#define GUI_H
+
+#include <def.h>
+
+// Generalized font struct
+struct font {
+ char *chars;
+ int height;
+ int width;
+ int char_size;
+};
+
+void gui_write(int x, int y, const u32 c[3], char *text);
+void gui_init(char *font_path);
+
+#endif
diff --git a/src/inc/psf.h b/src/inc/psf.h
index ced3025..63a3d1e 100644
--- a/src/inc/psf.h
+++ b/src/inc/psf.h
@@ -43,6 +43,6 @@ struct psf2_header {
u32 width;
};
-char *psf_parse(char *data);
+struct font *psf_parse(char *data);
#endif