void GenerateCompiledMaterial() { var generator = new swig.CompiledMaterialGenerator(); string appDirectory = GUI.Manager.GetEntryDirectory(); string fullPath = System.IO.Path.Combine(appDirectory, "tools/"); generator.Initialize(fullPath); if (absoluteFilePath != string.Empty) { generator.Compile(CreateBinaryFilePath(), binding.GetAbsolutePath()); } generator.Dispose(); UpdateInformation(); }
public static void GenerateMaterialCache(string absolutePath) { if (string.IsNullOrEmpty(absolutePath)) { return; } var generator = new swig.CompiledMaterialGenerator(); string appDirectory = GUI.Manager.GetEntryDirectory(); string fullPath = System.IO.Path.Combine(appDirectory, "tools/"); generator.Initialize(fullPath); generator.Compile(CreateBinaryFilePath(absolutePath), absolutePath); generator.Dispose(); }