mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-09 02:03:22 +08:00
20 lines
306 B
C
20 lines
306 B
C
#pragma once
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
struct BoneInfo
|
|
{
|
|
/*
|
|
For uniquely indentifying the bone and
|
|
for indexing bone transformation in shaders
|
|
*/
|
|
int id;
|
|
/*
|
|
map from bone name to offset matrix.
|
|
offset matrix transforms bone from bone space to local space
|
|
*/
|
|
glm::mat4 offset;
|
|
|
|
};
|
|
#pragma once
|