GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::Pose Struct Reference

Local pose of a model. More...

#include <GREM/resource/Model.hpp>

Public Member Functions

constexpr operator PoseReference () noexcept
 Get a reference to the pose.
constexpr operator PoseView () const noexcept
 Get a read-only view over the pose.
Pose & applyAnimation (const AnimationState &animationState)
 Add the influence of an animation state to the current pose.

Public Attributes

ArrayList< Joint > localJoints {}
 Current local joints of the pose.
ArrayList< float > localMorphTargetWeights {}
 Current local morph target weights of the pose.

Detailed Description

Local pose of a model.

Member Function Documentation

◆ operator PoseReference()

grem::resource::Model::Pose::operator PoseReference ( )
inlineconstexprnoexcept

Get a reference to the pose.

Returns
the pose reference.

◆ operator PoseView()

grem::resource::Model::Pose::operator PoseView ( ) const
inlineconstexprnoexcept

Get a read-only view over the pose.

Returns
the pose view.

◆ applyAnimation()

Pose & grem::resource::Model::Pose::applyAnimation ( const AnimationState & animationState)
inline

Add the influence of an animation state to the current pose.

Parameters
animationStateanimation state to apply to the joints and morph target weights.
Returns
*this, for chaining.

Member Data Documentation

◆ localJoints

ArrayList<Joint> grem::resource::Model::Pose::localJoints {}

Current local joints of the pose.

◆ localMorphTargetWeights

ArrayList<float> grem::resource::Model::Pose::localMorphTargetWeights {}

Current local morph target weights of the pose.


The documentation for this struct was generated from the following file: