# lv_gltf.h (/api/public/widgets/lv_gltf_h)



<ApiSummary functions="47" enums="2" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (16)&#x22;,&#x22;Getters (22)&#x22;,&#x22;Other (9)&#x22;]">
  <ApiTab value="Setters (16)">
    <ApiMember kind="function" name="lv_gltf_set_environment" file="public/widgets/lv_gltf.h" line="66" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L66">
      lv_gltf_set_environment [#lv_gltf_set_environment]

      Assign an environment to a glTF object for IBL rendering

      ```c title=" " lineNumbers=1
      void lv_gltf_set_environment(lv_obj_t *obj, lv_gltf_environment_t *environment)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name          | Type                                                                       | Description                       |
      | ------------- | -------------------------------------------------------------------------- | --------------------------------- |
      | `obj`         | <ApiLink name="lv_obj_t" display="lv_obj_t *" />                           | pointer to a glTF viewer object   |
      | `environment` | <ApiLink name="lv_gltf_environment_t" display="lv_gltf_environment_t *" /> | pointer to the environment to use |

      <Callout type="info">
        The environment can be shared across multiple glTF objects
      </Callout>

      <Callout type="info">
        If no environment is set before attempting to load a file, a default one will be created for you
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_yaw" file="public/widgets/lv_gltf.h" line="143" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L143">
      lv_gltf_set_yaw [#lv_gltf_set_yaw]

      Set the yaw (horizontal rotation) of the camera

      ```c title=" " lineNumbers=1
      void lv_gltf_set_yaw(lv_obj_t *obj, float yaw)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                             | Description                     |
      | ----- | ------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `yaw` | `float`                                          | yaw angle in degrees            |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_pitch" file="public/widgets/lv_gltf.h" line="157" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L157">
      lv_gltf_set_pitch [#lv_gltf_set_pitch]

      Set the pitch (vertical rotation) of the camera

      ```c title=" " lineNumbers=1
      void lv_gltf_set_pitch(lv_obj_t *obj, float pitch)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `pitch` | `float`                                          | pitch angle in degrees          |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_distance" file="public/widgets/lv_gltf.h" line="171" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L171">
      lv_gltf_set_distance [#lv_gltf_set_distance]

      Set the camera distance from the focal point

      ```c title=" " lineNumbers=1
      void lv_gltf_set_distance(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `float`                                          | distance value                  |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_fov" file="public/widgets/lv_gltf.h" line="196" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L196">
      lv_gltf_set_fov [#lv_gltf_set_fov]

      Set the field of view

      ```c title=" " lineNumbers=1
      void lv_gltf_set_fov(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                                                                       |
      | ------- | ------------------------------------------------ | --------------------------------------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object                                                   |
      | `value` | `float`                                          | vertical FOV in degrees. If zero, the view will be orthographic (non-perspective) |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_focal_x" file="public/widgets/lv_gltf.h" line="214" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L214">
      lv_gltf_set_focal_x [#lv_gltf_set_focal_x]

      Set the X coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      void lv_gltf_set_focal_x(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `float`                                          | X coordinate                    |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_focal_y" file="public/widgets/lv_gltf.h" line="228" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L228">
      lv_gltf_set_focal_y [#lv_gltf_set_focal_y]

      Set the Y coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      void lv_gltf_set_focal_y(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `float`                                          | Y coordinate                    |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_focal_z" file="public/widgets/lv_gltf.h" line="242" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L242">
      lv_gltf_set_focal_z [#lv_gltf_set_focal_z]

      Set the Z coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      void lv_gltf_set_focal_z(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `float`                                          | Z coordinate                    |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_camera" file="public/widgets/lv_gltf.h" line="270" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L270">
      lv_gltf_set_camera [#lv_gltf_set_camera]

      Set the active camera index The camera is selected from the first glTF model added to the viewer

      ```c title=" " lineNumbers=1
      void lv_gltf_set_camera(lv_obj_t *obj, uint32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                                                    |
      | ------- | ------------------------------------------------ | -------------------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object                                |
      | `value` | `uint32_t`                                       | camera index (0 for default camera, 1+ for scene camera index) |

      <Callout type="info">
        Values higher than the scene's camera count will be clamped to the maximum available camera index
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_animation_speed" file="public/widgets/lv_gltf.h" line="304" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L304">
      lv_gltf_set_animation_speed [#lv_gltf_set_animation_speed]

      DEPRECATED. See `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

      ```c title=" " lineNumbers=1
      void lv_gltf_set_animation_speed(lv_obj_t *obj, uint32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `uint32_t`                                       | speed-up ratio of the animation |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_background_mode" file="public/widgets/lv_gltf.h" line="326" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L326">
      lv_gltf_set_background_mode [#lv_gltf_set_background_mode]

      Set the background mode

      ```c title=" " lineNumbers=1
      void lv_gltf_set_background_mode(lv_obj_t *obj, lv_gltf_bg_mode_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | <ApiLink name="lv_gltf_bg_mode_t" />             | background mode                 |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_background_blur" file="public/widgets/lv_gltf.h" line="340" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L340">
      lv_gltf_set_background_blur [#lv_gltf_set_background_blur]

      Set the background blur amount

      ```c title=" " lineNumbers=1
      void lv_gltf_set_background_blur(lv_obj_t *obj, uint32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `uint32_t`                                       | blur amount between 0 and 100   |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_environment_brightness" file="public/widgets/lv_gltf.h" line="354" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L354">
      lv_gltf_set_environment_brightness [#lv_gltf_set_environment_brightness]

      Set the environment brightness of a glTF viewer.

      ```c title=" " lineNumbers=1
      void lv_gltf_set_environment_brightness(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                                        |
      | ------- | ------------------------------------------------ | -------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object                    |
      | `value` | `float`                                          | brightness multiplier, 1.0 = neutral. Default: 1.8 |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_env_brightness" file="public/widgets/lv_gltf.h" line="371" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L371">
      lv_gltf_set_env_brightness [#lv_gltf_set_env_brightness]

      Set the environment brightness.

      \> &#x2A;*Deprecated:** Use <ApiLink name="lv_gltf_set_environment_brightness" display="lv_gltf_set_environment_brightness()" /> instead, which takes a multiplier (1.0 = neutral).

      ```c title=" " lineNumbers=1
      void lv_gltf_set_env_brightness(lv_obj_t *obj, uint32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                          |
      | ------- | ------------------------------------------------ | ------------------------------------ |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object      |
      | `value` | `uint32_t`                                       | brightness percentage, 100 = neutral |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_image_exposure" file="public/widgets/lv_gltf.h" line="388" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L388">
      lv_gltf_set_image_exposure [#lv_gltf_set_image_exposure]

      Set the image exposure level

      ```c title=" " lineNumbers=1
      void lv_gltf_set_image_exposure(lv_obj_t *obj, float value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | `float`                                          | exposure level (1.0 is default) |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_set_antialiasing_mode" file="public/widgets/lv_gltf.h" line="406" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L406">
      lv_gltf_set_antialiasing_mode [#lv_gltf_set_antialiasing_mode]

      Set the anti-aliasing mode

      ```c title=" " lineNumbers=1
      void lv_gltf_set_antialiasing_mode(lv_obj_t *obj, lv_gltf_aa_mode_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `value` | <ApiLink name="lv_gltf_aa_mode_t" />             | anti-aliasing mode              |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (22)">
    <ApiMember kind="function" name="lv_gltf_get_model_count" file="public/widgets/lv_gltf.h" line="104" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L104">
      lv_gltf_get_model_count [#lv_gltf_get_model_count]

      Get the number of models loaded in the glTF viewer

      ```c title=" " lineNumbers=1
      size_t lv_gltf_get_model_count(lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                             | Description                     |
      | ----- | ------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `size_t` — the total number of models in the viewer
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_model_by_index" file="public/widgets/lv_gltf.h" line="112" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L112">
      lv_gltf_get_model_by_index [#lv_gltf_get_model_by_index]

      Get a specific model by its index

      ```c title=" " lineNumbers=1
      lv_gltf_model_t * lv_gltf_get_model_by_index(const lv_obj_t *obj, size_t id)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                              |
      | ----- | ------------------------------------------------------ | ---------------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object          |
      | `id`  | `size_t`                                               | index of the model to retrieve (0-based) |

      **Returns:** <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> — pointer to the model at the specified index, or NULL if index is invalid
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_primary_model" file="public/widgets/lv_gltf.h" line="121" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L121">
      lv_gltf_get_primary_model [#lv_gltf_get_primary_model]

      Get the primary model from the glTF viewer The primary model is the first model added to the viewer and can be used for camera selection and other primary operations

      ```c title=" " lineNumbers=1
      lv_gltf_model_t * lv_gltf_get_primary_model(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> — pointer to the primary model, or NULL if no models are loaded
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_yaw" file="public/widgets/lv_gltf.h" line="150" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L150">
      lv_gltf_get_yaw [#lv_gltf_get_yaw]

      Get the yaw (horizontal rotation) of the camera

      ```c title=" " lineNumbers=1
      float lv_gltf_get_yaw(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — yaw angle in degrees
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_pitch" file="public/widgets/lv_gltf.h" line="164" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L164">
      lv_gltf_get_pitch [#lv_gltf_get_pitch]

      Get the pitch (vertical rotation) of the camera

      ```c title=" " lineNumbers=1
      float lv_gltf_get_pitch(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — pitch angle in degrees
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_distance" file="public/widgets/lv_gltf.h" line="178" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L178">
      lv_gltf_get_distance [#lv_gltf_get_distance]

      Get the camera distance scale factor from the focal point

      ```c title=" " lineNumbers=1
      float lv_gltf_get_distance(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — distance scaling factor value
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_world_distance" file="public/widgets/lv_gltf.h" line="185" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L185">
      lv_gltf_get_world_distance [#lv_gltf_get_world_distance]

      Get the camera distance from the focal point in world units

      ```c title=" " lineNumbers=1
      float lv_gltf_get_world_distance(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a GLTF viewer object |

      **Returns:** `float` — world unit distance value
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_fov" file="public/widgets/lv_gltf.h" line="203" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L203">
      lv_gltf_get_fov [#lv_gltf_get_fov]

      Get the field of view

      ```c title=" " lineNumbers=1
      float lv_gltf_get_fov(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — vertical FOV in degrees
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_focal_x" file="public/widgets/lv_gltf.h" line="221" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L221">
      lv_gltf_get_focal_x [#lv_gltf_get_focal_x]

      Get the X coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      float lv_gltf_get_focal_x(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — X coordinate
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_focal_y" file="public/widgets/lv_gltf.h" line="235" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L235">
      lv_gltf_get_focal_y [#lv_gltf_get_focal_y]

      Get the Y coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      float lv_gltf_get_focal_y(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — Y coordinate
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_focal_z" file="public/widgets/lv_gltf.h" line="249" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L249">
      lv_gltf_get_focal_z [#lv_gltf_get_focal_z]

      Get the Z coordinate of the camera focal point

      ```c title=" " lineNumbers=1
      float lv_gltf_get_focal_z(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — Z coordinate
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_camera" file="public/widgets/lv_gltf.h" line="277" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L277">
      lv_gltf_get_camera [#lv_gltf_get_camera]

      Get the active camera index

      ```c title=" " lineNumbers=1
      uint32_t lv_gltf_get_camera(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `uint32_t` — active camera index
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_camera_count" file="public/widgets/lv_gltf.h" line="290" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L290">
      lv_gltf_get_camera_count [#lv_gltf_get_camera_count]

      Get the number of cameras in the first glTF model added to the viewer This count represents the valid range for the camera index parameter used with <ApiLink name="lv_gltf_set_camera" display="lv_gltf_set_camera()" />

      To get the camera count of other models, call lv\_gltf\_model\_get\_camera\_count(model) directly with the specific model

      ```c title=" " lineNumbers=1
      uint32_t lv_gltf_get_camera_count(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `uint32_t` — number of available cameras
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_animation_speed" file="public/widgets/lv_gltf.h" line="315" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L315">
      lv_gltf_get_animation_speed [#lv_gltf_get_animation_speed]

      DEPRECATED. See `lv_gltf_model_get_animation_speed`

      Get the animation speed ratio

      The actual ratio is the return value / LV\_GLTF\_ANIM\_SPEED\_NORMAL

      ```c title=" " lineNumbers=1
      uint32_t lv_gltf_get_animation_speed(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_background_mode" file="public/widgets/lv_gltf.h" line="333" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L333">
      lv_gltf_get_background_mode [#lv_gltf_get_background_mode]

      Get the background mode

      ```c title=" " lineNumbers=1
      lv_gltf_bg_mode_t lv_gltf_get_background_mode(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** <ApiLink name="lv_gltf_bg_mode_t" /> — background mode
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_background_blur" file="public/widgets/lv_gltf.h" line="347" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L347">
      lv_gltf_get_background_blur [#lv_gltf_get_background_blur]

      Get the background blur amount

      ```c title=" " lineNumbers=1
      uint32_t lv_gltf_get_background_blur(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `uint32_t` — blur amount between 0 and 100
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_environment_brightness" file="public/widgets/lv_gltf.h" line="361" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L361">
      lv_gltf_get_environment_brightness [#lv_gltf_get_environment_brightness]

      Get the environment brightness of a glTF viewer.

      ```c title=" " lineNumbers=1
      float lv_gltf_get_environment_brightness(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — brightness multiplier, 1.0 = neutral
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_env_brightness" file="public/widgets/lv_gltf.h" line="381" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L381">
      lv_gltf_get_env_brightness [#lv_gltf_get_env_brightness]

      Get the environment brightness.

      \> &#x2A;*Deprecated:** Use <ApiLink name="lv_gltf_get_environment_brightness" display="lv_gltf_get_environment_brightness()" /> instead, which returns a multiplier (1.0 = neutral).

      ```c title=" " lineNumbers=1
      uint32_t lv_gltf_get_env_brightness(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `uint32_t` — brightness percentage, 100 = neutral
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_image_exposure" file="public/widgets/lv_gltf.h" line="395" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L395">
      lv_gltf_get_image_exposure [#lv_gltf_get_image_exposure]

      Get the image exposure level

      ```c title=" " lineNumbers=1
      float lv_gltf_get_image_exposure(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** `float` — exposure level
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_antialiasing_mode" file="public/widgets/lv_gltf.h" line="413" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L413">
      lv_gltf_get_antialiasing_mode [#lv_gltf_get_antialiasing_mode]

      Get the anti-aliasing mode

      ```c title=" " lineNumbers=1
      lv_gltf_aa_mode_t lv_gltf_get_antialiasing_mode(const lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                   | Description                     |
      | ----- | ------------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a glTF viewer object |

      **Returns:** <ApiLink name="lv_gltf_aa_mode_t" /> — anti-aliasing mode
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_current_view_plane" file="public/widgets/lv_gltf.h" line="435" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L435">
      lv_gltf_get_current_view_plane [#lv_gltf_get_current_view_plane]

      Get a plane that faces the current view camera, centered some units in front of it

      ```c title=" " lineNumbers=1
      lv_3dplane_t lv_gltf_get_current_view_plane(lv_obj_t *obj, float distance)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name       | Type                                             | Description                                                                                                                   |
      | ---------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
      | `obj`      | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a GLTF viewer object                                                                                               |
      | `distance` | `float`                                          | distance in front of the camera to set the plane, in world units. see lv\_gltf\_get\_world\_distance to get the auto-distance |

      **Returns:** <ApiLink name="lv_3dplane_t" /> — camera facing plane
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_get_ray_from_2d_coordinate" file="public/widgets/lv_gltf.h" line="443" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L443">
      lv_gltf_get_ray_from_2d_coordinate [#lv_gltf_get_ray_from_2d_coordinate]

      Calculates a ray originating from the camera and passing through the specified mouse position on the screen.

      ```c title=" " lineNumbers=1
      lv_3dray_t lv_gltf_get_ray_from_2d_coordinate(lv_obj_t *obj, const lv_point_t *screen_pos)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name         | Type                                                       | Description                     |
      | ------------ | ---------------------------------------------------------- | ------------------------------- |
      | `obj`        | <ApiLink name="lv_obj_t" display="lv_obj_t *" />           | pointer to a GLTF viewer object |
      | `screen_pos` | <ApiLink name="lv_point_t" display="const lv_point_t *" /> | screen coordinate, in pixels    |

      **Returns:** <ApiLink name="lv_3dray_t" /> — mouse point ray
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (9)">
    <ApiMember kind="function" name="lv_gltf_create" file="public/widgets/lv_gltf.h" line="56" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L56">
      lv_gltf_create [#lv_gltf_create]

      Create a glTF object

      ```c title=" " lineNumbers=1
      lv_obj_t * lv_gltf_create(lv_obj_t *parent)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                                             | Description                                                                                                         |
      | -------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
      | `parent` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a parent widget **May** be `NULL`.. When NULL, the widget is created as a screen on the default display. |

      **Returns:** <ApiLink name="lv_obj_t" display="lv_obj_t *" /> — pointer to the created glTF object
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_load_model_from_file" file="public/widgets/lv_gltf.h" line="74" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L74">
      lv_gltf_load_model_from_file [#lv_gltf_load_model_from_file]

      Load a glTF model from a file into the viewer

      ```c title=" " lineNumbers=1
      lv_gltf_model_t * lv_gltf_load_model_from_file(lv_obj_t *obj, const char *path)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                                             | Description                         |
      | ------ | ------------------------------------------------ | ----------------------------------- |
      | `obj`  | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object     |
      | `path` | `const char *`                                   | file path to the glTF model to load |

      **Returns:** <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> — pointer to the loaded glTF model, or NULL on failure
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_load_model_from_bytes" file="public/widgets/lv_gltf.h" line="83" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L83">
      lv_gltf_load_model_from_bytes [#lv_gltf_load_model_from_bytes]

      Load a glTF model from a byte array into the viewer

      ```c title=" " lineNumbers=1
      lv_gltf_model_t * lv_gltf_load_model_from_bytes(lv_obj_t *obj, const uint8_t *bytes, size_t len)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                             | Description                     |
      | ------- | ------------------------------------------------ | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
      | `bytes` | `const uint8_t *`                                | glTF raw data                   |
      | `len`   | `size_t`                                         | glTF raw data length in bytes   |

      **Returns:** <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> — pointer to the loaded glTF model, or NULL on failure
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_add_model" file="public/widgets/lv_gltf.h" line="97" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L97">
      lv_gltf_add_model [#lv_gltf_add_model]

      Add a glTF model to the viewer.

      Contrary to `lv_gltf_load_model_from_file` and `lv_gltf_load_model_from_bytes`, the model is owned by the caller of this function meaning that it's the caller's responsibility to delete the model when it is no longer needed, with `lv_gltf_model_delete`. Deleting it while the viewer still shows it is allowed, the viewer lets go of it.

      ```c title=" " lineNumbers=1
      lv_result_t lv_gltf_add_model(lv_obj_t *obj, lv_gltf_model_t *model)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                           | Description                     |
      | ------- | -------------------------------------------------------------- | ------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" />               | pointer to a glTF viewer object |
      | `model` | <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> | glTF model to add to the viewer |

      **Returns:** <ApiLink name="lv_result_t" /> — LV\_RESULT\_OK if the model was added to the viewer or LV\_RESULT\_INVALID on failure
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_remove_model" file="public/widgets/lv_gltf.h" line="129" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L129">
      lv_gltf_remove_model [#lv_gltf_remove_model]

      Remove a model from the glTF viewer

      ```c title=" " lineNumbers=1
      void lv_gltf_remove_model(lv_obj_t *obj, lv_gltf_model_t *model)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                           | Description                                                    |
      | ------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" />               | pointer to a glTF viewer object                                |
      | `model` | <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> | model to remove. Nothing happens if the viewer doesn't hold it |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_remove_all_models" file="public/widgets/lv_gltf.h" line="136" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L136">
      lv_gltf_remove_all_models [#lv_gltf_remove_all_models]

      Remove all models from the glTF viewer

      ```c title=" " lineNumbers=1
      void lv_gltf_remove_all_models(lv_obj_t *obj)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                             | Description                     |
      | ----- | ------------------------------------------------ | ------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a glTF viewer object |
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_recenter" file="public/widgets/lv_gltf.h" line="256" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L256">
      lv_gltf_recenter [#lv_gltf_recenter]

      Set the focal coordinates to the center point of the model object

      ```c title=" " lineNumbers=1
      void lv_gltf_recenter(lv_obj_t *obj, lv_gltf_model_t *model)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                           | Description                                                                            |
      | ------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" />               | pointer to a glTF viewer object                                                        |
      | `model` | <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> | a model attached to this viewer. **May** be `NULL`. Pass NULL to use the primary model |
    </ApiMember>

    <ApiMember kind="function" name="lv_intersect_ray_with_plane" file="public/widgets/lv_gltf.h" line="426" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L426">
      lv_intersect_ray_with_plane [#lv_intersect_ray_with_plane]

      Get the point that a given ray intersects with a specified plane at, if any

      ```c title=" " lineNumbers=1
      lv_result_t lv_intersect_ray_with_plane(const lv_3dray_t *ray, const lv_3dplane_t *plane, lv_3dpoint_t *collision_point)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name              | Type                                                           | Description                                                                                      |
      | ----------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
      | `ray`             | <ApiLink name="lv_3dray_t" display="const lv_3dray_t *" />     | the intersection test ray                                                                        |
      | `plane`           | <ApiLink name="lv_3dplane_t" display="const lv_3dplane_t *" /> | the plane to test ray intersection with                                                          |
      | `collision_point` | <ApiLink name="lv_3dpoint_t" display="lv_3dpoint_t *" />       | output <ApiLink name="lv_3dpoint_t" /> holder, values are only valid if true is the return value |

      **Returns:** <ApiLink name="lv_result_t" /> — LV\_RESULT\_OK if intersection, LV\_RESULT\_INVALID if no intersection
    </ApiMember>

    <ApiMember kind="function" name="lv_gltf_world_to_screen" file="public/widgets/lv_gltf.h" line="453" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L453">
      lv_gltf_world_to_screen [#lv_gltf_world_to_screen]

      Get the screen position of a 3d point

      ```c title=" " lineNumbers=1
      lv_result_t lv_gltf_world_to_screen(lv_obj_t *obj, const lv_3dpoint_t world_pos, lv_point_t *screen_pos)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name         | Type                                                         | Description                                                        |
      | ------------ | ------------------------------------------------------------ | ------------------------------------------------------------------ |
      | `obj`        | <ApiLink name="lv_obj_t" display="lv_obj_t *" />             | pointer to a GLTF viewer object                                    |
      | `world_pos`  | <ApiLink name="lv_3dpoint_t" display="const lv_3dpoint_t" /> | world position to convert                                          |
      | `screen_pos` | <ApiLink name="lv_point_t" display="lv_point_t *" />         | the resulting point, in pixels. only valid if return value is true |

      **Returns:** <ApiLink name="lv_result_t" /> — LV\_RESULT\_OK if conversion valid, LV\_RESULT\_INVALID if no valid conversion
    </ApiMember>
  </ApiTab>
</ApiTabs>

Enums [#enums]

<ApiMember kind="enum" name="lv_gltf_aa_mode_t" file="public/widgets/lv_gltf.h" line="34" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L34">
  lv_gltf_aa_mode_t [#lv_gltf_aa_mode_t]

  | Name                      | Value | Description       |
  | ------------------------- | ----- | ----------------- |
  | `LV_GLTF_AA_MODE_OFF`     | `0`   |                   |
  | `LV_GLTF_AA_MODE_ON`      | `1`   | Anti aliasing off |
  | `LV_GLTF_AA_MODE_DYNAMIC` | `2`   | Anti aliasing on  |
</ApiMember>

<TypeUsedBy name="lv_gltf_aa_mode_t" count="1">
  * `lv_gltf_set_antialiasing_mode` — param `value`
</TypeUsedBy>

<ApiMember kind="enum" name="lv_gltf_bg_mode_t" file="public/widgets/lv_gltf.h" line="40" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/widgets/lv_gltf.h#L40">
  lv_gltf_bg_mode_t [#lv_gltf_bg_mode_t]

  | Name                          | Value | Description                                                                   |
  | ----------------------------- | ----- | ----------------------------------------------------------------------------- |
  | `LV_GLTF_BG_MODE_SOLID`       | `0`   |                                                                               |
  | `LV_GLTF_BG_MODE_ENVIRONMENT` | `1`   | Solid background. Use `lv_obj_set_style_bg_color` to set the background color |
</ApiMember>

<TypeUsedBy name="lv_gltf_bg_mode_t" count="1">
  * `lv_gltf_set_background_mode` — param `value`
</TypeUsedBy>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_gltf_model.h&#x22;, &#x22;lv_3dmath.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_area.h&#x22;]" includedBy="[&#x22;lvgl.h&#x22;]" transitiveIncludes="[&#x22;lv_event.h&#x22;, &#x22;lv_gltf_model_loader.h&#x22;, &#x22;lv_gltf_model_node.h&#x22;, &#x22;lv_math.h&#x22;]" />
