aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/render/drawable.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-28 10:39:31 +0800
committerchai <chaifix@163.com>2018-07-28 10:39:31 +0800
commit589ee7ee7014a5f8918e1d99c0e04bff4f7a83cb (patch)
tree8d377c830bcc68afd24b02f97a0811d3d4c50598 /src/libjin/render/drawable.h
parent654a75401775d74f95f3d98611e333bb5641ee9b (diff)
*update
Diffstat (limited to 'src/libjin/render/drawable.h')
-rw-r--r--src/libjin/render/drawable.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/libjin/render/drawable.h b/src/libjin/render/drawable.h
deleted file mode 100644
index ef95502..0000000
--- a/src/libjin/render/drawable.h
+++ /dev/null
@@ -1,58 +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:
-
- const int 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;
-
- };
-} // render
-} // jin
-
-#endif // JIN_MODULES_RENDER
-#endif // __JIN_DRAWABLE \ No newline at end of file