Exemplo n.º 1
0
        public void BufferData(int[] indices, DrawType drawType)
        {
            if (!IsCurrentlyBound())
            {
                Bind();
            }

            Gl.BufferData(0x8893, indices.Length * Marshal.SizeOf(new int()), indices, (int)drawType);
        }
Exemplo n.º 2
0
 public void BufferData(float[] data, DrawType dType)
 {
     Gl.BufferData((int)bufType, Marshal.SizeOf(typeof(float)) * data.Length, data, (int)dType);
 }