aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/Image.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-15 18:27:30 +0800
committerchai <chaifix@163.com>2018-08-15 18:27:30 +0800
commitbe9b27dbf550093b555ab3087c11b38c89ab9fd0 (patch)
treeddd96bb71b3ad3a32ae844a38bb95525bd0b0666 /src/lua/graphics/Image.h
parentac9079ff1449e2638cbf7339edcc6e4b186e5eaa (diff)
*update
Diffstat (limited to 'src/lua/graphics/Image.h')
-rw-r--r--src/lua/graphics/Image.h12
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;