public static string TransformVersionToString(eOpenSceneGraphVersion version) { switch (version) { case eOpenSceneGraphVersion.OpenSceneGraph_3_0_1: return("3.0.1"); } throw new Exception("Unknown OpenSceneGraph version"); }
public static string GetDownloadURL(eOpenSceneGraphVersion version) { foreach (OpenSceneGraphInfo info in CreateInfoList()) { if (info.version == version) { return(info.DownloadURL); } } throw new Exception("Unknown OpenSceneGraph version."); }
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."); }
public static string GetZipFileName(eOpenSceneGraphVersion version) { foreach (OpenSceneGraphInfo bi in CreateInfoList()) { if (bi.version == version) { return(bi.ZIPFilename); } } throw new Exception("Unknown OpenSceneGraph version"); }
OpenSceneGraphInfo(string filename, string downloadURL, eOpenSceneGraphVersion version) { this.zipFilename = filename; this.downloadURL = downloadURL; this.version = version; }