Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }