Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::skin::Armature Struct Reference

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< Bonebones
 
std::vector< glm::mat4 > bones_matrices
 

Detailed Description

Skinned mesh skeleton.

Member Function Documentation

◆ addBone()

void oe::scene::skin::Armature::addBone ( NodePtr  node,
const AABB bone_bbox,
const glm::mat4 &  inverse_bind_matrix 
)
inline

Add a bone to the armature.

Parameters
nodeNode bound to the bone, if none provided its assumed that the bone will stay at same transform
bone_bboxBounding box of the bone (used to compute the bounding box of the armature)
inverse_bind_matrixMatrix to convert model space to bone space

◆ update()

void oe::scene::skin::Armature::update ( )

Update armature.

Update bone matrices and bounding boxes


The documentation for this struct was generated from the following file: