aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_graphic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/je_graphic.h')
-rw-r--r--src/libjin/Graphics/je_graphic.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/libjin/Graphics/je_graphic.h b/src/libjin/Graphics/je_graphic.h
index d7e3254..fb6b19e 100644
--- a/src/libjin/Graphics/je_graphic.h
+++ b/src/libjin/Graphics/je_graphic.h
@@ -1,5 +1,5 @@
-#ifndef __JE_DRAWABLE
-#define __JE_DRAWABLE
+#ifndef __JE_GRAPHIC_H
+#define __JE_GRAPHIC_H
#include "../core/je_configuration.h"
#if defined(jin_graphics)
@@ -73,16 +73,13 @@ namespace JinEngine
void setFilter(GLint min, GLint max);
protected:
- static const int DRAWABLE_V_SIZE = 8;
-
GLuint mTexture;
-
- // Size of drawable thing.
- JinEngine::Math::Vector2<uint> mSize;
+ private:
+ JinEngine::Math::Vector2<uint> mSize;
// Screen coordinates and uv coordinates.
- float mVertexCoords[DRAWABLE_V_SIZE];
- float mTextureCoords[DRAWABLE_V_SIZE];
+ float mVertexCoords[8];
+ float mTextureCoords[8];
};
@@ -91,4 +88,4 @@ namespace JinEngine
#endif // defined(jin_graphics)
-#endif // __JE_DRAWABLE \ No newline at end of file
+#endif // __JE_GRAPHIC_H \ No newline at end of file