aboutsummaryrefslogtreecommitdiffstats
path: root/assets.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-03-28 00:17:30 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-03-28 00:18:53 +0100
commit768feb8bf10807142ff1f21d29f7492509362a18 (patch)
tree5adad2a4791c5c100c934e01d70c089d0b6002ed /assets.c
parentf68b69f5d2e99143d371c6e50ca28f0d5ff739c5 (diff)
downloadfaqe-768feb8bf10807142ff1f21d29f7492509362a18.tar.gz
faqe-768feb8bf10807142ff1f21d29f7492509362a18.tar.xz
faqe-768feb8bf10807142ff1f21d29f7492509362a18.zip
Move to using bie for assets
Shaders are now stored in a bie flat archive and indexed via assets.c and assets.h.
Diffstat (limited to 'assets.c')
-rw-r--r--assets.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/assets.c b/assets.c
new file mode 100644
index 0000000..ed90df9
--- /dev/null
+++ b/assets.c
@@ -0,0 +1,6 @@
+#include "assets.h"
+
+extern char _binary_assets_bie_start[];
+
+#define BIE_ENTRY(name, pos, size) struct asset name = { &_binary_assets_bie_start[pos], size };
+#include "assets.idx"