22 lines
482 B
C
22 lines
482 B
C
#ifndef ASSET_MANAGER_H
|
|
#define ASSET_MANAGER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef int32_t AssetID;
|
|
typedef enum {
|
|
ASSET_TYPE_IMAGE,
|
|
ASSET_TYPE_AUDIO_FX,
|
|
ASSET_TYPE_MUSIC,
|
|
|
|
ASSET_TYPE_COUNT
|
|
} AssetType;
|
|
typedef struct asset_manager AssetManager;
|
|
|
|
AssetManager *create_asset_manager();
|
|
AssetID load_asset(AssetManager *am, const char *path, AssetType type);
|
|
void close_asset(AssetManager *am, AssetID id);
|
|
void destroy_asset_manager(AssetManager *am);
|
|
|
|
#endif // !ASSET_MANAGER_H
|