aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/system
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-16 19:36:53 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-16 19:46:05 +0200
commit046b2b7a38ec66208c96be59c030294b6d10351b (patch)
tree5858b113d026c47cdae0c47033eaa0bbe9f0d113 /include/mgl/system
parent5cbff06ff9153f7a7958202a777d98ebeae59393 (diff)
Add font rendering
Diffstat (limited to 'include/mgl/system')
-rw-r--r--include/mgl/system/fileutils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mgl/system/fileutils.h b/include/mgl/system/fileutils.h
new file mode 100644
index 0000000..71af147
--- /dev/null
+++ b/include/mgl/system/fileutils.h
@@ -0,0 +1,14 @@
+#ifndef MGL_FILEUTILS_H
+#define MGL_FILEUTILS_H
+
+#include <stddef.h>
+
+typedef struct {
+ unsigned char *data;
+ size_t size;
+} mgl_filedata;
+
+int mgl_load_file(const char *filepath, mgl_filedata *filedata);
+void mgl_filedata_free(mgl_filedata *self);
+
+#endif /* MGL_FILEUTILS_H */