Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
SkeletalAnimationClip.h
Go to the documentation of this file.
1/**
2 * @file SkeletalAnimationClip.h
3 * @ingroup mnd_animation
4 * @brief Per-bone TRS keyframe tracks driving a Skeleton.
5 */
6
7#pragma once
8
9#include <string>
10#include <vector>
11
12#include "Types.h"
13#include "animation/KeyFrame.h"
14
15namespace mnd
16{
17
19{
20 i32 boneIndex = -1; ///< Index into Skeleton::bones.
21 std::vector<KeyFrameVec3> positions;
22 std::vector<KeyFrameQuat> rotations;
23 std::vector<KeyFrameVec3> scales;
24};
25
27{
28 std::string name;
29 f32 duration = 0.0f;
30 bool looping = true;
31 std::vector<BoneTrack> tracks;
32};
33
34} // namespace mnd
Shared keyframe value types for transform-track animation.
Engine-wide primitive type aliases and GLM math imports.
float f32
32-bit IEEE float — the standard GL scalar type.
Definition Types.h:40
int32_t i32
Signed 32-bit integer — used for GL enums and sizes.
Definition Types.h:37
std::vector< KeyFrameVec3 > scales
std::vector< KeyFrameVec3 > positions
i32 boneIndex
Index into Skeleton::bones.
std::vector< KeyFrameQuat > rotations
std::vector< BoneTrack > tracks