Function in ldk_asset_manager.h

ldk_asset_manager_text_file_create

Create an in-memory text-file asset by copying source text.

LDK_API LDKAssetTextFile ldk_asset_manager_text_file_create(
 LDKAssetManager *manager,
 const char *text,
 u64 byte_count
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
const char *text
Text used by this operation.
u64 byte_count
Number of bytes in the supplied data.

Returns

Handle to the requested object or resource.

Function in ldk_asset_manager.h

ldk_asset_manager_text_file_is_alive

Check whether the asset manager text file refers to a live resource.

LDK_API bool ldk_asset_manager_text_file_is_alive(
 LDKAssetManager *manager,
 LDKAssetTextFile asset
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
LDKAssetTextFile asset
Asset handle to inspect or modify.

Returns

True when the queried condition holds; false otherwise.

Function in ldk_asset_manager.h

ldk_asset_manager_text_file_load

Load the asset manager text file.

LDK_API LDKAssetTextFile ldk_asset_manager_text_file_load(
 LDKAssetManager *manager,
 const char *path
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
const char *path
Path identifying the file or resource.

Returns

Handle to the requested object or resource.