aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/graphics/quartz/ImageFactory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/osx/graphics/quartz/ImageFactory.hpp')
-rw-r--r--include/cru/osx/graphics/quartz/ImageFactory.hpp19
1 files changed, 19 insertions, 0 deletions
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<IImage> DecodeFromStream(io::Stream* stream) override;
+};
+} // namespace cru::platform::graphics::osx::quartz