summaryrefslogtreecommitdiff
path: root/tools/gbagfx/util.h
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-10-13 15:49:44 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-10-13 15:49:44 -0500
commitc4fc85ce9e843e419ef9e3c1c2f888529c7e40d8 (patch)
tree36f91072a7471ea189132feffddc888a0c0cb937 /tools/gbagfx/util.h
parent10896eccf02894afd3ab1b164280c892bdf7ec49 (diff)
Add graphics capabilities
Diffstat (limited to 'tools/gbagfx/util.h')
-rwxr-xr-xtools/gbagfx/util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/gbagfx/util.h b/tools/gbagfx/util.h
new file mode 100755
index 0000000..6d7a9c2
--- /dev/null
+++ b/tools/gbagfx/util.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2015 YamaArashi
+
+#ifndef UTIL_H
+#define UTIL_H
+
+#include <stdbool.h>
+
+bool ParseNumber(char *s, char **end, int radix, int *intValue);
+char *GetFileExtension(char *path);
+unsigned char *ReadWholeFile(char *path, int *size);
+unsigned char *ReadWholeFileZeroPadded(char *path, int *size, int padAmount);
+void WriteWholeFile(char *path, void *buffer, int bufferSize);
+
+#endif // UTIL_H