Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
RigAsset.hpp
1#pragma once
2
3#include <vector>
4#include "Common/Math.hpp"
5#include "EngineCore/Assets/Asset.hpp"
6
7namespace Grindstone {
8 struct RigAsset : public Asset {
9 struct Bone {
10 Math::Matrix4 localBindTransform;
11 Math::Matrix4 inverseBindTransform;
12 uint32_t parentBoneIndex;
13 };
14
15 Math::Matrix4 globalInverseTransform;
16 std::vector<Bone> bones;
17 std::map<std::string, uint32_t> boneNameToIndex;
18
19 RigAsset(Uuid uuid, std::string_view name) : Asset(uuid, name) {}
20
21 DEFINE_ASSET_TYPE("Rig", AssetType::Rig)
22 };
23}
Definition Uuid.hpp:7
Definition ArchiveContentFile.hpp:8
Definition RigAsset.hpp:9