Function in ldk_asset_manager.h

ldk_asset_manager_mesh_create

Create the asset manager mesh.

LDK_API LDKAssetMesh ldk_asset_manager_mesh_create(
 LDKAssetManager *manager,
 const LDKMeshVertex *vertices,
 u32 vertex_count,
 const u32 *indices,
 u32 index_count
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
const LDKMeshVertex *vertices
Array of mesh vertices.
u32 vertex_count
Number of vertex entries.
const u32 *indices
Array of mesh indices.
u32 index_count
Number of indices to submit.

Returns

Handle to the requested object or resource.

Function in ldk_asset_manager.h

ldk_asset_manager_mesh_is_alive

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

LDK_API bool ldk_asset_manager_mesh_is_alive(
 LDKAssetManager *manager,
 LDKAssetMesh asset
);

Parameters

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

Returns

True when the queried condition holds; false otherwise.