Ndk/RenderSystem: Add backgrounds support
Former-commit-id: 3209be099cb65095f97f99f6ae1d7c44332ea924
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#ifndef NDK_SYSTEMS_RENDERSYSTEM_HPP
|
||||
#define NDK_SYSTEMS_RENDERSYSTEM_HPP
|
||||
|
||||
#include <Nazara/Graphics/AbstractBackground.hpp>
|
||||
#include <Nazara/Graphics/ForwardRenderTechnique.hpp>
|
||||
#include <NDK/EntityList.hpp>
|
||||
#include <NDK/System.hpp>
|
||||
@@ -24,6 +25,10 @@ namespace Ndk
|
||||
inline RenderSystem(const RenderSystem& renderSystem);
|
||||
~RenderSystem() = default;
|
||||
|
||||
inline const NzBackgroundRef& GetDefaultBackground() const;
|
||||
|
||||
inline void SetDefaultBackground(NzBackgroundRef background);
|
||||
|
||||
static SystemIndex systemIndex;
|
||||
|
||||
private:
|
||||
@@ -34,6 +39,7 @@ namespace Ndk
|
||||
EntityList m_cameras;
|
||||
EntityList m_drawables;
|
||||
EntityList m_lights;
|
||||
NzBackgroundRef m_background;
|
||||
NzForwardRenderTechnique m_renderTechnique;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,4 +8,14 @@ namespace Ndk
|
||||
System(renderSystem)
|
||||
{
|
||||
}
|
||||
|
||||
inline const NzBackgroundRef& RenderSystem::GetDefaultBackground() const
|
||||
{
|
||||
return m_background;
|
||||
}
|
||||
|
||||
inline void RenderSystem::SetDefaultBackground(NzBackgroundRef background)
|
||||
{
|
||||
m_background = std::move(background);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user