Classes¶
Assets/Animations
Brief descriptions¶
Structures |
|
Describes animation data. |
|
Encapsulates frame event data as present in animation asset. |
|
Encapsulates a collection of events attached to the frame as present in animation asset. |
|
Provides access the data from an animation asset. |
|
Detailed information¶
AnimationDataDescriptor¶
engine/core/modules/assets/include/nau/assets/animation_asset_accessor.h
-
struct AnimationDataDescriptor¶
Describes animation data.
Public Types
Public Functions
-
inline bool operator==(const AnimationDataDescriptor &other) const¶
-
inline bool operator!=(const AnimationDataDescriptor &other) const¶
Public Members
-
size_t animationIndex = 0¶
-
size_t channelIndex = 0¶
-
DataType dataType = DataType::Unsupported¶
-
InterpolationType interpolation = InterpolationType::No¶
-
eastl::string name¶
-
inline bool operator==(const AnimationDataDescriptor &other) const¶
FrameEventData¶
engine/core/modules/assets/include/nau/assets/animation_asset_accessor.h
-
struct FrameEventData¶
Encapsulates frame event data as present in animation asset.
See FrameEvent.
FrameData¶
engine/core/modules/assets/include/nau/assets/animation_asset_accessor.h
-
struct FrameData¶
Encapsulates a collection of events attached to the frame as present in animation asset.
See Frame.
IAnimationAssetAccessor¶
engine/core/modules/assets/include/nau/assets/animation_asset_accessor.h
-
struct IAnimationAssetAccessor : public nau::IAssetAccessor¶
Provides access the data from an animation asset.
Public Types
-
using TTimesContainer = eastl::vector<float>¶
A type of keframes timestamps collection.
Public Functions
- virtual IAssetAccessor AnimationDataDescriptor getDataDescriptor () const =0
Retrieves animation description from the asset.
- Returns:
Animation descriptor.
-
virtual async::Task copyVectors(const AnimationDataDescriptor &desc, TTimesContainer ×, TDataContainer<math::vec3> &data) const = 0¶
Retrieves vector frame data from the asset.
- Parameters:
desc – [in] Animation asset description.
times – [out] A collection of extracted keyframes timesteps. Each element is a duration (in seconds) from the animation start until the moment when playback reaches the corresponding keyframe.
data – [out] A collection of extracted vector per-keframe data.
- Returns:
Task object providing operation status.
-
virtual async::Task copyRotations(const AnimationDataDescriptor &desc, TTimesContainer ×, TDataContainer<math::quat> &data) const = 0¶
Retrieves rotation frame data from the asset.
- Parameters:
desc – [in] Animation asset description.
times – [out] A collection of extracted keyframes timesteps. Each element is a duration (in seconds) from the animation start until the moment when playback reaches the corresponding keyframe.
data – [out] A collection of extracted rotation per-keframe data.
- Returns:
Task object providing operation status.
-
virtual async::Task copyFramesData(const AnimationDataDescriptor &desc, DataBlock &data) const = 0¶
Retrieves additional frame data from the asset.
This function is used to extract frame events data from the asset.
- Parameters:
desc – [in] Animation asset description.
data – [out] Data block to transfer the extracted data to.
- Returns:
Task object providing operation status.
-
virtual nau::Ptr<struct ISkeletonAssetAccessor> getSkeletonAsset() const = 0¶
-
using TTimesContainer = eastl::vector<float>¶
assets::AnimationAssetTag¶
engine/core/modules/assets/include/nau/assets/asset_ref.h
-
struct AnimationAssetTag¶
Temporary animation asset tags.