LDKAssetMaterialData
typedef struct LDKAssetMaterialData{
LDKMaterialDesc descriptor;
u64 revision;
bool dirty;
bool is_missing;
}LDKAssetMaterialData;
typedef struct LDKAssetMaterialData{
LDKMaterialDesc descriptor;
u64 revision;
bool dirty;
bool is_missing;
}LDKAssetMaterialData;
Create the asset manager material.
LDK_API LDKAssetMaterial ldk_asset_manager_material_create(
const LDKMaterialIOContext *context,
const char *path,
const LDKMaterialDesc *descriptor,
LDKMaterialIOResult *result
);
const LDKMaterialIOContext *contextconst char *pathconst LDKMaterialDesc *descriptorLDKMaterialIOResult *resultHandle to the requested object or resource.
Get read-only access to the asset manager material.
LDK_API const LDKAssetMaterialData * ldk_asset_manager_material_get_const(
LDKAssetManager *manager,
LDKAssetMaterial asset
);
LDKAssetManager *managerLDKAssetMaterial assetPointer to the requested object or data; NULL when unavailable.
Load or reuse shared the asset manager material.
LDK_API LDKAssetMaterial ldk_asset_manager_material_load_shared(
const LDKMaterialIOContext *context,
const char *path,
LDKMaterialIOResult *result
);
const LDKMaterialIOContext *contextconst char *pathLDKMaterialIOResult *resultHandle to the requested object or resource.
Save the asset manager material.
LDK_API bool ldk_asset_manager_material_save(
const LDKMaterialIOContext *context,
LDKAssetMaterial asset,
LDKMaterialIOResult *result
);
const LDKMaterialIOContext *contextLDKAssetMaterial assetLDKMaterialIOResult *resultTrue if the operation succeeds; false otherwise.
Update the asset manager material.
LDK_API bool ldk_asset_manager_material_update(
LDKAssetManager *manager,
LDKAssetMaterial asset,
const LDKMaterialDesc *descriptor
);
LDKAssetManager *managerLDKAssetMaterial assetconst LDKMaterialDesc *descriptorTrue if the operation succeeds; false otherwise.
Return an invalid handle for the asset material.
LDK_API LDKAssetMaterial ldk_asset_material_null(void);
An invalid or empty handle.