// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // 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_GRAPHICS_GUILLOTINETEXTUREATLAS_HPP #define NAZARA_GRAPHICS_GUILLOTINETEXTUREATLAS_HPP #include #include #include namespace Nz { class RenderDevice; class NAZARA_GRAPHICS_API GuillotineTextureAtlas : public GuillotineImageAtlas { public: inline GuillotineTextureAtlas(RenderDevice& renderDevice); ~GuillotineTextureAtlas() = default; DataStoreFlags GetStorage() const override; private: std::shared_ptr ResizeImage(const std::shared_ptr& oldImage, const Vector2ui& size) const override; RenderDevice& m_renderDevice; }; } #include #endif // NAZARA_GRAPHICS_GUILLOTINETEXTUREATLAS_HPP