Graphics/Backgrounds: Update backgrounds to new coding-style

Former-commit-id: 9f96b93706fd8417d6262392f0ce9ab9ca1985c3
This commit is contained in:
Lynix
2015-06-23 23:35:11 +02:00
parent 0ec0e02a5f
commit 6092b0692b
10 changed files with 253 additions and 248 deletions

View File

@@ -22,7 +22,7 @@ namespace
}
}
NzTextureBackground::NzTextureBackground()
NzTextureBackground::NzTextureBackground(NzTextureRef texture)
{
m_uberShader = NzUberShaderLibrary::Get("Basic");
@@ -37,12 +37,8 @@ NzTextureBackground::NzTextureBackground()
m_materialDiffuseUniform = shader->GetUniformLocation("MaterialDiffuse");
m_materialDiffuseMapUniform = shader->GetUniformLocation("MaterialDiffuseMap");
m_vertexDepthUniform = shader->GetUniformLocation("VertexDepth");
}
NzTextureBackground::NzTextureBackground(NzTexture* texture) :
NzTextureBackground()
{
m_texture = texture;
SetTexture(std::move(texture));
}
void NzTextureBackground::Draw(const NzAbstractViewer* viewer) const
@@ -68,13 +64,3 @@ nzBackgroundType NzTextureBackground::GetBackgroundType() const
{
return nzBackgroundType_Texture;
}
NzTexture* NzTextureBackground::GetTexture() const
{
return m_texture;
}
void NzTextureBackground::SetTexture(NzTexture* texture)
{
m_texture = texture;
}