From c1f8ea13524f398f8d1720e5f03a17dd66352ebf Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 30 Jan 2022 20:40:59 +0800 Subject: ... --- include/cru/osx/graphics/quartz/ImageFactory.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/cru/osx/graphics/quartz/ImageFactory.hpp (limited to 'include/cru/osx/graphics/quartz/ImageFactory.hpp') diff --git a/include/cru/osx/graphics/quartz/ImageFactory.hpp b/include/cru/osx/graphics/quartz/ImageFactory.hpp new file mode 100644 index 00000000..027f3f2a --- /dev/null +++ b/include/cru/osx/graphics/quartz/ImageFactory.hpp @@ -0,0 +1,19 @@ +#pragma once +#include "Resource.hpp" +#include "cru/platform/graphics/ImageFactory.hpp" + +namespace cru::platform::graphics::osx::quartz { +class QuartzImageFactory : public OsxQuartzResource, + public virtual IImageFactory { + public: + explicit QuartzImageFactory(IGraphicsFactory* graphics_factory); + + CRU_DELETE_COPY(QuartzImageFactory) + CRU_DELETE_MOVE(QuartzImageFactory) + + ~QuartzImageFactory() override; + + public: + std::unique_ptr DecodeFromStream(io::Stream* stream) override; +}; +} // namespace cru::platform::graphics::osx::quartz -- cgit v1.2.3