Files
pixelarium/lib/rendering/ImageViewFactory.hpp
T
m-aXimilian 235d00192a Misc Improvements (#7)
* get rid of optional<ptr> -> double indirection

* more optional cleanup

* fix

* add more render pixel type options

* towards different views

* missing virtual declaration of ShowImage

* fix runtime

* init image view factory

* fix build

Render Image close button re-enable

add readme

init documentation

use awesomeDoxygen

ci build docs

install doxygen

id token permission

add pages write permission
2026-02-16 20:36:48 +01:00

25 lines
614 B
C++

#pragma once
#include "PixelariumImageViewDefault.hpp"
#include "rendering/IPixelariumImageView.hpp"
#include "resources/resource.hpp"
#include "utilities/ILog.hpp"
namespace pixelarium::render
{
class ImageViewFactory
{
using Image = imaging::IPixelariumImage;
using Pool = resources::ImageResourcePool;
using Log = utils::log::ILog;
public:
explicit ImageViewFactory(Pool& pool, const Log& log) : image_pool_(pool), log_(log) {}
std::unique_ptr<IPixelariumImageView> RenderImage(size_t id);
private:
Pool& image_pool_;
const Log& log_;
};
} // namespace pixelarium::render