Add getters to camera
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user