diff options
author | quou <quou@disroot.org> | 2024-09-23 21:11:29 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-09-23 21:11:29 +1000 |
commit | 259237fae792e8f19d9b7920b2354f75bc1789e2 (patch) | |
tree | af079430f30f7df1b76efc4f96f520b0b6eee0af /asset.c |
initial commit, basic platform and rendering code.
Diffstat (limited to 'asset.c')
-rw-r--r-- | asset.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); +} |