Sdk/Application: Fix compilation in server mode
Former-commit-id: 67093963bcad8d36febd467c1aba51d497d8e5c5 [formerly 4bf223f6b8388f973e3be44178dc4762bd8bec24] [formerly f5ec0e444d9ad87dc39bf3d85f2679046bdc8385 [formerly 3c50590603c468b2e97417785db9f571b40bc790]] Former-commit-id: 0bcbfdb95712215eb44014102b7dc95272620d90 [formerly 0708473fe71ae8f8f477a1a3e9984fd06e0b3b1f] Former-commit-id: 9f9478b6dff900d10dfdaaedddfb206087d0c49b
This commit is contained in:
parent
b91eac9935
commit
1dec4ca86a
|
|
@ -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