Function in ldk_mesh_source.h

ldk_mesh_source_additional_material_binding

Get a mutable material binding for an additional mesh slot.

LDK_API LDKMeshSourceMaterialBinding * ldk_mesh_source_additional_material_binding(
 LDKMeshSource *mesh_source,
 u32 material_slot
);

Parameters

LDKMeshSource *mesh_source
Mesh source used by this operation.
u32 material_slot
Material slot used by this operation.

Returns

Pointer to the requested object or data; NULL when unavailable.

Function in ldk_mesh_source.h

ldk_mesh_source_additional_material_binding_const

Get a read-only material binding for an additional mesh slot.

LDK_API const LDKMeshSourceMaterialBinding * ldk_mesh_source_additional_material_binding_const(
 const LDKMeshSource *mesh_source,
 u32 material_slot
);

Parameters

const LDKMeshSource *mesh_source
Mesh source used by this operation.
u32 material_slot
Material slot used by this operation.

Returns

Pointer to the requested object or data; NULL when unavailable.

Function in ldk_mesh_source.h

ldk_mesh_source_material_count

Get the number of material slots in a mesh source.

LDK_API u32 ldk_mesh_source_material_count(const LDKMeshSource *mesh_source);

Parameters

const LDKMeshSource *mesh_source
Mesh source used by this operation.

Returns

Number of matching entries.

Function in ldk_mesh_source.h

ldk_mesh_source_material_sync

Synchronize the mesh source material.

LDK_API bool ldk_mesh_source_material_sync(
 LDKMeshSource *mesh_source,
 LDKAssetManager *assets
);

Parameters

LDKMeshSource *mesh_source
Mesh source used by this operation.
LDKAssetManager *assets
Asset manager used to resolve referenced assets.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_mesh_source.h

ldk_mesh_source_materials_sync

Synchronize the mesh source materials.

LDK_API bool ldk_mesh_source_materials_sync(
 LDKMeshSource *mesh_source,
 LDKAssetManager *assets
);

Parameters

LDKMeshSource *mesh_source
Mesh source used by this operation.
LDKAssetManager *assets
Asset manager used to resolve referenced assets.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_mesh_source.h

ldk_mesh_source_set_material_asset_at

Assign a material asset to the specified mesh material slot.

LDK_API bool ldk_mesh_source_set_material_asset_at(
 LDKMeshSource *mesh_source,
 LDKAssetManager *assets,
 u32 material_slot,
 LDKAssetMaterial asset
);

Parameters

LDKMeshSource *mesh_source
Mesh source used by this operation.
LDKAssetManager *assets
Asset manager used to resolve referenced assets.
u32 material_slot
Material slot used by this operation.
LDKAssetMaterial asset
Asset handle to inspect or modify.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_mesh_source.h

ldk_mesh_source_set_material_at

Assign a material descriptor to the specified mesh material slot.

LDK_API bool ldk_mesh_source_set_material_at(
 LDKMeshSource *mesh_source,
 u32 material_slot,
 LDKMaterialDesc const *material
);

Parameters

LDKMeshSource *mesh_source
Mesh source used by this operation.
u32 material_slot
Material slot used by this operation.
LDKMaterialDesc const *material
Material used by the operation.

Returns

True if the operation succeeds; false otherwise.