// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #pragma once #ifndef NDK_SYSTEMS_RENDERSYSTEM_HPP #define NDK_SYSTEMS_RENDERSYSTEM_HPP #include #include #include #include #include #include #include #include namespace Ndk { class GraphicsComponent; class NDK_API RenderSystem : public System { public: RenderSystem(); inline RenderSystem(const RenderSystem& renderSystem); ~RenderSystem() = default; inline const NzBackgroundRef& GetDefaultBackground() const; inline void SetDefaultBackground(NzBackgroundRef background); static SystemIndex systemIndex; private: void OnEntityRemoved(Entity* entity) override; void OnEntityValidation(Entity* entity, bool justAdded) override; void OnUpdate(float elapsedTime) override; void UpdateShadowMaps(); EntityList m_cameras; EntityList m_drawables; EntityList m_lights; NzBackgroundRef m_background; NzDepthRenderTechnique m_shadowTechnique; NzForwardRenderTechnique m_renderTechnique; NzRenderTexture m_shadowRT; }; } #include #endif // NDK_SYSTEMS_RENDERSYSTEM_HPP