aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/graphics/quartz/ImageFactory.h
blob: e9854738c1df705c200f56ed18a639f5a7c8a0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "Resource.h"
#include "cru/platform/graphics/ImageFactory.h"

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