diff options
author | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
commit | 866e00474be3bfe0e7dac73b720af0b9ebf7109a (patch) | |
tree | 36c44e99352e2d582b4f2f1dbd4e9e672a54f2cf /source/modules/asura-core/graphics/index_buffer.h | |
parent | b5b43bac50ad58949e70bcd1a34b1e6c4765fd51 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/index_buffer.h')
-rw-r--r-- | source/modules/asura-core/graphics/index_buffer.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source/modules/asura-core/graphics/index_buffer.h b/source/modules/asura-core/graphics/index_buffer.h index e69de29..5fca0ea 100644 --- a/source/modules/asura-core/graphics/index_buffer.h +++ b/source/modules/asura-core/graphics/index_buffer.h @@ -0,0 +1,33 @@ +#ifndef __ASURA_INDEX_BUFFER_H__ +#define __ASURA_INDEX_BUFFER_H__ + +#include <asura-utils/scripting/portable.hpp> + +#include "gpu_buffer.h" + +namespace AsuraEngine +{ + namespace Graphics + { + + class IndexBuffer ASURA_FINAL + : public AEScripting::Portable<IndexBuffer> + , public GPUBuffer + { + public: + + IndexBuffer(BufferUsage usage, BufferDataType datatype, size_t size); + ~IndexBuffer(); + + private: + + LUAX_DECL_FACTORY(IndexBuffer); + + LUAX_DECL_METHOD(_New); + + }; + + } +} + +#endif
\ No newline at end of file |