Rename AppComponent classes (AppEntitySystemComponent => EntitySystemAppComponent)
This commit is contained in:
37
include/Nazara/Platform/WindowingAppComponent.inl
Normal file
37
include/Nazara/Platform/WindowingAppComponent.inl
Normal file
@@ -0,0 +1,37 @@
|
||||
// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Platform module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Platform/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
template<typename... Args>
|
||||
Window& WindowingAppComponent::CreateWindow(Args&&... args)
|
||||
{
|
||||
return *m_windows.emplace_back(std::make_unique<Window>(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
inline WindowingAppComponent::WindowingAppComponent(ApplicationBase& app) :
|
||||
ApplicationComponent(app),
|
||||
m_quitOnLastWindowClosed(true)
|
||||
{
|
||||
}
|
||||
|
||||
inline void WindowingAppComponent::DisableQuitOnLastWindowClosed()
|
||||
{
|
||||
return EnableQuitOnLastWindowClosed(false);
|
||||
}
|
||||
|
||||
inline void WindowingAppComponent::EnableQuitOnLastWindowClosed(bool enable)
|
||||
{
|
||||
m_quitOnLastWindowClosed = enable;
|
||||
}
|
||||
|
||||
inline bool WindowingAppComponent::IsQuitOnLastWindowClosedEnabled() const
|
||||
{
|
||||
return m_quitOnLastWindowClosed;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Platform/DebugOff.hpp>
|
||||
Reference in New Issue
Block a user