Files
NazaraEngine/include/Nazara/Graphics/AbstractRenderTechnique.hpp
Lynix 0697fe1079 Revert "Graphics/RenderTechnique: Remove Clear method"
This reverts commit 8aa3764660d5c98995135f736ecd710677fa240c [formerly 9b4ec3ae32492e383c19a06bd1c3e461b3fcf46d].

It seems I was wrong about the Clear method, my revert broke the Deferred Rendering


Former-commit-id: b8d2db34ffd9d24798670f19aba0de88f5b77a1c
2016-04-06 12:39:29 +02:00

51 lines
1.4 KiB
C++

// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_ABSTRACTRENDERTECHNIQUE_HPP
#define NAZARA_ABSTRACTRENDERTECHNIQUE_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/Color.hpp>
#include <Nazara/Core/String.hpp>
#include <Nazara/Graphics/AbstractRenderQueue.hpp>
#include <Nazara/Graphics/Enums.hpp>
#include <Nazara/Graphics/SceneData.hpp>
namespace Nz
{
class AbstractViewer;
class Background;
struct SceneData;
class NAZARA_GRAPHICS_API AbstractRenderTechnique
{
public:
AbstractRenderTechnique();
AbstractRenderTechnique(const AbstractRenderTechnique&) = delete;
AbstractRenderTechnique(AbstractRenderTechnique&&) = default;
virtual ~AbstractRenderTechnique();
virtual void Clear(const SceneData& sceneData) const = 0;
virtual bool Draw(const SceneData& sceneData) const = 0;
virtual void EnableInstancing(bool instancing);
virtual String GetName() const;
virtual AbstractRenderQueue* GetRenderQueue() = 0;
virtual RenderTechniqueType GetType() const = 0;
virtual bool IsInstancingEnabled() const;
AbstractRenderTechnique& operator=(const AbstractRenderTechnique&) = delete;
AbstractRenderTechnique& operator=(AbstractRenderTechnique&&) = default;
protected:
bool m_instancingEnabled;
};
}
#endif // NAZARA_ABSTRACTRENDERTECHNIQUE_HPP