Ndk/RenderSystem: Add backgrounds support

Former-commit-id: 3209be099cb65095f97f99f6ae1d7c44332ea924
This commit is contained in:
Lynix
2015-06-24 00:26:46 +02:00
parent c4783ac38f
commit 0895a9273d
3 changed files with 18 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ namespace Ndk
{
RenderSystem::RenderSystem()
{
SetDefaultBackground(NzColorBackground::New());
SetUpdateRate(0.f);
}
@@ -73,11 +74,9 @@ namespace Ndk
lightComponent.AddToRenderQueue(renderQueue, drawableNode.GetTransformMatrix());
}
NzColorBackground background;
NzSceneData sceneData;
sceneData.ambientColor = NzColor(25, 25, 25);
sceneData.background = &background;
sceneData.background = m_background;
sceneData.viewer = &camComponent;
m_renderTechnique.Draw(sceneData);