diff options
Diffstat (limited to 'src/platform/graphics/web_canvas/WebCanvasRef.cpp')
-rw-r--r-- | src/platform/graphics/web_canvas/WebCanvasRef.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform/graphics/web_canvas/WebCanvasRef.cpp b/src/platform/graphics/web_canvas/WebCanvasRef.cpp index 886131f6..c4ad9b17 100644 --- a/src/platform/graphics/web_canvas/WebCanvasRef.cpp +++ b/src/platform/graphics/web_canvas/WebCanvasRef.cpp @@ -13,4 +13,8 @@ WebCanvasRef::WebCanvasRef(emscripten::val canvas_val) int WebCanvasRef::GetWidth() const { return val_["width"].as<int>(); } int WebCanvasRef::GetHeight() const { return val_["height"].as<int>(); } + +void WebCanvasRef::Save() const { val_.call<void>("save"); } + +void WebCanvasRef::Restore() const { val_.call<void>("restore"); } } // namespace cru::platform::graphics::web_canvas |