Remove includes
This commit is contained in:
@@ -7,34 +7,39 @@
|
|||||||
|
|
||||||
#include "MorphableCamera.hpp"
|
#include "MorphableCamera.hpp"
|
||||||
#include "Controller/CameraController.hpp"
|
#include "Controller/CameraController.hpp"
|
||||||
#include "Input/InputManager.hpp"
|
|
||||||
#include "Input/InputKey.hpp"
|
|
||||||
#include "Math/Math.hpp"
|
|
||||||
|
|
||||||
namespace OpenVulkano::Scene
|
namespace OpenVulkano
|
||||||
{
|
{
|
||||||
class MorphableCameraController final : public CameraController
|
namespace Input
|
||||||
{
|
{
|
||||||
double m_animationDuration;
|
class InputAction;
|
||||||
double m_currentTime;
|
}
|
||||||
bool m_isMorphing;
|
|
||||||
bool m_targetMorphStatePerspective; // true for perspective, false for orthographic
|
|
||||||
|
|
||||||
Input::InputAction* m_actionMorph;
|
namespace Scene
|
||||||
bool m_wasMorphingKeyDown = false;
|
{
|
||||||
|
class MorphableCameraController final : public CameraController
|
||||||
|
{
|
||||||
|
double m_animationDuration;
|
||||||
|
double m_currentTime;
|
||||||
|
bool m_isMorphing;
|
||||||
|
bool m_targetMorphStatePerspective; // true for perspective, false for orthographic
|
||||||
|
|
||||||
public:
|
Input::InputAction* m_actionMorph;
|
||||||
MorphableCameraController(MorphableCamera* camera = nullptr);
|
bool m_wasMorphingKeyDown = false;
|
||||||
|
|
||||||
|
public:
|
||||||
|
MorphableCameraController(MorphableCamera* camera = nullptr);
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
||||||
void Init(MorphableCamera* camera);
|
void Init(MorphableCamera* camera);
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
void Tick() override;
|
void Tick() override;
|
||||||
|
|
||||||
void SetDuration(double duration) { m_animationDuration = duration; }
|
void SetDuration(const double duration) { m_animationDuration = duration; }
|
||||||
[[nodiscard]] double GetDuration() { return m_animationDuration; }
|
[[nodiscard]] double GetDuration() const { return m_animationDuration; }
|
||||||
void SetTargetState(bool toPerspective);
|
void SetTargetState(bool toPerspective);
|
||||||
void Reset() { m_currentTime = 0; }
|
void Reset() { m_currentTime = 0; }
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user