Plasma Engine  2.0
Loading...
Searching...
No Matches
SampleFrameAnimNode.h
1#pragma once
2
3#include <Core/ResourceManager/ResourceHandle.h>
4#include <RendererCore/AnimationSystem/AnimGraph/AnimGraphNode.h>
5#include <RendererCore/AnimationSystem/AnimationClipResource.h>
6
7class PL_RENDERERCORE_DLL plSampleFrameAnimNode : public plAnimGraphNode
8{
9 PL_ADD_DYNAMIC_REFLECTION(plSampleFrameAnimNode, plAnimGraphNode);
10
12 // plAnimGraphNode
13
14protected:
15 virtual plResult SerializeNode(plStreamWriter& stream) const override;
16 virtual plResult DeserializeNode(plStreamReader& stream) override;
17
18 virtual void Step(plAnimController& ref_controller, plAnimGraphInstance& ref_graph, plTime tDiff, const plSkeletonResource* pSkeleton, plGameObject* pTarget) const override;
19
21 // plSampleFrameAnimNode
22
23public:
24 void SetClip(const char* szClip);
25 const char* GetClip() const;
26
27 plHashedString m_sClip; // [ property ]
28 float m_fNormalizedSamplePosition = 0.0f; // [ property ]
29
30private:
31 plAnimGraphNumberInputPin m_InNormalizedSamplePosition; // [ property ]
32 plAnimGraphNumberInputPin m_InAbsoluteSamplePosition; // [ property ]
33 plAnimGraphLocalPoseOutputPin m_OutPose; // [ property ]
34};
Definition AnimController.h:52
Definition AnimGraphInstance.h:15
Definition AnimGraphPins.h:194
Base class for all nodes in an plAnimGraphInstance.
Definition AnimGraphNode.h:36
Definition AnimGraphPins.h:108
This class represents an object inside the world.
Definition GameObject.h:32
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
Definition SampleFrameAnimNode.h:8
Definition SkeletonResource.h:47
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12