aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Drawable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/Drawable.h')
-rw-r--r--src/libjin/Graphics/Drawable.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/libjin/Graphics/Drawable.h b/src/libjin/Graphics/Drawable.h
deleted file mode 100644
index e04ac6b..0000000
--- a/src/libjin/Graphics/Drawable.h
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef __JIN_DRAWABLE
-#define __JIN_DRAWABLE
-#include "../modules.h"
-#if JIN_MODULES_RENDER
-
-#include "../3rdparty/GLee/GLee.h"
-namespace jin
-{
-namespace graphics
-{
-
- 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 getWidth() const
- {
- return width;
- }
-
- inline int 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