blob: 9b5b0fb4faf947dcc73bc305409b55486dec076a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "memory.h"
#include "pack.h"
#include "plat.h"
#include "asset.h"
const unsigned char* get_asset(Asset_ID id) {
const void* ptr = &asset_data[asset_offset_table[id]];
assert(aligned(ptr, allocation_default_alignment));
return ptr;
}
const struct Bitmap* get_bitmap(Asset_ID id) {
return (const struct Bitmap*)get_asset(id);
}
const struct Animation* get_animation(Asset_ID id) {
return (const struct Animation*)get_asset(id);
}
|