Bind.MainClass.SetGeneratorMode C# (CSharp) Method

SetGeneratorMode() private static method

private static SetGeneratorMode ( string dirName, string arg ) : void
dirName string
arg string
return void
        private static void SetGeneratorMode(string dirName, string arg)
        {
            if (arg == "gl" || arg == "gl2" || arg == "gl3" || arg == "gl4")
            {
                mode = GeneratorMode.GL2;
                Settings.DefaultOutputNamespace = "OpenTK.Graphics.OpenGL";
            }
            else if (arg == "es10")
            {
                mode = GeneratorMode.ES10;
                Settings.DefaultOutputPath = Path.Combine(
                    Directory.GetParent(Settings.DefaultOutputPath).ToString(),
                    dirName);
                Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES10";
            }
            else if (arg == "es11")
            {
                mode = GeneratorMode.ES11;
                Settings.DefaultOutputPath = Path.Combine(
                    Directory.GetParent(Settings.DefaultOutputPath).ToString(),
                    dirName);
                Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES11";
            }
            else if (arg == "es20")
            {
                mode = GeneratorMode.ES20;
                Settings.DefaultOutputPath = Path.Combine(
                    Directory.GetParent(Settings.DefaultOutputPath).ToString(),
                    dirName);
                Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES20";
            }
            else if (arg == "cl" || arg == "cl10")
            {
                mode = GeneratorMode.CL10;
            }
            else
            {
                throw new NotSupportedException();
            }
        }