diff options
author | chai <chaifix@163.com> | 2019-04-08 22:31:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-08 22:31:12 +0800 |
commit | 4ea4bbfcb03091cb987dc151d41980ec16f3d18d (patch) | |
tree | bdbe56d8c570b5f243744fbfc5a6cdd2c4f6dc4f /source/modules/asura-core/graphics/mesh2d.h | |
parent | e47baca4f23db43ec91fbf64d5d06d7c0dbee495 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/mesh2d.h')
-rw-r--r-- | source/modules/asura-core/graphics/mesh2d.h | 24 |
1 files changed, 21 insertions, 3 deletions
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 <vector> + #include <asura-utils/scripting/portable.hpp> +#include <asura-utils/math/vector2.hpp> + +#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; + }; } |