private PrintGLSLFile ( Node rootNode, |
||
rootNode | Node | |
gen | ||
nameToExport | string | |
return | void |
public static void Main(string[] args) { Console.WriteLine("Test Began!"); if (args.Length < 2) { Console.WriteLine("You must pass at least one externalizable function as the main!"); return; } MainClass m = new MainClass(); //string[] functions = args[0..3]; ArrayList mainFunctions = new ArrayList(); for (int i=1; i<args.Length; i++) { mainFunctions.Add(args[i]); } GLSLGenerator gen = new GLSLGenerator(mainFunctions); Node node = m.ParseFile(args[0], gen); m.PrintLogFile(node); for (int i=0; i<mainFunctions.Count; i++) { m.PrintGLSLFile(node, gen, (string)mainFunctions[i]); } //gen.PrintCallTree(); Console.WriteLine("Test OK!"); }
public static void Main(string[] args) { Console.WriteLine("Test Began!"); if (args.Length < 2) { Console.WriteLine("You must pass at least one externalizable function as the main!"); } MainClass m = new MainClass(); //string[] functions = args[0..3]; ArrayList mainFunctions = new ArrayList(); for (int i = 1; i < args.Length; i++) { mainFunctions.Add(args[i]); } GLSLGenerator gen = new GLSLGenerator(mainFunctions); Node node = m.ParseFile(args[0], gen); m.PrintLogFile(node); for (int i = 0; i < mainFunctions.Count; i++) { m.PrintGLSLFile(node, gen, (string)mainFunctions[i]); } //gen.PrintCallTree(); Console.WriteLine("Test OK!"); }