23 lines
467 B
C
23 lines
467 B
C
#include "generated/vn_assets.meta.h"
|
|
#include "generated/vn_assets.meta.c"
|
|
|
|
struct asset
|
|
{
|
|
asset_id ID;
|
|
b32 IsLoaded;
|
|
render_handle Handle;
|
|
};
|
|
|
|
struct assets
|
|
{
|
|
asset Assets[AssetID_COUNT];
|
|
|
|
render_allocate_texture *AllocateTexture;
|
|
};
|
|
|
|
static assets *GetAssets();
|
|
static void SetAssets(assets *Assets);
|
|
|
|
static void LoadAsset(asset_id ID);
|
|
static void LoadPermanentAssets(assets *Assets);
|
|
static render_handle TextureFromAssetID(asset_id ID); |