Added Task Scheduler

Former-commit-id: ac37f749ae78f364db3d3edfabc8221802579989
This commit is contained in:
Lynix
2012-12-03 01:30:04 +01:00
parent 023e497777
commit ef567bd223
4 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
// Copyright (C) 2012 Jérôme Leclercq
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_SHADERBUILDER_HPP
#define NAZARA_SHADERBUILDER_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Renderer/Shader.hpp>
class NAZARA_API NzShaderBuilder
{
public:
NzShaderBuilder() = default;
NzShaderBuilder(nzShaderLanguage language);
~NzShaderBuilder();
bool Create(nzShaderLanguage language);
void Destroy();
bool IsValid();
void SetDeferred(bool deferredRendering);
void SetDiffuseMapping(bool diffuseMapping);
void SetInstancing(bool instancing);
void SetLighting(bool lighting);
void SetNormalMapping(bool normalMapping);
void SetParallaxMapping(bool parallaxMapping);
private:
NzShaderImpl* m_impl = nullptr;
};
#endif // NAZARA_SHADER_HPP