internal static int BuildMesh(int id, string inputFilename, string navMeshFilename, BuildMeshCallback callback) { inputFilename += "\0"; navMeshFilename += "\0"; var inputFilenameBytes = Encoding.ASCII.GetBytes(inputFilename); var navMeshFilenameBytes = Encoding.ASCII.GetBytes(navMeshFilename); return BuildMeshFromFile(id, inputFilenameBytes, navMeshFilenameBytes, callback); }
public static extern int BuildMeshFromFile(int userId, byte[] inputFilename, byte[] navMeshFilename, [MarshalAs(UnmanagedType.FunctionPtr)] BuildMeshCallback callback, int numCores);
internal static int BuildMesh(int id, string inputFilename, string navMeshFilename, BuildMeshCallback callback) { inputFilename += "\0"; navMeshFilename += "\0"; var inputFilenameBytes = Encoding.ASCII.GetBytes(inputFilename); var navMeshFilenameBytes = Encoding.ASCII.GetBytes(navMeshFilename); //Console.WriteLine(string.Format("The number of processors on the system is: {0}", Environment.ProcessorCount)); return(BuildMeshFromFile(id, inputFilenameBytes, navMeshFilenameBytes, callback, Environment.ProcessorCount)); }
internal static int BuildMesh(int id, string inputFilename, string navMeshFilename, BuildMeshCallback callback) { inputFilename += "\0"; navMeshFilename += "\0"; var inputFilenameBytes = Encoding.ASCII.GetBytes(inputFilename); var navMeshFilenameBytes = Encoding.ASCII.GetBytes(navMeshFilename); //Console.WriteLine(string.Format("The number of processors on the system is: {0}", Environment.ProcessorCount)); return BuildMeshFromFile(id, inputFilenameBytes, navMeshFilenameBytes, callback, Environment.ProcessorCount); }