// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - OpenGL renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_OPENGLRENDERER_OPENGLRENDERIMAGE_HPP #define NAZARA_OPENGLRENDERER_OPENGLRENDERIMAGE_HPP #include #include #include #include namespace Nz { class OpenGLCommandBuffer; class OpenGLSwapchain; class NAZARA_OPENGLRENDERER_API OpenGLRenderImage : public RenderImage { public: OpenGLRenderImage(OpenGLSwapchain& owner); void Execute(const FunctionRef& callback, QueueTypeFlags queueTypeFlags) override; OpenGLUploadPool& GetUploadPool() override; void Present() override; void SubmitCommandBuffer(CommandBuffer* commandBuffer, QueueTypeFlags queueTypeFlags) override; private: OpenGLSwapchain& m_owner; OpenGLUploadPool m_uploadPool; }; } #include #endif // NAZARA_OPENGLRENDERER_OPENGLRENDERIMAGE_HPP