LDKAssetInfo
typedef struct LDKAssetInfo{
LDKAssetType type;
void *data;
LDKAssetPath asset_path;
u64 load_timestamp;
u64 source_revision;
}LDKAssetInfo;
typedef struct LDKAssetInfo{
LDKAssetType type;
void *data;
LDKAssetPath asset_path;
u64 load_timestamp;
u64 source_revision;
}LDKAssetInfo;
typedef struct LDKAssetKeyframeAnimationData{
LDKKeyframeAnimation clip;
}LDKAssetKeyframeAnimationData;
typedef struct LDKAssetTextFileData{
char *text;
u64 byte_count;
}LDKAssetTextFileData;
typedef struct LDKAssetTextureAtlasData{
LDKTextureAtlas atlas;
LDKAssetImage image;
u64 revision;
}LDKAssetTextureAtlasData;
Clear manager-owned assets except audio retained by active voices. Audio data still referenced by active voices is retained.
LDK_API void ldk_asset_manager_clear(LDKAssetManager *manager);
LDKAssetManager *managerInitialize an asset manager with an asset source and storage capacity.
LDK_API bool ldk_asset_manager_initialize(
LDKAssetManager *manager,
LDKAssetSource *source,
u32 page_capacity,
u32 initial_pages
);
LDKAssetManager *managerLDKAssetSource *sourceu32 page_capacityu32 initial_pagesTrue if the operation succeeds; false otherwise.
Shut down the asset manager.
LDK_API void ldk_asset_manager_terminate(LDKAssetManager *manager);
LDKAssetManager *manager