fastgltf

API reference for namespace fastgltf

Report on GitHub

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)
Parameters
NameType
nodeconst 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)
Parameters
NameType
matrixfastgltf::math::fmat4x4 &

namegen_iterate_scene_nodes

cpp
template <typename AssetType, typename Callback>
FASTGLTF_EXPORT void fastgltf::namegen_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, Callback callback)
Parameters
NameType
assetAssetType &&
sceneIndexstd::size_t
callbackCallback

Template Parameters:

NameTypeDescription
AssetTypetypename
Callbacktypename

findlight_iterate_scene_nodes

cpp
template <typename AssetType, typename Callback>
FASTGLTF_EXPORT void fastgltf::findlight_iterate_scene_nodes(AssetType &&asset, std::size_t sceneIndex, math::fmat4x4 *initial, Callback callback)
Parameters
NameType
assetAssetType &&
sceneIndexstd::size_t
initialmath::fmat4x4 *
callbackCallback

Template Parameters:

NameTypeDescription
AssetTypetypename
Callbacktypename

custom_iterate_scene_nodes

< Log only critical issues, when system may fail.

< Halt by default

cpp
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)
Parameters
NameType
modellv_gltf_model_t *
sceneIndexstd::size_t
initialmath::fmat4x4 *
callbackCallback

Template Parameters:

NameTypeDescription
Callbacktypename

How is this guide?

Last updated on

On this page