Introduce Math.hpp and use typedef to make replacing glm with something else in the future simpler
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "InputDevice.hpp"
|
||||
#include "glm/vec2.hpp"
|
||||
#include "../Math/Math.hpp"
|
||||
|
||||
namespace openVulkanoCpp
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace openVulkanoCpp
|
||||
return GetAxis(InputKey::Mouse::Axis::AXIS_WHEEL_Y);
|
||||
}
|
||||
|
||||
[[nodiscard]] glm::vec2 GetMousePosition() const
|
||||
[[nodiscard]] Math::Vector2d GetMousePosition() const
|
||||
{
|
||||
return { mousePosX, mousePosY };
|
||||
}
|
||||
@@ -111,7 +111,7 @@ namespace openVulkanoCpp
|
||||
posY = mousePosY;
|
||||
}
|
||||
|
||||
glm::vec2 GetMousePosition(const IWindow* window) const
|
||||
[[nodiscard]] Math::Vector2d GetMousePosition(const IWindow* window) const
|
||||
{
|
||||
if (window == lastWindow)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user