diff options
author | chai <chaifix@163.com> | 2018-10-22 21:46:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-22 21:46:24 +0800 |
commit | 6dc75930fe5fe02f1af5489917752d315cf9e48f (patch) | |
tree | c634d6997d58af783e3866755fc38a96f97806ac /src/libjin/Graphics/je_graphic.h | |
parent | 8c0da1990d6e7f9ad19c5270c0fdee848af829a1 (diff) |
*修改graphic接口
Diffstat (limited to 'src/libjin/Graphics/je_graphic.h')
-rw-r--r-- | src/libjin/Graphics/je_graphic.h | 17 |
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 |