lv_gltf_model_loader.h¶
Typedefs
-
typedef struct _lv_gltf_model_loader_t lv_gltf_model_loader_t¶
Functions
-
lv_gltf_model_loader_t *lv_gltf_model_loader_create(void)¶
Create a new glTF model loader instance
- Returns:
pointer to the newly created glTF model loader instance
-
void lv_gltf_model_loader_store_texture(lv_gltf_model_loader_t *loader, uint32_t texture_hash, uint32_t texture_id)¶
Store a texture ID associated with a texture hash in the loader
- Parameters:
loader – pointer to the glTF model loader instance
texture_hash – hash value identifying the texture
texture_id – the texture ID to associate with the hash
-
uint32_t lv_gltf_model_loader_get_texture(lv_gltf_model_loader_t *loader, uint32_t texture_hash)¶
Retrieve a texture ID by its hash from the loader
- Parameters:
loader – pointer to the glTF model loader instance
texture_hash – hash value of the texture to retrieve
- Returns:
the texture ID associated with the hash, or 0 if not found
-
void lv_gltf_model_loader_delete(lv_gltf_model_loader_t *loader)¶
Delete a glTF model loader instance and free its resources
- Parameters:
loader – pointer to the glTF model loader instance to delete