diff options
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; }; |