diff options
author | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
commit | 866e00474be3bfe0e7dac73b720af0b9ebf7109a (patch) | |
tree | 36c44e99352e2d582b4f2f1dbd4e9e672a54f2cf /source/modules/asura-core/graphics/mesh2d.h | |
parent | b5b43bac50ad58949e70bcd1a34b1e6c4765fd51 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/mesh2d.h')
-rw-r--r-- | source/modules/asura-core/graphics/mesh2d.h | 18 |
1 files changed, 13 insertions, 5 deletions
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 <vector> +// asura modules #include <asura-utils/scripting/portable.hpp> #include <asura-utils/math/vector2.hpp> +// 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йvboebo /// - GPUBuffer* mVBO; - GPUBuffer* mEBO; + VertexBuffer* mVBO; + IndexBuffer* mEBO; }; |