private static void ParseFunctions(XmlDocument xml) { foreach (XmlNode commandsNode in xml.GetElementsByTagName("commands")) { foreach (XmlNode commandNode in commandsNode) { if (commandNode.Name == "command") { GlFunction glFunction = new GlFunction(commandNode); Functions.Add(glFunction.Name, glFunction); } } } }
private static void ParseFunctions(XmlDocument xml) { foreach (XmlNode commandsNode in xml.GetElementsByTagName("commands")) { foreach (XmlNode commandNode in commandsNode) { if (commandNode.Name == "command") { if (!commandNode.InnerText.Contains("struct ")) //commands with structs arent supported yet { GlFunction glFunction = new GlFunction(commandNode); Functions.Add(glFunction.Name, glFunction); } } } } }
private String GetFunctionPointerName(GlFunction function) { return(Capitalize(function.Name)); }