From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/platform/graphics/ImageFactory.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/cru/platform/graphics/ImageFactory.h (limited to 'include/cru/platform/graphics/ImageFactory.h') diff --git a/include/cru/platform/graphics/ImageFactory.h b/include/cru/platform/graphics/ImageFactory.h new file mode 100644 index 00000000..2a7902b2 --- /dev/null +++ b/include/cru/platform/graphics/ImageFactory.h @@ -0,0 +1,11 @@ +#pragma once +#include "Image.h" +#include "Resource.h" +#include "cru/common/io/Stream.h" + +namespace cru::platform::graphics { +struct CRU_PLATFORM_GRAPHICS_API IImageFactory + : public virtual IGraphicsResource { + virtual std::unique_ptr DecodeFromStream(io::Stream* stream) = 0; +}; +} // namespace cru::platform::graphics -- cgit v1.2.3