|
Oxygen Engine
Modern C++ 3D Engine using OpenGL
|
Skinned mesh skeleton. More...
#include <OxygenEngine/scene/skin.h>
Collaboration diagram for oe::scene::skin::Armature:Public Member Functions | |
| void | addBone (NodePtr node, const AABB &bone_bbox, const glm::mat4 &inverse_bind_matrix) |
| Add a bone to the armature. | |
| void | update () |
| Update armature. | |
Public Attributes | |
| scene::NodePtr | root_node |
| std::vector< Bone > | bones |
| std::vector< glm::mat4 > | bones_matrices |
Skinned mesh skeleton.
|
inline |
Add a bone to the armature.
| node | Node bound to the bone, if none provided its assumed that the bone will stay at same transform |
| bone_bbox | Bounding box of the bone (used to compute the bounding box of the armature) |
| inverse_bind_matrix | Matrix to convert model space to bone space |
| void oe::scene::skin::Armature::update | ( | ) |
Update armature.
Update bone matrices and bounding boxes