diff options
author | chai <chaifix@163.com> | 2018-10-18 07:58:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-18 07:58:07 +0800 |
commit | b27581c3d9657a4a05191e47eed78d00ec0a46cd (patch) | |
tree | 1d461a5642645f98fe37517884d02c6c53434cd5 /src/libjin/Graphics/Drawable.h | |
parent | dce7b78db8a7071217b1439c4b7f6a341ce37cf1 (diff) |
*注释
Diffstat (limited to 'src/libjin/Graphics/Drawable.h')
-rw-r--r-- | src/libjin/Graphics/Drawable.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/libjin/Graphics/Drawable.h b/src/libjin/Graphics/Drawable.h index 29f1946..31ee3c5 100644 --- a/src/libjin/Graphics/Drawable.h +++ b/src/libjin/Graphics/Drawable.h @@ -12,19 +12,55 @@ namespace jin { namespace graphics { - + /// + /// + /// class Drawable { public: + /// + /// + /// Drawable(int w = 0, int h = 0); + + /// + /// + /// Drawable(const Bitmap* bitmap); + + /// + /// + /// virtual ~Drawable(); + /// + /// + /// void setAnchor(int x, int y); + + /// + /// + /// void draw(int x, int y, float sx = 1, float sy = 1, float r = 0); + + /// + /// + /// void draw(const math::Quad& slice, int x, int y, float sx = 1, float sy = 1, float r = 0, float ax = 0, float ay = 0); + + /// + /// + /// inline int getWidth() const { return size.w; } + + /// + /// + /// inline int getHeight() const { return size.h; } + + /// + /// + /// inline GLuint getTexture() const { return texture; } protected: |