Renamed Background to AbstractBackground
Former-commit-id: c99ed2e48c4d82fb1100f412a85468c698142815
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This file is part of the "Nazara Engine - Graphics module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Graphics/Background.hpp>
|
||||
#include <Nazara/Graphics/AbstractBackground.hpp>
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
NzBackground::~NzBackground() = default;
|
||||
NzAbstractBackground::~NzAbstractBackground() = default;
|
||||
@@ -3,7 +3,7 @@
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Graphics/ForwardRenderTechnique.hpp>
|
||||
#include <Nazara/Graphics/Background.hpp>
|
||||
#include <Nazara/Graphics/AbstractBackground.hpp>
|
||||
#include <Nazara/Graphics/Camera.hpp>
|
||||
#include <Nazara/Graphics/Drawable.hpp>
|
||||
#include <Nazara/Graphics/Light.hpp>
|
||||
@@ -38,7 +38,7 @@ void NzForwardRenderTechnique::Clear(const NzScene* scene)
|
||||
NzRenderer::Enable(nzRendererParameter_DepthWrite, true);
|
||||
NzRenderer::Clear(nzRendererClear_Depth);
|
||||
|
||||
NzBackground* background = scene->GetBackground();
|
||||
NzAbstractBackground* background = scene->GetBackground();
|
||||
if (background)
|
||||
background->Draw(scene);
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ struct NzSceneImpl
|
||||
{
|
||||
}
|
||||
|
||||
std::unique_ptr<NzAbstractBackground> background;
|
||||
std::unique_ptr<NzAbstractRenderTechnique> renderTechnique;
|
||||
std::unique_ptr<NzBackground> background;
|
||||
std::vector<NzUpdatable*> updateList;
|
||||
std::vector<NzUpdatable*> visibleUpdateList;
|
||||
NzClock updateClock;
|
||||
@@ -92,7 +92,7 @@ NzColor NzScene::GetAmbientColor() const
|
||||
return m_impl->ambientColor;
|
||||
}
|
||||
|
||||
NzBackground* NzScene::GetBackground() const
|
||||
NzAbstractBackground* NzScene::GetBackground() const
|
||||
{
|
||||
return m_impl->background.get();
|
||||
}
|
||||
@@ -135,7 +135,7 @@ void NzScene::SetAmbientColor(const NzColor& color)
|
||||
m_impl->ambientColor = color;
|
||||
}
|
||||
|
||||
void NzScene::SetBackground(NzBackground* background)
|
||||
void NzScene::SetBackground(NzAbstractBackground* background)
|
||||
{
|
||||
m_impl->background.reset(background);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user