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

            return(null);
        }
Example #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();
        }