summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/vertex_buffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-10 09:03:57 +0800
committerchai <chaifix@163.com>2019-04-10 09:03:57 +0800
commitb5b43bac50ad58949e70bcd1a34b1e6c4765fd51 (patch)
tree32e8655bf48ca059d818501c8d95fc92ae97b318 /source/modules/asura-core/graphics/vertex_buffer.h
parent200f710983fd54b23437cb78d5a03c90b5a47523 (diff)
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/vertex_buffer.h')
-rw-r--r--source/modules/asura-core/graphics/vertex_buffer.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/modules/asura-core/graphics/vertex_buffer.h b/source/modules/asura-core/graphics/vertex_buffer.h
new file mode 100644
index 0000000..b8245e5
--- /dev/null
+++ b/source/modules/asura-core/graphics/vertex_buffer.h
@@ -0,0 +1,29 @@
+#ifndef __ASURA_VERTEX_BUFFER_H__
+#define __ASURA_VERTEX_BUFFER_H__
+
+#include <asura-utils/scripting/portable.hpp>
+
+#include "gpu_buffer.h"
+
+namespace AsuraEngine
+{
+ namespace Graphics
+ {
+
+ class VertexBuffer : AEScripting::Portable<VertexBuffer, GPUBuffer>
+ {
+ public:
+
+ VertexBuffer(BufferUsage usage, BufferDataType datatype, size_t size);
+ ~VertexBuffer();
+
+ private:
+
+ LUAX_DECL_FACTORY(VertexBuffer, GPUBuffer);
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file