// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // 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_RENDERER_RENDERWINDOWIMPL_HPP #define NAZARA_RENDERER_RENDERWINDOWIMPL_HPP #include #include #include #include #include #include #include #include #include #include namespace Nz { class CommandPool; class RendererImpl; class RenderDevice; class RenderSurface; class NAZARA_RENDERER_API RenderWindowImpl : public RenderTarget { public: RenderWindowImpl() = default; virtual ~RenderWindowImpl(); virtual RenderFrame Acquire() = 0; virtual bool Create(RendererImpl* renderer, RenderSurface* surface, const RenderWindowParameters& parameters) = 0; virtual std::shared_ptr CreateCommandPool(QueueType queueType) = 0; protected: static void BuildRenderPass(PixelFormat colorFormat, PixelFormat depthFormat, std::vector& attachments, std::vector& subpassDescriptions, std::vector& subpassDependencies); }; } #endif // NAZARA_RENDERER_RENDERWINDOWIMPL_HPP