예제 #1
0
        public static GlVersion GetGlVersion(CmdOptions options)
        {
            foreach (GlVersion glVersion in Versions)
            {
                if (glVersion.Version == options.Version)
                {
                    return(glVersion);
                }
            }

            return(null);
        }
예제 #2
0
        static void Run(CmdOptions options)
        {
            GlParser.Parse(GetGlXmlStream());

            GlVersion glVersion = GlParser.GetGlVersion(options);

            if (glVersion == null)
            {
                Console.WriteLine("Can't find specified gl version or profile.");
                return;
            }

            new GlFullVersion(glVersion, options.Profile).Generate();
        }