#include <Skeleton.hpp>
◆ Skeleton() [1/3]
◆ Skeleton() [2/3]
◆ Skeleton() [3/3]
◆ ~Skeleton()
C3D_API castor3d::Skeleton::~Skeleton |
( |
| ) |
|
|
override |
◆ begin() [1/2]
auto castor3d::Skeleton::begin |
( |
| ) |
|
|
inline |
- Returns
- An iterator to the first bone.
◆ begin() [2/2]
auto castor3d::Skeleton::begin |
( |
| ) |
const |
|
inline |
- Returns
- An iterator to the first bone.
◆ computeContainers()
C3D_API void castor3d::Skeleton::computeContainers |
( |
Mesh & |
mesh | ) |
|
Computes the bounding box and sphere for each bone, for given mesh.
◆ createAnimation()
Creates an animation.
- Parameters
-
[in] | name | The animation name |
- Returns
- The animation
◆ createBone()
C3D_API BoneSPtr castor3d::Skeleton::createBone |
( |
castor::String const & |
name, |
|
|
castor::Matrix4x4f const & |
offset |
|
) |
| |
Creates a bone.
- Parameters
-
[in] | name | The bone name. |
[in] | offset | The transfromation matrix from mesh space to bone space. |
◆ end() [1/2]
auto castor3d::Skeleton::end |
( |
| ) |
|
|
inline |
- Returns
- An iterator to the end of the bones array.
◆ end() [2/2]
auto castor3d::Skeleton::end |
( |
| ) |
const |
|
inline |
- Returns
- An iterator to the end of the bones array.
◆ findBone()
C3D_API BoneSPtr castor3d::Skeleton::findBone |
( |
castor::String const & |
name | ) |
const |
Finds a bone from a name.
- Parameters
-
◆ getBonesCount()
size_t castor3d::Skeleton::getBonesCount |
( |
| ) |
const |
|
inline |
◆ getContainers()
std::vector< castor::BoundingBox > const & castor3d::Skeleton::getContainers |
( |
Mesh & |
mesh | ) |
const |
|
inline |
◆ getGlobalInverseTransform()
castor::Matrix4x4f const & castor3d::Skeleton::getGlobalInverseTransform |
( |
| ) |
const |
|
inline |
- Returns
- The global inverse transform.
◆ getScene()
SceneRPtr castor3d::Skeleton::getScene |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ removeAnimation()
C3D_API void castor3d::Skeleton::removeAnimation |
( |
castor::String const & |
name | ) |
|
Removes an animation.
- Parameters
-
[in] | name | The animation name |
◆ setBoneParent()
C3D_API void castor3d::Skeleton::setBoneParent |
( |
BoneSPtr |
bone, |
|
|
BoneSPtr |
parent |
|
) |
| |
adds a bone to another bone's children
- Parameters
-
[in] | bone | The bone. |
[in] | parent | The parent bone. |
◆ setGlobalInverseTransform()
void castor3d::Skeleton::setGlobalInverseTransform |
( |
castor::Matrix4x4f const & |
transform | ) |
|
|
inline |
Sets the global inverse transform.
- Parameters
-
[in] | transform | The new value. |
◆ BinaryParser< Skeleton >
◆ BinaryWriter< Skeleton >
The documentation for this class was generated from the following file: