Graphics/Backgrounds: Update backgrounds to new coding-style
Former-commit-id: 9f96b93706fd8417d6262392f0ce9ab9ca1985c3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user