// Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include namespace anki { template<> template<> NativeWindow& MakeSingletonPtr::allocateSingleton<>() { ANKI_ASSERT(m_global == nullptr); m_global = new NativeWindowHeadless(); #if ANKI_ASSERTIONS_ENABLED ++g_singletonsAllocated; #endif return *m_global; } template<> void MakeSingletonPtr::freeSingleton() { if(m_global) { delete static_cast(m_global); m_global = nullptr; #if ANKI_ASSERTIONS_ENABLED --g_singletonsAllocated; #endif } } Error NativeWindow::init([[maybe_unused]] U32 targetFps, [[maybe_unused]] CString title) { // Nothing important m_width = g_cvarWindowWidth; m_height = g_cvarWindowHeight; return Error::kNone; } void NativeWindow::setWindowTitle([[maybe_unused]] CString title) { // Nothing } } // end namespace anki