fastgltf
API reference for namespace fastgltf
Functions
getFastLocalTransformMatrix
Computes the transform matrix for a given node a different way with less total operations
FASTGLTF_EXPORT auto fastgltf::getFastLocalTransformMatrix(const Node &node)| Name | Type |
|---|---|
node | const Node & |
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).
FASTGLTF_EXPORT void fastgltf::removeScale(fastgltf::math::fmat4x4 &matrix)| Name | Type |
|---|---|
matrix | fastgltf::math::fmat4x4 & |
namegen_iterate_scene_nodes
template <typename AssetType, typename Callback>
FASTGLTF_EXPORT void fastgltf::namegen_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, Callback callback)| Name | Type |
|---|---|
asset | AssetType && |
sceneIndex | std::size_t |
callback | Callback |
Template Parameters:
| Name | Type | Description |
|---|---|---|
AssetType | typename | |
Callback | typename |
findlight_iterate_scene_nodes
template <typename AssetType, typename Callback>
FASTGLTF_EXPORT void fastgltf::findlight_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, math::fmat4x4 *initial, Callback callback)| Name | Type |
|---|---|
asset | AssetType && |
sceneIndex | std::size_t |
initial | math::fmat4x4 * |
callback | Callback |
Template Parameters:
| Name | Type | Description |
|---|---|---|
AssetType | typename | |
Callback | typename |
custom_iterate_scene_nodes
< Log only critical issues, when system may fail.
< Halt by default
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)| Name | Type |
|---|---|
model | lv_gltf_model_t * |
sceneIndex | std::size_t |
initial | math::fmat4x4 * |
callback | Callback |
Template Parameters:
| Name | Type | Description |
|---|---|---|
Callback | typename |
How is this guide?
Last updated on