diff options
Diffstat (limited to 'src/lua/graphics/Image.h')
-rw-r--r-- | src/lua/graphics/Image.h | 12 |
1 files changed, 9 insertions, 3 deletions
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; |