public void BufferData(int[] indices, DrawType drawType) { if (!IsCurrentlyBound()) { Bind(); } Gl.BufferData(0x8893, indices.Length * Marshal.SizeOf(new int()), indices, (int)drawType); }
public void BufferData(float[] data, DrawType dType) { Gl.BufferData((int)bufType, Marshal.SizeOf(typeof(float)) * data.Length, data, (int)dType); }