Files
punchie-engine/include/AssetManager.h
T
abdelrahman c4f1775392 Implemented the core functionality of the ObjectStore and started
implementing the functionality for the AssetManager
2022-09-22 01:56:21 +01:00

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