From 8585c92b7d0744a1f1a39c872cf5096621161b6c Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 16 Aug 2018 14:21:56 +0800 Subject: *update --- src/lua/graphics/Canvas.h | 60 ----------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 src/lua/graphics/Canvas.h (limited to 'src/lua/graphics/Canvas.h') diff --git a/src/lua/graphics/Canvas.h b/src/lua/graphics/Canvas.h deleted file mode 100644 index 4494db4..0000000 --- a/src/lua/graphics/Canvas.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef __JIN_LUA_GRAPHICS_CANVAS_H -#define __JIN_LUA_GRAPHICS_CANVAS_H -#include "libjin/jin.h" -#include "../luaopen_types.h" - -namespace jin -{ -namespace lua -{ -namespace graphics -{ - - class Canvas : public Object - { - public: - static Canvas* createCanvas(int w, int h); - - int getWidth() - { - return canvas->getWidth(); - } - int getHeight() - { - return canvas->getHeight(); - } - void setAnchor(int x, int y) - { - canvas->setAnchor(x, y); - } - inline const jin::graphics::Canvas* getRawCanvas() const - { - return canvas; - } - void bind() - { - canvas->bind(); - } - - void draw(int x, int y, float sx, float sy, float r) - { - canvas->draw(x, y, sx, sy, r); - } - - static void unbind(); - - private: - Canvas() {} - ~Canvas() - { - delete canvas; - } - jin::graphics::Canvas* canvas; - - }; - -} // graphics -} // lua -} // jin - -#endif // __JIN_LUA_GRAPHICS_CANVAS_H \ No newline at end of file -- cgit v1.1-26-g67d0