Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
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
7
namespace
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
}
Grindstone::Uuid
Definition
Uuid.hpp:7
Grindstone
Definition
ArchiveContentFile.hpp:8
Grindstone::RigAsset::Bone
Definition
RigAsset.hpp:9
plugins
Grindstone.Renderables.3D
include
Assets
RigAsset.hpp
Generated by
1.17.0