aboutsummaryrefslogtreecommitdiff
path: root/src/render/drawable.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-17 19:10:57 +0800
committerchai <chaifix@163.com>2018-05-17 19:10:57 +0800
commit70cdd89e887641b7423e5d4d05928d14ee014aba (patch)
tree248b87ae35197a9e5941e65ef20eea359e87a5ed /src/render/drawable.h
parentdf4b054b8e8d00f7817daaa4cbf6961712cd0b75 (diff)
change file tree
Diffstat (limited to 'src/render/drawable.h')
-rw-r--r--src/render/drawable.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/render/drawable.h b/src/render/drawable.h
deleted file mode 100644
index f13c5a9..0000000
--- a/src/render/drawable.h
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __JIN_DRAWABLE
-#define __JIN_DRAWABLE
-#include "libs/GLee/GLee.h"
-namespace jin
-{
-namespace render
-{
- class Drawable
- {
- public:
-
- 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; };
-
- 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