diff options
author | chai <chaifix@163.com> | 2018-08-16 14:21:56 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-16 14:21:56 +0800 |
commit | 8585c92b7d0744a1f1a39c872cf5096621161b6c (patch) | |
tree | 6aa02138f39f7b11ab17c7399064353092b8df0c /src/lua/graphics/Canvas.h | |
parent | be9b27dbf550093b555ab3087c11b38c89ab9fd0 (diff) |
*update
Diffstat (limited to 'src/lua/graphics/Canvas.h')
-rw-r--r-- | src/lua/graphics/Canvas.h | 60 |
1 files changed, 0 insertions, 60 deletions
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 |