コード例 #1
0
ファイル: GlParser.cs プロジェクト: MineGame159/opengl-beef
 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);
             }
         }
     }
 }
コード例 #2
0
ファイル: GlParser.cs プロジェクト: MoshiBar/opengl-beef
 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);
                 }
             }
         }
     }
 }
コード例 #3
0
ファイル: GlFullVersion.cs プロジェクト: MoshiBar/opengl-beef
 private String GetFunctionPointerName(GlFunction function)
 {
     return(Capitalize(function.Name));
 }