public static int GenSource() { int sources; AL.GenSources(1, out sources); return(sources); }
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]; } }
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); }
public static void GenSource(out uint source) { AL.GenSources(1, out source); }