From e72188433348c270a54879da9f086f1b527b580f Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 7 Sep 2018 13:30:44 +0800 Subject: *update --- src/libjin/Graphics/Drawable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libjin/Graphics/Drawable.h') diff --git a/src/libjin/Graphics/Drawable.h b/src/libjin/Graphics/Drawable.h index bdec5b4..8bc528e 100644 --- a/src/libjin/Graphics/Drawable.h +++ b/src/libjin/Graphics/Drawable.h @@ -3,7 +3,7 @@ #include "../modules.h" #if JIN_MODULES_RENDER -#include "../math/Vector2.h" +#include "../math/Vector2.hpp" #include "../3rdparty/GLee/GLee.h" namespace jin @@ -18,8 +18,8 @@ namespace graphics virtual ~Drawable(); void setAnchor(int x, int y); void draw(int x, int y, float sx, float sy, float r); - inline int getWidth() const { return size.x; } - inline int getHeight() const { return size.y; } + inline int getWidth() const { return size.w; } + inline int getHeight() const { return size.h; } inline GLuint getTexture() const { return texture; } protected: -- cgit v1.1-26-g67d0