From 4ea4bbfcb03091cb987dc151d41980ec16f3d18d Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Apr 2019 22:31:12 +0800 Subject: *misc --- source/modules/asura-core/graphics/mesh2d.h | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'source/modules/asura-core/graphics/mesh2d.h') diff --git a/source/modules/asura-core/graphics/mesh2d.h b/source/modules/asura-core/graphics/mesh2d.h index 226b9f6..87f0d4b 100644 --- a/source/modules/asura-core/graphics/mesh2d.h +++ b/source/modules/asura-core/graphics/mesh2d.h @@ -1,13 +1,19 @@ #ifndef __ASURA_ENGINE_MESH2D_H__ #define __ASURA_ENGINE_MESH2D_H__ +#include + #include +#include + +#include "color.h" +#include "gpu_buffer.h" namespace AsuraEngine { namespace Graphics { - + /// /// 2D mesh,用于做一些顶点动画。 /// @@ -16,12 +22,24 @@ namespace AsuraEngine { public: - LUAX_DECL_FACTORY(Mesh2D); - Mesh2D(); ~Mesh2D(); + private: + + //----------------------------------------------------------------------------// + + LUAX_DECL_FACTORY(Mesh2D); + + //----------------------------------------------------------------------------// + + /// + /// 从mesh2d data中构建的vbo 和ebo + /// + GPUBuffer* mVBO; + GPUBuffer* mEBO; + }; } -- cgit v1.1-26-g67d0