diff options
author | crupest <crupest@outlook.com> | 2022-02-02 19:52:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-02 19:52:24 +0800 |
commit | 41623c6ad6f42ca5d6e9a38061f809929641e5c6 (patch) | |
tree | 594df8c4450d42eec9d8ef2daab56e3fe7791276 /include/cru/platform/graphics/Image.hpp | |
parent | f0beab8e5f84ba2c5367f7edadebff0af95d1626 (diff) | |
download | cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.tar.gz cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.tar.bz2 cru-41623c6ad6f42ca5d6e9a38061f809929641e5c6.zip |
...
Diffstat (limited to 'include/cru/platform/graphics/Image.hpp')
-rw-r--r-- | include/cru/platform/graphics/Image.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/cru/platform/graphics/Image.hpp b/include/cru/platform/graphics/Image.hpp index bf1e8545..e8bf6671 100644 --- a/include/cru/platform/graphics/Image.hpp +++ b/include/cru/platform/graphics/Image.hpp @@ -2,5 +2,9 @@ #include "Resource.hpp" namespace cru::platform::graphics { -struct CRU_PLATFORM_GRAPHICS_API IImage : public virtual IGraphicsResource {}; +struct CRU_PLATFORM_GRAPHICS_API IImage : public virtual IGraphicsResource { + virtual float GetWidth() = 0; + virtual float GetHeight() = 0; + virtual std::unique_ptr<IImage> CreateWithRect(const Rect& rect) = 0; +}; } // namespace cru::platform::graphics |