LDKAssetImageData
typedef struct LDKAssetImageData{
LDKImage *image;
bool is_missing;
}LDKAssetImageData;
typedef struct LDKAssetImageData{
LDKImage *image;
bool is_missing;
}LDKAssetImageData;
Return an invalid handle for the asset image.
LDK_API LDKAssetImage ldk_asset_image_null(void);
An invalid or empty handle.
Create the asset manager image.
LDK_API LDKAssetImage ldk_asset_manager_image_create(
LDKAssetManager *manager,
u32 width,
u32 height,
const void *pixels
);
LDKAssetManager *manageru32 widthu32 heightconst void *pixelsHandle to the requested object or resource.
Create an image asset using an explicit pixel format.
LDK_API LDKAssetImage ldk_asset_manager_image_create_format(
LDKAssetManager *manager,
u32 width,
u32 height,
LDKImageFormat format,
const void *pixels
);
LDKAssetManager *manageru32 widthu32 heightLDKImageFormat formatconst void *pixelsHandle to the requested object or resource.
Get the asset manager image.
LDK_API LDKAssetImageData * ldk_asset_manager_image_get(
LDKAssetManager *manager,
LDKAssetImage asset
);
LDKAssetManager *managerLDKAssetImage assetPointer to the requested object or data; NULL when unavailable.
Get read-only access to the asset manager image.
LDK_API const LDKAssetImageData * ldk_asset_manager_image_get_const(
LDKAssetManager *manager,
LDKAssetImage asset
);
LDKAssetManager *managerLDKAssetImage assetPointer to the requested object or data; NULL when unavailable.
Check whether the asset manager image refers to a live resource.
LDK_API bool ldk_asset_manager_image_is_alive(
LDKAssetManager *manager,
LDKAssetImage asset
);
LDKAssetManager *managerLDKAssetImage assetTrue when the queried condition holds; false otherwise.
Load the asset manager image.
LDK_API LDKAssetImage ldk_asset_manager_image_load(
LDKAssetManager *manager,
const char *path
);
LDKAssetManager *managerconst char *pathHandle to the requested object or resource.
Load or reuse shared the asset manager image.
LDK_API LDKAssetImage ldk_asset_manager_image_load_shared(
LDKAssetManager *manager,
const char *path
);
LDKAssetManager *managerconst char *pathHandle to the requested object or resource.
Create or retrieve a missing-image placeholder asset.
LDK_API LDKAssetImage ldk_asset_manager_image_missing(
LDKAssetManager *manager,
const char *path
);
LDKAssetManager *managerconst char *pathHandle to the requested object or resource.
Unload the asset manager image.
LDK_API void ldk_asset_manager_image_unload(
LDKAssetManager *manager,
LDKAssetImage asset
);
LDKAssetManager *managerLDKAssetImage asset