// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_RENDERER_HPP #define NAZARA_RENDERER_HPP #include #include #include #include #include #include #include namespace Nz { class AbstractBuffer; class Buffer; class NAZARA_RENDERER_API Renderer : public ModuleBase { friend ModuleBase; public: using Dependencies = TypeList; struct Config; Renderer(Config /*config*/); ~Renderer(); inline RendererImpl* GetRendererImpl(); struct Config { Nz::RenderAPI preferredAPI = Nz::RenderAPI::Unknown; }; private: std::unique_ptr m_rendererImpl; DynLib m_rendererLib; static Renderer* s_instance; }; } #include #endif // NAZARA_RENDERER_HPP