Class Pose
Abstract interface for a skeletal animation pose.
class Pose
: dlib.core.ownership.Owner;
Implementations should allocate and fill boneMatrices with up to
128 bone transforms. If the Pose object is set in GraphicsState,
its bone matrices will be fed to mesh vertex shaders.
A single bone matrix applies a bone's local transform to a model-space vertex.
Constructors
| Name | Description |
this
(owner)
|
Constructs a pose object.
|
Fields
| Name | Type | Description |
boneMatrices
|
dlib.math.matrix.Matrix!(float,4L)[] | Array of bone transformation matrices (max 128).
|
playing
|
bool | True if the animation is currently playing.
|
time
|
Time | Animation timing information.
|
valid
|
bool | True if the pose is valid and ready for use.
|
Methods
| Name | Description |
pause
()
|
Pauses animation playback.
|
play
()
|
Starts or resumes animation playback.
|
reset
()
|
Resets the animation time to zero.
|
update
(t)
|
Updates the pose for the given time.
|