lv_gltf_model.h

API reference for lv_gltf_model.h

Report on GitHub

Functions

lv_gltf_model_set_animation_speed

Set the animation speed ratio

The actual ratio is the value parameter / LV_GLTF_ANIM_SPEED_NORMAL Values greater than LV_GLTF_ANIM_SPEED_NORMAL will speed-up the animation Values less than LV_GLTF_ANIM_SPEED_NORMAL will slow down the animation

 
void lv_gltf_model_set_animation_speed(lv_gltf_model_t *model, uint32_t value)
Parameters
NameTypeDescription
modellv_gltf_model_t *pointer to a glTF model
valueuint32_tspeed-up ratio of the animation

lv_gltf_model_set_animation_time

Set the animation current time

The time is in milliseconds with the animation speed ratio applied. Values greater than the duration of the current animation are clamped to it.

 
void lv_gltf_model_set_animation_time(lv_gltf_model_t *model, uint32_t millis)
Parameters
NameTypeDescription
modellv_gltf_model_t *pointer to a glTF model
millisuint32_tthe new playback time in milliseconds

lv_gltf_model_set_animation_ratio

Set the animation current playback ratio

 
void lv_gltf_model_set_animation_ratio(lv_gltf_model_t *model, float ratio)
Parameters
NameTypeDescription
modellv_gltf_model_t *pointer to a glTF model
ratiofloatposition in the animation, from 0.0 (first keyframe) to 1.0 (last keyframe). Values outside of this range are clamped.

Dependencies

Last updated on

On this page