|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <scene/animation/skeleton.h>
Public Member Functions | |
| void | addTime (float delta) |
| Animation * | animation () const |
| void | blend (const Skeleton *skel1, const Skeleton *skel2, float alpha) |
| float | currentTime () const |
| bool | looping () const |
| int | numNodes () const |
| void | setAnimation (Animation *value) |
| void | setCurrentTime (float value) |
| void | setGraph (GraphNode *graph) |
| void | setLooping (bool value) |
| Skeleton (GraphNode *graph) | |
| void | updateGraph () |
Definition at line 30 of file skeleton.h.
|
explicit |
Definition at line 33 of file skeleton.cpp.
Referenced by blend().
| void visutwin::canvas::Skeleton::addTime | ( | float | delta | ) |
Definition at line 103 of file skeleton.cpp.
References visutwin::canvas::InterpolatedKey::pos, visutwin::canvas::InterpolatedKey::quat, visutwin::canvas::InterpolatedKey::scale, and visutwin::canvas::InterpolatedKey::written.
Referenced by setCurrentTime().
|
inline |
Definition at line 36 of file skeleton.h.
| void visutwin::canvas::Skeleton::blend | ( | const Skeleton * | skel1, |
| const Skeleton * | skel2, | ||
| float | alpha ) |
Definition at line 176 of file skeleton.cpp.
References numNodes(), and Skeleton().
|
inline |
Definition at line 39 of file skeleton.h.
|
inline |
Definition at line 49 of file skeleton.h.
|
inline |
Definition at line 41 of file skeleton.h.
Referenced by blend().
| void visutwin::canvas::Skeleton::setAnimation | ( | Animation * | value | ) |
Definition at line 38 of file skeleton.cpp.
References setCurrentTime().
| void visutwin::canvas::Skeleton::setCurrentTime | ( | float | value | ) |
Definition at line 44 of file skeleton.cpp.
References addTime(), and updateGraph().
Referenced by setAnimation().
| void visutwin::canvas::Skeleton::setGraph | ( | GraphNode * | graph | ) |
Definition at line 207 of file skeleton.cpp.
|
inline |
Definition at line 48 of file skeleton.h.
| void visutwin::canvas::Skeleton::updateGraph | ( | ) |
Definition at line 222 of file skeleton.cpp.
References visutwin::canvas::GraphNode::setLocalPosition(), visutwin::canvas::GraphNode::setLocalRotation(), and visutwin::canvas::GraphNode::setLocalScale().
Referenced by setCurrentTime().