lv_gltf_model_loader.h
API reference for lv_gltf_model_loader.h
Summary
Functions
lv_gltf_model_loader_get_texture
Retrieve a texture ID by its hash from the loader
uint32_t lv_gltf_model_loader_get_texture(lv_gltf_model_loader_t *loader, uint32_t texture_hash)| Name | Type | Description |
|---|---|---|
loader | lv_gltf_model_loader_t * | pointer to the glTF model loader instance |
texture_hash | uint32_t | hash value of the texture to retrieve |
Returns: uint32_t — the texture ID associated with the hash, or 0 if not found
lv_gltf_model_loader_create
Create a new glTF model loader instance
lv_gltf_model_loader_t * lv_gltf_model_loader_create(void)Returns: lv_gltf_model_loader_t * — pointer to the newly created glTF model loader instance
lv_gltf_model_loader_store_texture
Store a texture ID associated with a texture hash in the loader
void lv_gltf_model_loader_store_texture(lv_gltf_model_loader_t *loader, uint32_t texture_hash, uint32_t texture_id)| Name | Type | Description |
|---|---|---|
loader | lv_gltf_model_loader_t * | pointer to the glTF model loader instance |
texture_hash | uint32_t | hash value identifying the texture |
texture_id | uint32_t | the texture ID to associate with the hash |
lv_gltf_model_loader_delete
Delete a glTF model loader instance and free its resources
void lv_gltf_model_loader_delete(lv_gltf_model_loader_t *loader)| Name | Type | Description |
|---|---|---|
loader | lv_gltf_model_loader_t * | pointer to the glTF model loader instance to delete May be NULL. |
Typedefs
lv_gltf_model_loader_t
typedef struct _lv_gltf_model_loader_t lv_gltf_model_loader_tUsed by 6 functions
lv_gltf_data_load_from_file— paramloaderlv_gltf_data_load_from_bytes— paramloaderlv_gltf_model_loader_store_texture— paramloaderlv_gltf_model_loader_get_texture— paramloaderlv_gltf_model_loader_delete— paramloaderlv_gltf_data_load_internal— paramloader
Dependencies
Last updated on