From ad036ad2b6a6bad87691f73e335c059ccd6c6d66 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Fri, 2 Aug 2024 16:57:47 +0200 Subject: [PATCH] Add getters to camera --- openVulkanoCpp/Scene/Camera.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openVulkanoCpp/Scene/Camera.hpp b/openVulkanoCpp/Scene/Camera.hpp index fa127f8..08dfac3 100644 --- a/openVulkanoCpp/Scene/Camera.hpp +++ b/openVulkanoCpp/Scene/Camera.hpp @@ -148,6 +148,10 @@ namespace OpenVulkano::Scene [[nodiscard]] virtual bool IsPerspective() 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