aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/ImageFactory.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-30 20:40:59 +0800
committercrupest <crupest@outlook.com>2022-01-30 20:40:59 +0800
commitc1f8ea13524f398f8d1720e5f03a17dd66352ebf (patch)
tree0e27ed132cd82d1a690aa9534df38beec0c77d45 /include/cru/platform/graphics/ImageFactory.hpp
parenta6dd823a94f0e6338545a4885e9d428e83a56593 (diff)
downloadcru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.tar.gz
cru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.tar.bz2
cru-c1f8ea13524f398f8d1720e5f03a17dd66352ebf.zip
...
Diffstat (limited to 'include/cru/platform/graphics/ImageFactory.hpp')
-rw-r--r--include/cru/platform/graphics/ImageFactory.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/ImageFactory.hpp b/include/cru/platform/graphics/ImageFactory.hpp
new file mode 100644
index 00000000..3997f783
--- /dev/null
+++ b/include/cru/platform/graphics/ImageFactory.hpp
@@ -0,0 +1,11 @@
+#pragma once
+#include "Image.hpp"
+#include "Resource.hpp"
+#include "cru/common/io/Stream.hpp"
+
+namespace cru::platform::graphics {
+struct CRU_PLATFORM_GRAPHICS_API IImageFactory
+ : public virtual IGraphicsResource {
+ virtual std::unique_ptr<IImage> DecodeFromStream(io::Stream* stream) = 0;
+};
+} // namespace cru::platform::graphics