2025-08-18 22:39:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-09-13 14:49:59 +02:00
|
|
|
#include "PixelariumImageView.hpp"
|
|
|
|
|
#include "imaging/PixelariumImage.hpp"
|
2025-08-18 22:39:43 +00:00
|
|
|
#include "resources/resource.hpp"
|
2025-09-13 14:49:59 +02:00
|
|
|
namespace pixelarium::render
|
2025-08-18 22:39:43 +00:00
|
|
|
{
|
|
|
|
|
class ImageViewFactory
|
|
|
|
|
{
|
|
|
|
|
using Image = imaging::PixelariumImage;
|
|
|
|
|
using Pool = resources::ImageResourcePool;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit ImageViewFactory(Pool& pool) : image_pool_(pool) {}
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<PixelariumImageView> RenderImage(size_t id);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Pool& image_pool_;
|
|
|
|
|
};
|
2025-09-13 14:49:59 +02:00
|
|
|
} // namespace pixelarium::render
|