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

@@ -36,6 +36,7 @@ class NAZARA_API NzShader : public NzResource, NzNonCopyable
void Destroy();
nzUInt32 GetFlags() const;
NzString GetLog() const;
nzShaderLanguage GetLanguage() const;
NzString GetSourceCode(nzShaderType type) const;
@@ -67,6 +68,8 @@ class NAZARA_API NzShader : public NzResource, NzNonCopyable
bool SendVector(int location, const NzVector4d& vector) const;
bool SendVector(int location, const NzVector4f& vector) const;
void SetFlags(nzUInt32 flags);
void Unlock();
NzShader& operator=(NzShader&& shader);
@@ -75,6 +78,7 @@ class NAZARA_API NzShader : public NzResource, NzNonCopyable
static bool IsTypeSupported(nzShaderType type);
private:
nzUInt32 m_flags = nzShaderFlags_None;
NzShaderImpl* m_impl = nullptr;
bool m_compiled = false;
};