# fastgltf (/api/fastgltf)



Functions [#functions]

<ApiMember kind="function" name="getFastLocalTransformMatrix" file="libs/gltf/fastgltf/lv_fastgltf.hpp" line="29" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/fastgltf/lv_fastgltf.hpp#L29">
  getFastLocalTransformMatrix [#getfastlocaltransformmatrix]

  Computes the transform matrix for a given node a different way with less total operations

  ```c title=" " lineNumbers=1
  FASTGLTF_EXPORT auto fastgltf::getFastLocalTransformMatrix(const Node &node)
  ```

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

  | Name   | Type           |
  | ------ | -------------- |
  | `node` | `const Node &` |
</ApiMember>

<ApiMember kind="function" name="removeScale" file="libs/gltf/fastgltf/lv_fastgltf.hpp" line="70" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/fastgltf/lv_fastgltf.hpp#L70">
  removeScale [#removescale]

  Attempts to remove the scale component of a 4x4 matrix transform. Will silently fail if any of the component scales is 0 or near zero (which they should never be).

  ```c title=" " lineNumbers=1
  FASTGLTF_EXPORT void fastgltf::removeScale(fastgltf::math::fmat4x4 &matrix)
  ```

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

  | Name     | Type                        |
  | -------- | --------------------------- |
  | `matrix` | `fastgltf::math::fmat4x4 &` |
</ApiMember>

<ApiMember kind="function" name="namegen_iterate_scene_nodes" file="libs/gltf/fastgltf/lv_fastgltf.hpp" line="86" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/fastgltf/lv_fastgltf.hpp#L86">
  namegen_iterate_scene_nodes [#namegen_iterate_scene_nodes]

  ```cpp title="cpp" lineNumbers=1
  template <typename AssetType, typename Callback>
  FASTGLTF_EXPORT void fastgltf::namegen_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, Callback callback)
  ```

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

  | Name         | Type           |
  | ------------ | -------------- |
  | `asset`      | `AssetType &&` |
  | `sceneIndex` | `std::size_t`  |
  | `callback`   | `Callback`     |

  **Template Parameters:**

  | Name        | Type       | Description |
  | ----------- | ---------- | ----------- |
  | `AssetType` | `typename` |             |
  | `Callback`  | `typename` |             |
</ApiMember>

<ApiMember kind="function" name="findlight_iterate_scene_nodes" file="libs/gltf/fastgltf/lv_fastgltf.hpp" line="127" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/fastgltf/lv_fastgltf.hpp#L127">
  findlight_iterate_scene_nodes [#findlight_iterate_scene_nodes]

  ```cpp title="cpp" lineNumbers=1
  template <typename AssetType, typename Callback>
  FASTGLTF_EXPORT void fastgltf::findlight_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, math::fmat4x4 *initial, Callback callback)
  ```

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

  | Name         | Type              |
  | ------------ | ----------------- |
  | `asset`      | `AssetType &&`    |
  | `sceneIndex` | `std::size_t`     |
  | `initial`    | `math::fmat4x4 *` |
  | `callback`   | `Callback`        |

  **Template Parameters:**

  | Name        | Type       | Description |
  | ----------- | ---------- | ----------- |
  | `AssetType` | `typename` |             |
  | `Callback`  | `typename` |             |
</ApiMember>

<ApiMember kind="function" name="custom_iterate_scene_nodes" file="libs/gltf/fastgltf/lv_fastgltf.hpp" line="150" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/fastgltf/lv_fastgltf.hpp#L150">
  custom_iterate_scene_nodes [#custom_iterate_scene_nodes]

  \< Log only critical issues, when system may fail.

  \< Halt by default

  ```cpp title="cpp" lineNumbers=1
  template <typename Callback>
  FASTGLTF_EXPORT void fastgltf::custom_iterate_scene_nodes(lv_gltf_model_t *model, std::size_t sceneIndex, math::fmat4x4 *initial, Callback callback)
  ```

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

  | Name         | Type                                                           |
  | ------------ | -------------------------------------------------------------- |
  | `model`      | <ApiLink name="lv_gltf_model_t" display="lv_gltf_model_t *" /> |
  | `sceneIndex` | `std::size_t`                                                  |
  | `initial`    | `math::fmat4x4 *`                                              |
  | `callback`   | `Callback`                                                     |

  **Template Parameters:**

  | Name       | Type       | Description |
  | ---------- | ---------- | ----------- |
  | `Callback` | `typename` |             |
</ApiMember>
