lv_gltf_model_node.h

API reference for lv_gltf_model_node.h

Report on GitHub

Functions

lv_gltf_model_node_set_position_x

Set the X position of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_position_x(lv_gltf_model_node_t *node, float x)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
xfloatThe X position value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_position_y

Set the Y position of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_position_y(lv_gltf_model_node_t *node, float y)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
yfloatThe Y position value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_position_z

Set the Z position of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_position_z(lv_gltf_model_node_t *node, float z)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
zfloatThe Z position value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_rotation_x

Set the rotation of a glTF model node around the X axis. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_rotation_x(lv_gltf_model_node_t *node, float x)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
xfloatThe rotation around the X axis, in radians

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_rotation_y

Set the rotation of a glTF model node around the Y axis. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_rotation_y(lv_gltf_model_node_t *node, float y)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
yfloatThe rotation around the Y axis, in radians

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_rotation_z

Set the rotation of a glTF model node around the Z axis. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_rotation_z(lv_gltf_model_node_t *node, float z)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
zfloatThe rotation around the Z axis, in radians

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_scale_x

Set the X scale of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_scale_x(lv_gltf_model_node_t *node, float x)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
xfloatThe X scale value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_scale_y

Set the Y scale of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_scale_y(lv_gltf_model_node_t *node, float y)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
yfloatThe Y scale value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

lv_gltf_model_node_set_scale_z

Set the Z scale of a glTF model node. The operation is queued and applied on the next rendering phase.

 
lv_result_t lv_gltf_model_node_set_scale_z(lv_gltf_model_node_t *node, float z)
Parameters
NameTypeDescription
nodelv_gltf_model_node_t *Pointer to the glTF model node structure
zfloatThe Z scale value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if there is no more memory to queue the operation

Macros

LV_GLTF_ANIM_SPEED_TENTH

 
#define LV_GLTF_ANIM_SPEED_TENTH 100

LV_GLTF_ANIM_SPEED_QUARTER

 
#define LV_GLTF_ANIM_SPEED_QUARTER 250

LV_GLTF_ANIM_SPEED_HALF

 
#define LV_GLTF_ANIM_SPEED_HALF 500

LV_GLTF_ANIM_SPEED_NORMAL

 
#define LV_GLTF_ANIM_SPEED_NORMAL 1000

LV_GLTF_ANIM_SPEED_2X

 
#define LV_GLTF_ANIM_SPEED_2X 2000

LV_GLTF_ANIM_SPEED_3X

 
#define LV_GLTF_ANIM_SPEED_3X 3000

LV_GLTF_ANIM_SPEED_4X

 
#define LV_GLTF_ANIM_SPEED_4X 4000

LV_GLTF_DEFAULT_CAMERA

 
#define LV_GLTF_DEFAULT_CAMERA 0

Dependencies

Last updated on

On this page