// create a new index buffer, specifying a list of indices IndexBuffer indexBuffer = new IndexBuffer( new int[] { 0, 1, 2, 2, 3, 0 }, BufferUsageHint.StaticDraw );
// create a new buffer, specifying its size and data type BufferData bufferData = new BufferData( 1024, BufferUsageHint.DynamicDraw, BufferRangeTarget.UniformBuffer ); // write some data to the buffer float[] data = { 1.0f, 2.0f, 3.0f }; bufferData.Write(0, data);