Sdk/Application: Fix compilation in server mode
Former-commit-id: a7dbe8b6e7c6b37c77b7fac62eaed60031d55f3c [formerly dfdc15e7fc150b930dbbff78aa50977cfb8a4721] [formerly 0829205432c0038facb131e46eb985253af9fb53 [formerly d651dccd41733fd467a0fbc21217baa1aa8c632c]] Former-commit-id: e1b114ffabe598f6eeb57671de06c7323b764aa1 [formerly ba92c6a3ae9c0851ace35830ac03d2b70f5dcca2] Former-commit-id: 4e8dc732d05a1f7d11b0b9b78c8b425ac59fa2f8
This commit is contained in:
parent
42db00a52c
commit
3abaa6e508
|
|
@ -127,12 +127,14 @@ namespace Ndk
|
|||
template<typename T> void SetupWindow(WindowInfo& info, T* renderTarget, std::true_type /*isRenderTarget*/);
|
||||
template<typename T> void SetupWindow(WindowInfo& /*info*/, T* /*renderTarget*/, std::false_type /*isNotRenderTarget*/);
|
||||
|
||||
std::map<Nz::String, Nz::String> m_parameters;
|
||||
std::set<Nz::String> m_options;
|
||||
std::vector<WindowInfo> m_windows;
|
||||
#endif
|
||||
|
||||
std::map<Nz::String, Nz::String> m_parameters;
|
||||
std::set<Nz::String> m_options;
|
||||
std::list<World> m_worlds;
|
||||
Nz::Clock m_updateClock;
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
Nz::UInt32 m_overlayFlags;
|
||||
bool m_exitOnClosedWindows;
|
||||
|
|
|
|||
|
|
@ -350,6 +350,7 @@ namespace Ndk
|
|||
return s_application;
|
||||
}
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
template<typename T>
|
||||
inline void Application::SetupWindow(WindowInfo& info, T* renderTarget, std::true_type)
|
||||
{
|
||||
|
|
@ -372,7 +373,6 @@ namespace Ndk
|
|||
{
|
||||
}
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
inline Application::WindowInfo::WindowInfo(std::unique_ptr<Nz::Window>&& window) :
|
||||
window(std::move(window)),
|
||||
renderTarget(nullptr)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
||||
|
||||
#include <NDK/Application.hpp>
|
||||
#include <Nazara/Core/Log.hpp>
|
||||
#include <regex>
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
|
|
@ -63,11 +64,13 @@ namespace Ndk
|
|||
NazaraWarning("Ignored command-line argument #" + Nz::String::Number(i) + " \"" + argument + '"');
|
||||
}
|
||||
|
||||
#ifndef NDK_SERVER
|
||||
if (HasOption("console"))
|
||||
EnableConsole(true);
|
||||
|
||||
if (HasOption("fpscounter"))
|
||||
EnableFPSCounter(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue