aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/Image.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/graphics/Image.hpp')
-rw-r--r--include/cru/platform/graphics/Image.hpp6
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