Added shader flags

Renamed ShaderBuilder enum to ShaderFlags


Former-commit-id: b3440bac5491f0a0a90cbd7f9ed8e396c16c0864
This commit is contained in:
Lynix
2013-03-01 21:54:41 +01:00
parent d0a6a75f14
commit 347b267d43
7 changed files with 84 additions and 58 deletions

View File

@@ -93,6 +93,11 @@ void NzShader::Destroy()
}
}
nzUInt32 NzShader::GetFlags() const
{
return m_flags;
}
NzString NzShader::GetLog() const
{
#if NAZARA_RENDERER_SAFE
@@ -602,6 +607,11 @@ bool NzShader::SendVector(int location, const NzVector4f& vector) const
return m_impl->SendVector(location, vector);
}
void NzShader::SetFlags(nzUInt32 flags)
{
m_flags = flags;
}
void NzShader::Unlock()
{
#if NAZARA_RENDERER_SAFE