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

Reference to a local pose of a model. More...

#include <GREM/resource/Model.hpp>

Public Member Functions

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

Public Attributes

Joint * localJoints
 Non-owning pointer to the current local joints of the pose.
float * localMorphTargetWeights
 Non-owning pointer to the current local morph target weights of the pose.

Detailed Description

Reference to a local pose of a model.

Member Function Documentation

◆ operator PoseView()

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

Get a read-only view over the pose.

Returns
the pose view.

◆ applyAnimation()

PoseReference grem::resource::Model::PoseReference::applyAnimation ( const AnimationState & animationState) const

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

Joint* grem::resource::Model::PoseReference::localJoints

Non-owning pointer to the current local joints of the pose.

◆ localMorphTargetWeights

float* grem::resource::Model::PoseReference::localMorphTargetWeights

Non-owning pointer to the current local morph target weights of the pose.


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