aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/Canvas.cpp
diff options
context:
space:
mode:
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