From 866e00474be3bfe0e7dac73b720af0b9ebf7109a Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 13 Apr 2019 20:15:07 +0800 Subject: *misc --- source/modules/asura-core/graphics/mesh2d.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 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 420986e..0c3627f 100644 --- a/source/modules/asura-core/graphics/mesh2d.h +++ b/source/modules/asura-core/graphics/mesh2d.h @@ -1,13 +1,20 @@ #ifndef __ASURA_ENGINE_MESH2D_H__ #define __ASURA_ENGINE_MESH2D_H__ +// cpp #include +// asura modules #include #include +// module +#include "../mesh/mesh2d_data.h" + +// folder #include "color.h" -#include "gpu_buffer.h" +#include "vertex_buffer.h" +#include "index_buffer.h" namespace AsuraEngine { @@ -24,9 +31,10 @@ namespace AsuraEngine public: Mesh2D(); - ~Mesh2D(); + bool Load(AEMesh::Mesh2DData* data); + private: //----------------------------------------------------------------------------// @@ -36,10 +44,10 @@ namespace AsuraEngine //----------------------------------------------------------------------------// /// - /// 从mesh2d data中构建的vbo 和ebo + /// 从mesh2d data中构建的vbo和ebo /// - GPUBuffer* mVBO; - GPUBuffer* mEBO; + VertexBuffer* mVBO; + IndexBuffer* mEBO; }; -- cgit v1.1-26-g67d0