diff options
author | chai <chaifix@163.com> | 2018-07-28 10:53:52 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-28 10:53:52 +0800 |
commit | 70eaf47d6505dc40f672fafb61c2b7f084fa798a (patch) | |
tree | 44844eebcc1408495056d24b4e4ccda0ee0f8466 /libjin/Render/Drawable.h | |
parent | 18b02e49b6f01a3f36982113a1c27ea2ea8a7782 (diff) |
*update
Diffstat (limited to 'libjin/Render/Drawable.h')
-rw-r--r-- | libjin/Render/Drawable.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/libjin/Render/Drawable.h b/libjin/Render/Drawable.h deleted file mode 100644 index f8e25a2..0000000 --- a/libjin/Render/Drawable.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __JIN_DRAWABLE -#define __JIN_DRAWABLE -#include "../modules.h" -#if JIN_MODULES_RENDER - -#include "3rdparty/GLee/GLee.h" -namespace jin -{ -namespace render -{ - class Drawable - { - public: - Drawable(int w = 0, int h = 0); - virtual ~Drawable(); - - void setAnchor(int x, int y); - - void draw(int x, int y, float sx, float sy, float r); - - 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 - void setVertices(float* v, float* t); - - GLuint texture; - - int width, height; - - /* anchor point */ - int ancx, ancy; - - // render coords - float* textCoord; - float* vertCoord; - - }; -} -}// jin - -#endif // JIN_MODULES_RENDER -#endif |