// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_GRAPHICS_HPP #define NAZARA_GRAPHICS_HPP #include #include #include #include namespace Nz { class RenderDevice; class NAZARA_GRAPHICS_API Graphics : public ModuleBase { friend ModuleBase; public: using Dependencies = TypeList; struct Config; Graphics(Config config); ~Graphics() = default; inline RenderDevice& GetRenderDevice(); struct Config { bool useDedicatedRenderDevice = true; }; private: std::shared_ptr m_renderDevice; static Graphics* s_instance; }; } #include #endif