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 node is null or 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 node is null or 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 node is null or no more memory to queue the operation

lv_gltf_model_node_set_rotation_x

Set the X component of a glTF model node's rotation quaternion. 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 X rotation component value

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

lv_gltf_model_node_set_rotation_y

Set the Y component of a glTF model node's rotation quaternion. 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 Y rotation component value

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

lv_gltf_model_node_set_rotation_z

Set the Z component of a glTF model node's rotation quaternion. 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 Z rotation component value

Returns: lv_result_t — LV_RESULT_OK if the operation is queued successfully, LV_RESULT_INVALID if node is null or 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 node is null or 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 node is null or 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 node is null or 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

Indirect dependencies

How is this guide?

Last updated on

On this page