diff options
author | chai <chaifix@163.com> | 2018-05-19 12:05:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-19 12:05:57 +0800 |
commit | adfda73e1810973a40b7bedd9a8edc3e7ab89e3c (patch) | |
tree | 3ee6b9ad4f3c71b5cefc719c694e7a80f3df7088 /src/libjin/render/drawable.h | |
parent | 3ce3b10167a98f45614408a8042a10c686f3a9cc (diff) |
增加子系统基类
Diffstat (limited to 'src/libjin/render/drawable.h')
-rw-r--r-- | src/libjin/render/drawable.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libjin/render/drawable.h b/src/libjin/render/drawable.h index b8e985a..0cf6d4b 100644 --- a/src/libjin/render/drawable.h +++ b/src/libjin/render/drawable.h @@ -15,20 +15,20 @@ namespace render void draw(int x, int y, float sx, float sy, float r); - inline int Drawable::getWidth() const - { - return width; - } + inline int Drawable::getWidth() const + { + return width; + } - inline int Drawable::getHeight() const - { - return height; - } + inline int Drawable::getHeight() const + { + return height; + } inline GLuint getTexture() const - { - return texture; - }; + { + return texture; + }; protected: #define DRAWABLE_V_SIZE 8 |