50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Renderer module"
|
|
// For conditions of distribution and use, see copyright notice in Export.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_RENDERER_RENDERERIMPL_HPP
|
|
#define NAZARA_RENDERER_RENDERERIMPL_HPP
|
|
|
|
#include <NazaraUtils/Prerequisites.hpp>
|
|
#include <Nazara/Core/Enums.hpp>
|
|
#include <Nazara/Core/ParameterList.hpp>
|
|
#include <Nazara/Renderer/Enums.hpp>
|
|
#include <Nazara/Renderer/Export.hpp>
|
|
#include <Nazara/Renderer/RenderDeviceInfo.hpp>
|
|
#include <Nazara/Renderer/Renderer.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Nz
|
|
{
|
|
class Buffer;
|
|
class RendererImpl;
|
|
class RenderDevice;
|
|
class RenderSurface;
|
|
class WindowSwapchain;
|
|
class Swapchain;
|
|
|
|
using CreateRendererImplFunc = RendererImpl*(*)();
|
|
|
|
class NAZARA_RENDERER_API RendererImpl
|
|
{
|
|
public:
|
|
RendererImpl() = default;
|
|
virtual ~RendererImpl();
|
|
|
|
virtual std::shared_ptr<RenderDevice> InstanciateRenderDevice(std::size_t deviceIndex, const RenderDeviceFeatures& enabledFeatures) = 0;
|
|
|
|
virtual RenderAPI QueryAPI() const = 0;
|
|
virtual std::string QueryAPIString() const = 0;
|
|
virtual UInt32 QueryAPIVersion() const = 0;
|
|
|
|
virtual const std::vector<RenderDeviceInfo>& QueryRenderDevices() const = 0;
|
|
|
|
virtual bool Prepare(const Renderer::Config& config) = 0;
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_RENDERER_RENDERERIMPL_HPP
|