diff options
author | chai <chaifix@163.com> | 2018-11-15 08:32:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-15 08:32:38 +0800 |
commit | a6f2d5fff89b7322009c46a9272668ca4c32ce64 (patch) | |
tree | ff81127c3be8bde426e57db544d69b9616ddc25b /src/libjin/Graphics | |
parent | 611d12bdd245dd43b7434661d3e24f2b435378cb (diff) |
*修改代码结构
Diffstat (limited to 'src/libjin/Graphics')
-rw-r--r-- | src/libjin/Graphics/je_mesh.h | 6 | ||||
-rw-r--r-- | src/libjin/Graphics/je_shapes.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/libjin/Graphics/je_mesh.h b/src/libjin/Graphics/je_mesh.h index dbb2881..e0a38f8 100644 --- a/src/libjin/Graphics/je_mesh.h +++ b/src/libjin/Graphics/je_mesh.h @@ -1,6 +1,8 @@ #ifndef __JE_MESH_H__ #define __JE_MESH_H__ +#include "je_graphic.h" + namespace JinEngine { namespace Graphics @@ -12,9 +14,11 @@ namespace JinEngine class Mesh { public: + void setGraphic(); + private: - + const Graphic* mGraphic; }; diff --git a/src/libjin/Graphics/je_shapes.h b/src/libjin/Graphics/je_shapes.h index 16e29a4..d62592b 100644 --- a/src/libjin/Graphics/je_shapes.h +++ b/src/libjin/Graphics/je_shapes.h @@ -12,11 +12,11 @@ namespace JinEngine namespace Graphics { - typedef enum { + enum RenderMode { NONE = 0, FILL , LINE - }RenderMode; + }; extern void line(int x1, int y1, int x2, int y2); extern void rect(RenderMode mode, int x, int y, int w, int h); @@ -31,4 +31,4 @@ namespace JinEngine #endif // jin_graphics -#endif // __JE_GEOMETRY_H__ +#endif // __JE_GEOMETRY_H__
\ No newline at end of file |