added small change to IWindow to be able to get the window size from the interface pointer, and not needing to use glfw for it

This commit is contained in:
2026-01-19 16:59:44 +01:00
parent 473ff0840d
commit 37958449a2
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,11 @@ void TSE::IWindow::BaseUpdate() const
Time::Update(); Time::Update();
} }
TSE::Vector2 TSE::IWindow::GetSize() const
{
return Vector2({width, height});
}
TSE::IWindow::~IWindow() TSE::IWindow::~IWindow()
{ {
AudioEngine::Destroy(); AudioEngine::Destroy();

View File

@@ -2,6 +2,7 @@
#include "IRenderTarget.hpp" #include "IRenderTarget.hpp"
#include "Types.hpp" #include "Types.hpp"
#include "Vector2.hpp"
namespace TSE namespace TSE
{ {
@@ -20,6 +21,7 @@ namespace TSE
bool BaseInit() const; bool BaseInit() const;
void BaseUpdate() const; void BaseUpdate() const;
Vector2 GetSize() const;
~IWindow(); ~IWindow();
}; };
} // namespace TSE } // namespace TSE