From a6f2d5fff89b7322009c46a9272668ca4c32ce64 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 15 Nov 2018 08:32:38 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/je_mesh.h | 6 +++++- src/libjin/Graphics/je_shapes.h | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/libjin/Graphics') 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 -- cgit v1.1-26-g67d0