Fixed dumb mistakes with references, got rid of unnecessary OpenVulkano::
This commit is contained in:
@@ -18,26 +18,26 @@ namespace OpenVulkano::Scene
|
||||
{
|
||||
class SimpleAnimationController : public ITickable
|
||||
{
|
||||
OpenVulkano::Scene::Node *m_node = nullptr;
|
||||
OpenVulkano::Math::PoseF m_targetPose;
|
||||
OpenVulkano::Math::PoseF m_initialPose;
|
||||
Node *m_node = nullptr;
|
||||
Math::PoseF m_targetPose;
|
||||
Math::PoseF m_initialPose;
|
||||
double m_duration = 0;
|
||||
double m_elapsed = 0;
|
||||
|
||||
public:
|
||||
OpenVulkano::Event<SimpleAnimationController *> m_completionEvent;
|
||||
Event<SimpleAnimationController *> m_completionEvent;
|
||||
|
||||
SimpleAnimationController() = default;
|
||||
|
||||
void Reset() { m_elapsed = 0; }
|
||||
void SwapPoses() { std::swap(m_initialPose, m_targetPose); }
|
||||
|
||||
OpenVulkano::Scene::Node* GetNode() { return m_node; }
|
||||
void SetNode(OpenVulkano::Scene::Node *node) { m_node = node; }
|
||||
Node* GetNode() { return m_node; }
|
||||
void SetNode(Node *node) { m_node = node; }
|
||||
|
||||
const OpenVulkano::Math::PoseF GetInitialPose() { return m_initialPose; }
|
||||
const OpenVulkano::Math::PoseF GetTargetPose() { return m_targetPose; }
|
||||
void SetPoses(const OpenVulkano::Math::PoseF &initialPose, const OpenVulkano::Math::PoseF &targetPose) { m_initialPose = initialPose; m_targetPose = targetPose; }
|
||||
const Math::PoseF& GetInitialPose() { return m_initialPose; }
|
||||
const Math::PoseF& GetTargetPose() { return m_targetPose; }
|
||||
void SetPoses(const Math::PoseF &initialPose, const Math::PoseF &targetPose) { m_initialPose = initialPose; m_targetPose = targetPose; }
|
||||
|
||||
double GetDuration() { return m_duration; }
|
||||
void SetDuration(double duration) { m_duration = duration; }
|
||||
|
||||
Reference in New Issue
Block a user