Ocular Engine
AxisGizmoRoutine.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_GIZMO_AXIS_ROUTINE__H__
19 #define __H__OCULAR_EDITOR_GIZMO_AXIS_ROUTINE__H__
20 
21 #include "Scene/ARoutine.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
37  class AxisComponentGizmo;
38 
48  {
49  public:
50 
52  virtual ~AxisGizmoRoutine();
53 
54  virtual void onUpdate(float delta) override;
55 
56  protected:
57 
58  virtual void setParent(Core::SceneObject* object) override;
59 
60  void updatePositionAxisX();
61  void updatePositionAxisY();
62  void updatePositionAxisZ();
63 
64  //------------------------------------------------------------
65 
66  AxisComponentGizmo* m_ParentCast;
67  Math::Vector2i m_LastMousePos;
68 
69  private:
70  };
71  }
75 }
80 //------------------------------------------------------------------------------------------
81 
82 #endif
Definition: AxisGizmoRoutine.hpp:47
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ARoutine.hpp:59
virtual void onUpdate(float delta) override
Definition: AxisGizmoRoutine.cpp:49
Definition: Vector2.hpp:44
Definition: SceneObject.hpp:93
Definition: AxisComponentGizmo.hpp:45