lv_gltf_model_node.h
API reference for lv_gltf_model_node.h
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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
x | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
y | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
z | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
x | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
y | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
z | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
x | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
y | float | The 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)| Name | Type | Description |
|---|---|---|
node | lv_gltf_model_node_t * | Pointer to the glTF model node structure |
z | float | The 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 100LV_GLTF_ANIM_SPEED_QUARTER
#define LV_GLTF_ANIM_SPEED_QUARTER 250LV_GLTF_ANIM_SPEED_HALF
#define LV_GLTF_ANIM_SPEED_HALF 500LV_GLTF_ANIM_SPEED_NORMAL
#define LV_GLTF_ANIM_SPEED_NORMAL 1000LV_GLTF_ANIM_SPEED_2X
#define LV_GLTF_ANIM_SPEED_2X 2000LV_GLTF_ANIM_SPEED_3X
#define LV_GLTF_ANIM_SPEED_3X 3000LV_GLTF_ANIM_SPEED_4X
#define LV_GLTF_ANIM_SPEED_4X 4000LV_GLTF_DEFAULT_CAMERA
#define LV_GLTF_DEFAULT_CAMERA 0Dependencies
How is this guide?
Last updated on