summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/mesh2d.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-08 22:31:12 +0800
committerchai <chaifix@163.com>2019-04-08 22:31:12 +0800
commit4ea4bbfcb03091cb987dc151d41980ec16f3d18d (patch)
treebdbe56d8c570b5f243744fbfc5a6cdd2c4f6dc4f /source/modules/asura-core/graphics/mesh2d.h
parente47baca4f23db43ec91fbf64d5d06d7c0dbee495 (diff)
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/mesh2d.h')
-rw-r--r--source/modules/asura-core/graphics/mesh2d.h24
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;
+
};
}