aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/Canvas.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-14 14:56:47 +0800
committerchai <chaifix@163.com>2018-08-14 14:56:47 +0800
commit5c9af043503f92852a1a765b6ecfbc1aea24d2e9 (patch)
treeeb371092c4137a672e7bfc13dc56ee777623ebfe /src/lua/graphics/Canvas.cpp
parent5162f84be0a4deb447c6ba1226722b049335d525 (diff)
*update
Diffstat (limited to 'src/lua/graphics/Canvas.cpp')
-rw-r--r--src/lua/graphics/Canvas.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lua/graphics/Canvas.cpp b/src/lua/graphics/Canvas.cpp
new file mode 100644
index 0000000..c4918f0
--- /dev/null
+++ b/src/lua/graphics/Canvas.cpp
@@ -0,0 +1,24 @@
+#include "Canvas.h"
+
+namespace jin
+{
+namespace lua
+{
+namespace graphics
+{
+
+ Canvas* Canvas::createCanvas(int w, int h)
+ {
+ Canvas* canvas = new Canvas();
+ canvas->canvas = jin::graphics::Canvas::createCanvas(w, h);
+ return canvas;
+ }
+
+ void Canvas::unbind()
+ {
+ jin::graphics::Canvas::unbind();
+ }
+
+}
+}
+} \ No newline at end of file