The U4DArmatureData class represents the bone armature of the 3D entity.
More...
The U4DArmatureData class represents the bone armature of the 3D entity.
◆ addBoneToTree()
Method which adds a bone to the armature tree.
- Parameters
-
uParent | Parent of the bone |
uChild | Bone to add |
◆ heapSorting()
void U4DEngine::U4DArmatureData::heapSorting |
( |
std::vector< U4DBoneData * > & |
uBoneDataContainer, |
|
|
int |
boneVertexWeightIndex |
|
) |
| |
Method to heap sort the bones.
- Parameters
-
uBoneDataContainer | Armature bone container |
boneVertexWeightIndex | Bone vertex weight array index |
◆ prepareAndSendBoneDataToBuffer()
void U4DEngine::U4DArmatureData::prepareAndSendBoneDataToBuffer |
( |
std::vector< U4DBoneData * > & |
uBoneDataContainer, |
|
|
int |
boneVertexWeightIndex |
|
) |
| |
Method which sends bone weight and indices (attributes) to the opengl buffer.
- Parameters
-
uBoneDataContainer | Armature bone container |
boneVertexWeightIndex | Bone vertex weight array index |
◆ reHeapDown()
void U4DEngine::U4DArmatureData::reHeapDown |
( |
std::vector< U4DBoneData * > & |
uBoneDataContainer, |
|
|
int |
boneVertexWeightIndex, |
|
|
int |
root, |
|
|
int |
bottom |
|
) |
| |
Method use to heap-down sort the bones.
- Parameters
-
uBoneDataContainer | Armature bone container |
boneVertexWeightIndex | Bone vertex weight array index |
root | index of root bone |
bottom | bottom index |
◆ removeBoneFromTree()
void U4DEngine::U4DArmatureData::removeBoneFromTree |
( |
std::string |
uChildBoneName | ) |
|
Method which removes a bone from the armature tree.
- Parameters
-
uChildBoneName | Bone to remove |
◆ setRootBone()
void U4DEngine::U4DArmatureData::setRootBone |
( |
U4DBoneData * |
uBoneData | ) |
|
Method which assigns a bone to be the root bone for the armature.
- Parameters
-
uBoneData | Bone to assign as root bone |
◆ swap()
void U4DEngine::U4DArmatureData::swap |
( |
std::vector< U4DBoneData * > & |
uBoneDataContainer, |
|
|
int |
uindex1, |
|
|
int |
uindex2 |
|
) |
| |
Method used to swap the bone's array index.
- Parameters
-
uBoneDataContainer | Armature bone container |
uindex1 | Bone array index |
uindex2 | Bone array index |