Fusion.Drivers.Graphics.IndexBuffer.Create C# (CSharp) Method

Create() public static method

Creates buffer from given indices
public static Create ( GraphicsDevice device, int indices ) : IndexBuffer
device GraphicsDevice
indices int
return IndexBuffer
		public static IndexBuffer Create ( GraphicsDevice device, int[] indices )
		{
			var ib = new IndexBuffer( device, indices.Length );
			ib.SetData( indices );
			return ib;
		}