Exemplo n.º 1
0
 public static void DeleteBuffers(int[] buffers)
 {
     if (buffers == null)
     {
         throw new ArgumentNullException();
     }
     if (buffers.Length == 0)
     {
         throw new ArgumentOutOfRangeException();
     }
     AL.DeleteBuffers(buffers.Length, ref buffers[0]);
 }
Exemplo n.º 2
0
 public static void DeleteSources(int[] sources)
 {
     if (sources == null)
     {
         throw new ArgumentNullException();
     }
     if (sources.Length == 0)
     {
         throw new ArgumentOutOfRangeException();
     }
     AL.DeleteBuffers(sources.Length, ref sources[0]);
 }
Exemplo n.º 3
0
 public static void DeleteBuffer(int buffer)
 {
     AL.DeleteBuffers(1, ref buffer);
 }
Exemplo n.º 4
0
 public static unsafe void DeleteBuffers(int n, [In] ref int buffers)
 {
     fixed(int *buffers1 = &buffers)
     AL.DeleteBuffers(n, buffers1);
 }