summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/index_buffer.h
blob: 98e901ae29c6250bde9d0c74d9e0d8544407a853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#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();

		luaxport:

			LUAX_DECL_FACTORY(IndexBuffer);

			LUAX_DECL_METHOD(_New);

		};

	}
}

#endif