// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { template T& RenderSystem::CreateWindow(Args&& ...args) { static_assert(std::is_base_of_v, "T must inherit RenderWindow"); auto windowPtr = std::make_unique(std::forward(args)...); T& windowRef = *windowPtr; m_renderWindows.emplace_back(std::move(windowPtr)); return windowRef; } inline FramePipeline& RenderSystem::GetFramePipeline() { return *m_pipeline; } inline const FramePipeline& RenderSystem::GetFramePipeline() const { return *m_pipeline; } } #include