예제 #1
0
        public static int GenSource()
        {
            int sources;

            AL.GenSources(1, out sources);
            return(sources);
        }
예제 #2
0
 public static void GenSources(int[] sources)
 {
     uint[] numArray = new uint[sources.Length];
     AL.GenSources(numArray.Length, out numArray[0]);
     for (int index = 0; index < numArray.Length; ++index)
     {
         sources[index] = (int)numArray[index];
     }
 }
예제 #3
0
 public static int[] GenSources(int n)
 {
     uint[] numArray1 = new uint[n];
     AL.GenSources(numArray1.Length, out numArray1[0]);
     int[] numArray2 = new int[n];
     for (int index = 0; index < numArray1.Length; ++index)
     {
         numArray2[index] = (int)numArray1[index];
     }
     return(numArray2);
 }
예제 #4
0
 public static void GenSource(out uint source)
 {
     AL.GenSources(1, out source);
 }