From 6dc75930fe5fe02f1af5489917752d315cf9e48f Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 22 Oct 2018 21:46:24 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9graphic=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/je_graphic.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/libjin/Graphics/je_graphic.h') 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 mSize; + private: + JinEngine::Math::Vector2 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 -- cgit v1.1-26-g67d0