|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Skeleton definition loaded from glTF skin data. More...
#include <SkinAsset.h>
Public Member Functions | |
| Skin () | |
| Creates a loaded skin with no joints. | |
| uint32_t | getBoneCount () const |
| Getter. | |
| const Joint & | getJoint (uint32_t index) const |
| Getter. | |
| const std::vector< Joint > & | getJoints () const |
| Getter. | |
| int32_t | getSkeletonRootIndex () const |
| Getter. | |
| int32_t | findJointByName (const std::string &name) const |
| Finds joint index by name. | |
| void | buildNameIndex () |
| Rebuilds the name-to-index lookup table. | |
| Public Member Functions inherited from Asset::AssetBase | |
| AssetBase (bool initializeDefaultEntity=false) | |
| Creates a base asset and optionally allocates its default ECS entity. | |
| virtual | ~AssetBase () |
| Releases base asset resources. | |
| CpuLoadingState | getLoadingState () |
| Gets the loading state of this asset. | |
| void | requestLoad () |
| If this asset is in the UNLOADED state it will get added to the assets to load. | |
| virtual void | unload () |
| Base function for unloading the ecs data. | |
| entt::entity | getEntity () const |
| Getter for data. | |
Public Attributes | |
| std::vector< Joint > | joints_ |
| Joint hierarchy and bind-pose data. | |
| int32_t | skeletonRootIndex_ = -1 |
| Root joint index, or -1 when no root is assigned. | |
| glm::mat4 | armatureTransform_ = glm::mat4(1.0f) |
| Transform applied by the source armature node. | |
Private Attributes | |
| std::unordered_map< std::string, int32_t > | jointNameMap_ |
Additional Inherited Members | |
| Protected Member Functions inherited from Asset::AssetBase | |
| virtual void | updateLoadingState () |
| Updates loadingState from derived asset data. | |
| Protected Attributes inherited from Asset::AssetBase | |
| CpuLoadingState | loadingState = UNLOADED |
| Current CPU loading state. | |
| entt::registry & | mainRegistry |
| Registry that owns this asset's ECS data. | |
| entt::entity | data |
| Entity containing the asset's component data. | |
Skeleton definition loaded from glTF skin data.
Definition at line 30 of file SkinAsset.h.
| Engine::Assets::Skin::Skin | ( | ) |
Creates a loaded skin with no joints.
|
inline |
Rebuilds the name-to-index lookup table.
Definition at line 69 of file SkinAsset.h.
References jointNameMap_, and joints_.
|
inlinenodiscard |
Finds joint index by name.
Definition at line 61 of file SkinAsset.h.
References jointNameMap_.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
| glm::mat4 Engine::Assets::Skin::armatureTransform_ = glm::mat4(1.0f) |
Transform applied by the source armature node.
Definition at line 80 of file SkinAsset.h.
|
private |
Definition at line 83 of file SkinAsset.h.
Referenced by buildNameIndex(), and findJointByName().
| std::vector<Joint> Engine::Assets::Skin::joints_ |
Joint hierarchy and bind-pose data.
Definition at line 78 of file SkinAsset.h.
Referenced by buildNameIndex(), getBoneCount(), getJoint(), and getJoints().
| int32_t Engine::Assets::Skin::skeletonRootIndex_ = -1 |
Root joint index, or -1 when no root is assigned.
Definition at line 79 of file SkinAsset.h.
Referenced by getSkeletonRootIndex().