Example #1
0
        public static string TransformVersionToString(eOpenSceneGraphVersion version)
        {
            switch (version)
            {
            case eOpenSceneGraphVersion.OpenSceneGraph_3_0_1:
                return("3.0.1");
            }

            throw new Exception("Unknown OpenSceneGraph version");
        }
Example #2
0
        public static string GetDownloadURL(eOpenSceneGraphVersion version)
        {
            foreach (OpenSceneGraphInfo info in CreateInfoList())
            {
                if (info.version == version)
                {
                    return(info.DownloadURL);
                }
            }

            throw new Exception("Unknown OpenSceneGraph version.");
        }
Example #3
0
        public static OpenSceneGraphInfo GetInfo(eOpenSceneGraphVersion version)
        {
            foreach (OpenSceneGraphInfo info in CreateInfoList())
            {
                if (info.version == version)
                {
                    return(new OpenSceneGraphInfo(info.ZIPFilename, info.downloadURL, info.version)); // hand back a copy
                }
            }

            throw new Exception("Unknown OpenSceneGraph version.");
        }
Example #4
0
        public static string GetZipFileName(eOpenSceneGraphVersion version)
        {
            foreach (OpenSceneGraphInfo bi in CreateInfoList())
            {
                if (bi.version == version)
                {
                    return(bi.ZIPFilename);
                }
            }

            throw new Exception("Unknown OpenSceneGraph version");
        }
Example #5
0
 OpenSceneGraphInfo(string filename, string downloadURL, eOpenSceneGraphVersion version)
 {
     this.zipFilename = filename;
     this.downloadURL = downloadURL;
     this.version     = version;
 }