aboutsummaryrefslogtreecommitdiff
path: root/asset.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-09-23 21:11:29 +1000
committerquou <quou@disroot.org>2024-09-23 21:11:29 +1000
commit259237fae792e8f19d9b7920b2354f75bc1789e2 (patch)
treeaf079430f30f7df1b76efc4f96f520b0b6eee0af /asset.c
initial commit, basic platform and rendering code.
Diffstat (limited to 'asset.c')
-rw-r--r--asset.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/asset.c b/asset.c
new file mode 100644
index 0000000..78085ec
--- /dev/null
+++ b/asset.c
@@ -0,0 +1,10 @@
+#include "pack.h"
+#include "asset.h"
+
+const unsigned char* get_asset(Asset_ID id) {
+ return &asset_data[asset_offset_table[id]];
+}
+
+const struct Bitmap* get_bitmap(Asset_ID id) {
+ return (const struct Bitmap*)get_asset(id);
+}