INNER CODE UNIT · C++
window
matt77hias/MAGE-v0 · MAGE/Code/Engine/MAGE/engine.cpp:188
const auto window = NotNull< HWND >(m_window->GetWindow());
// Initialize the input system.
m_input_manager = MakeUnique< input::Manager >(window);
// Initialize the rendering system.
m_rendering_manager = MakeUnique< rendering::Manager >(window, display_config);
m_rendering_manager->BindPersistentState();
// Initializes the COM library for use by the calling thread and sets
// the thread's concurrency model to multithreaded concurrency.
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
}
void Engine::UninitializeSystems() noexcept {
m_window->RemoveAllListeners();
m_window->RemoveAllHandlers();