Function in ldk_asset_manager.h

ldk_asset_manager_font_create

Create the asset manager font.

LDK_API LDKAssetFont ldk_asset_manager_font_create(
 LDKAssetManager *manager,
 const void *data,
 u32 data_size
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
const void *data
Source data or system-owned context for this operation.
u32 data_size
Size of the data buffer or region.

Returns

Handle to the requested object or resource.

Function in ldk_asset_manager.h

ldk_asset_manager_font_is_alive

Check whether the asset manager font refers to a live resource.

LDK_API bool ldk_asset_manager_font_is_alive(
 LDKAssetManager *manager,
 LDKAssetFont asset
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
LDKAssetFont 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_font_load

Load the asset manager font.

LDK_API LDKAssetFont ldk_asset_manager_font_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.

Function in ldk_asset_manager.h

ldk_asset_manager_font_load_shared

Load or reuse shared the asset manager font.

LDK_API LDKAssetFont ldk_asset_manager_font_load_shared(
 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.