Files
NazaraEngine/include/Nazara/Graphics/AbstractRenderTechnique.hpp
Lynix 0f382fd1ad Added new RenderTechnique system
Former-commit-id: 6d65a4537232bc705333c696f2478d47f16e074a
2013-10-09 10:14:17 +02:00

41 lines
1.1 KiB
C++

// Copyright (C) 2013 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/NonCopyable.hpp>
#include <Nazara/Core/String.hpp>
#include <Nazara/Graphics/AbstractRenderQueue.hpp>
#include <Nazara/Graphics/Enums.hpp>
class NzBackground;
class NzScene;
class NAZARA_API NzAbstractRenderTechnique : NzNonCopyable
{
public:
NzAbstractRenderTechnique();
virtual ~NzAbstractRenderTechnique();
virtual void Clear(const NzScene* scene) = 0;
virtual bool Draw(const NzScene* scene) = 0;
virtual void EnableInstancing(bool instancing);
virtual NzString GetName() const;
virtual NzAbstractRenderQueue* GetRenderQueue() = 0;
virtual nzRenderTechniqueType GetType() const = 0;
virtual bool IsInstancingEnabled() const;
protected:
bool m_instancingEnabled;
};
#endif // NAZARA_ABSTRACTRENDERTECHNIQUE_HPP