aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_drawable.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-22 21:30:21 +0800
committerchai <chaifix@163.com>2018-10-22 21:30:21 +0800
commit58d09aa3ca4409e2a15473b0ac3c0446f0acb1a2 (patch)
tree37dadab5575116c75b54064556b045ba8a245871 /src/libjin/Graphics/je_drawable.h
parent99bea1e47c813016d89c9e99296fa66e183d808f (diff)
*misc
Diffstat (limited to 'src/libjin/Graphics/je_drawable.h')
-rw-r--r--src/libjin/Graphics/je_drawable.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/libjin/Graphics/je_drawable.h b/src/libjin/Graphics/je_drawable.h
deleted file mode 100644
index fdf9ea2..0000000
--- a/src/libjin/Graphics/je_drawable.h
+++ /dev/null
@@ -1,89 +0,0 @@
-#ifndef __JE_DRAWABLE
-#define __JE_DRAWABLE
-#include "../core/je_configuration.h"
-#if defined(jin_graphics)
-
-#include "../math/je_quad.h"
-#include "../math/je_vector2.hpp"
-
-#include "je_gl.h"
-#include "je_bitmap.h"
-
-namespace JinEngine
-{
- namespace Graphics
- {
- ///
- ///
- ///
- class Drawable
- {
- public:
- ///
- ///
- ///
- Drawable(int w = 0, int h = 0);
-
- ///
- ///
- ///
- Drawable(const Bitmap* bitmap);
-
- ///
- ///
- ///
- virtual ~Drawable();
-
- ///
- ///
- ///
- void setOrigin(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 mSize.w; }
-
- ///
- ///
- ///
- inline int getHeight() const { return mSize.h; }
-
- ///
- ///
- ///
- inline GLuint getTexture() const { return mTexture; }
-
- ///
- ///
- ///
- void setFilter(GLint min, GLint max);
-
- protected:
- static const int DRAWABLE_V_SIZE = 8;
-
- GLuint mTexture;
- GLuint mVBO;
- JinEngine::Math::Vector2<unsigned int> mSize;
- JinEngine::Math::Vector2<int> mOrigin;
- float mVertexCoords[DRAWABLE_V_SIZE];
- float mTextureCoords[DRAWABLE_V_SIZE];
-
- };
-
- } // namespace Graphics
-} // namespace JinEngine
-
-#endif // defined(jin_graphics)
-
-#endif // __JE_DRAWABLE \ No newline at end of file