diff options
author | chai <chaifix@163.com> | 2018-05-18 08:27:45 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-18 08:27:45 +0800 |
commit | 91a592da979827b1735901388dba8712e6e3ecf3 (patch) | |
tree | 5b34330fc7ab0027557f4a4dfb1417fbe9acfb44 /src/libjin/render/drawable.h | |
parent | d66b07724d71321545e80a8e12736be0e9a5d24a (diff) |
修改JSL
Diffstat (limited to 'src/libjin/render/drawable.h')
-rw-r--r-- | src/libjin/render/drawable.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/libjin/render/drawable.h b/src/libjin/render/drawable.h index 5eaf705..baf6c97 100644 --- a/src/libjin/render/drawable.h +++ b/src/libjin/render/drawable.h @@ -12,18 +12,26 @@ namespace render Drawable(); virtual ~Drawable(); - /* pseudo constructor*/ void init(int w = 0, int h = 0); - /* set anchor of texture, (0, 0) by default */ void setAnchor(int x, int y); void draw(int x, int y, float sx, float sy, float r); - - int getWidth(); - int getHeight(); - - inline GLuint getTexture() const { return texture; }; + + inline int Drawable::getWidth() const + { + return width; + } + + inline int Drawable::getHeight() const + { + return height; + } + + inline GLuint getTexture() const + { + return texture; + }; protected: #define DRAWABLE_V_SIZE 8 |