From 084623519e95f0ab0cf4bc328b5fa736d679c5bd Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 31 Jul 2019 21:35:12 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E5=90=8D=E7=A7=B0=E7=A9=BA=E9=97=B4?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/modules/asura-core/graphics/mesh2d.h | 46 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 24 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 8c26564..d2d7d3b 100644 --- a/source/modules/asura-core/graphics/mesh2d.h +++ b/source/modules/asura-core/graphics/mesh2d.h @@ -16,39 +16,37 @@ #include "vertex_buffer.h" #include "index_buffer.h" -namespace AsuraEngine -{ - namespace Graphics - { +namespace_begin(AsuraEngine) +namespace_begin(Graphics) - /// - /// 2D mesh,用于做一些顶点动画。 - /// https://en.wikipedia.org/wiki/Polygon_mesh - /// - class Mesh2D ASURA_FINAL - : public Scripting::Portable - { - public: +/// +/// 2D mesh,用于做一些顶点动画。 +/// https://en.wikipedia.org/wiki/Polygon_mesh +/// +class Mesh2D ASURA_FINAL + : public Scripting::Portable +{ +public: - Mesh2D(); - ~Mesh2D(); + Mesh2D(); + ~Mesh2D(); - bool Load(AEMesh::Mesh2DData* data); + bool Load(AEMesh::Mesh2DData* data); - private: +private: - VertexBuffer* m_VBO; ///< vertex buffer - IndexBuffer* m_IBO; ///< index buffer + VertexBuffer* m_VBO; ///< vertex buffer + IndexBuffer* m_IBO; ///< index buffer - luaxport: +luaxport: - LUAX_DECL_FACTORY(Mesh2D); + LUAX_DECL_FACTORY(Mesh2D); - LUAX_DECL_METHOD(_SetVertex); + LUAX_DECL_METHOD(_SetVertex); - }; +}; - } -} +namespace_end +namespace_end #endif \ No newline at end of file -- cgit v1.1-26-g67d0