Add getters to camera

This commit is contained in:
Georg Hagen
2024-08-02 16:57:47 +02:00
parent 057a64710c
commit ad036ad2b6

View File

@@ -148,6 +148,10 @@ namespace OpenVulkano::Scene
[[nodiscard]] virtual bool IsPerspective() const { return false; } [[nodiscard]] virtual bool IsPerspective() const { return false; }
[[nodiscard]] virtual bool IsOrtho() const { return false; } [[nodiscard]] virtual bool IsOrtho() const { return false; }
float GetWidth() const { return m_width; }
float GetHeight() const { return m_height; }
Math::Vector2f GetSize() const { return { m_width, m_height }; }
}; };
class PerspectiveCamera : public Camera class PerspectiveCamera : public Camera