diff options
author | crupest <crupest@outlook.com> | 2022-01-30 20:40:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-30 20:40:59 +0800 |
commit | c1f8ea13524f398f8d1720e5f03a17dd66352ebf (patch) | |
tree | 0e27ed132cd82d1a690aa9534df38beec0c77d45 /include/cru/osx/graphics/quartz/ImageFactory.hpp | |
parent | a6dd823a94f0e6338545a4885e9d428e83a56593 (diff) | |
download | cru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.tar.gz cru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.tar.bz2 cru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.zip |
...
Diffstat (limited to 'include/cru/osx/graphics/quartz/ImageFactory.hpp')
-rw-r--r-- | include/cru/osx/graphics/quartz/ImageFactory.hpp | 19 |
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 |