aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/Painter.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-30 22:23:59 +0800
committercrupest <crupest@outlook.com>2022-01-30 22:23:59 +0800
commitb9a553d4acc15ec981636b30db537be280d593e5 (patch)
treec909657f2bbd112abafc104db28034b67d895d45 /include/cru/platform/graphics/Painter.hpp
parent1909ee98b92ea993e6fbbdb628da0cf586db7d52 (diff)
downloadcru-b9a553d4acc15ec981636b30db537be280d593e5.tar.gz
cru-b9a553d4acc15ec981636b30db537be280d593e5.tar.bz2
cru-b9a553d4acc15ec981636b30db537be280d593e5.zip
...
Diffstat (limited to 'include/cru/platform/graphics/Painter.hpp')
-rw-r--r--include/cru/platform/graphics/Painter.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/Painter.hpp b/include/cru/platform/graphics/Painter.hpp
index 4104a752..eb5bf8e1 100644
--- a/include/cru/platform/graphics/Painter.hpp
+++ b/include/cru/platform/graphics/Painter.hpp
@@ -27,6 +27,8 @@ struct CRU_PLATFORM_GRAPHICS_API IPainter : virtual IPlatformResource {
virtual void DrawText(const Point& offset, ITextLayout* text_layout,
IBrush* brush) = 0;
+ virtual void DrawImage(const Rect& rect, IImage* image) = 0;
+
virtual void PushLayer(const Rect& bounds) = 0;
virtual void PopLayer() = 0;