Renderer/WindowSwapchain: Don't create swapchain on minimized window
This is mainly to prepare for Android "windows" where the window is considered minimized when app is in the background (and thus has no ANativeWindow to render to)
This commit is contained in:
@@ -56,8 +56,8 @@ namespace Nz
|
||||
inline CursorController& GetCursorController();
|
||||
inline WindowEventHandler& GetEventHandler();
|
||||
WindowHandle GetHandle() const;
|
||||
Vector2i GetPosition() const;
|
||||
Vector2ui GetSize() const;
|
||||
const Vector2i& GetPosition() const;
|
||||
const Vector2ui& GetSize() const;
|
||||
WindowStyleFlags GetStyle() const;
|
||||
std::string GetTitle() const;
|
||||
|
||||
|
||||
@@ -51,6 +51,18 @@ namespace Nz
|
||||
return m_eventHandler;
|
||||
}
|
||||
|
||||
inline const Vector2i& Window::GetPosition() const
|
||||
{
|
||||
NazaraAssert(m_impl, "Window not created");
|
||||
return m_position;
|
||||
}
|
||||
|
||||
inline const Vector2ui& Window::GetSize() const
|
||||
{
|
||||
NazaraAssert(m_impl, "Window not created");
|
||||
return m_size;
|
||||
}
|
||||
|
||||
inline bool Window::IsOpen(bool checkClosed)
|
||||
{
|
||||
if (!m_impl)
|
||||
|
||||
Reference in New Issue
Block a user