Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Toggle main menu visibility
Loading...
Searching...
No Matches
Rig.hpp
1
#pragma once
2
3
#include <stdint.h>
4
#include <string>
5
#include <vector>
6
#include "../Math.hpp"
7
8
namespace
Grindstone::Formats::Rig::V1 {
9
const
uint32_t version = 1;
10
const
char
magicCode[5] =
"GRIG"
;
11
const
uint32_t magicSize = 4;
12
13
struct
Header
{
14
uint64_t totalFileSize = 0;
15
uint32_t version = 1;
16
uint32_t bonesCount = 0;
17
uint64_t boneDataOffset = 0;
18
uint64_t stringBlockSize = 0;
19
uint64_t stringBlockOffset = 0;
20
Math::Matrix4 globalInverseTransform;
21
};
22
23
struct
Bone
{
24
uint32_t boneNameStringOffset = 0;
25
uint32_t boneParentIndex;
26
Math::Matrix4 localBindTransform;
27
Math::Matrix4 inverseBindTransform;
28
};
29
}
Grindstone::Formats::Rig::V1::Bone
Definition
Rig.hpp:23
Grindstone::Formats::Rig::V1::Header
Definition
Rig.hpp:13
sources
code
Common
Formats
Rig.hpp
Generated by
1.17.0