From be9b27dbf550093b555ab3087c11b38c89ab9fd0 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 15 Aug 2018 18:27:30 +0800 Subject: *update --- src/lua/graphics/Image.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lua/graphics/Image.h') diff --git a/src/lua/graphics/Image.h b/src/lua/graphics/Image.h index d96f69d..0d1d010 100644 --- a/src/lua/graphics/Image.h +++ b/src/lua/graphics/Image.h @@ -20,19 +20,23 @@ namespace graphics { return image->getWidth(); } + int getHeight() { return image->getHeight(); } - void setAnchor(int x, int y) + + void setAnchor(int x, int y) { image->setAnchor(x, y); } - jin::graphics::color getPixel(int x, int y) + + jin::graphics::color getPixel(int x, int y) { return image->getPixel(x, y); } - inline const jin::graphics::Texture* getRawImage() const + + inline const jin::graphics::Texture* getRawImage() const { return image; } @@ -43,6 +47,8 @@ namespace graphics } private: + Image() {}; + ~Image() { delete image; -- cgit v1.1-26-g67d0