// ================================================ // After here are conversion routines that are sometimes needed to link between // the Ogre resource names and regular entity names. Use at your peril. // Ogre presumes that entity name will be the filename in the cache. Make the // entity name on the Ogre side have the cache filename format // Used for meshes, materials public static string ConvertToOgreNameX(EntityName entName, string extension) { string entReplace = Regex.Replace(entName.EntityPart, EntityNameMatch, CachedNameReplace); // if the replacement didn't happen entReplace == entName string newName = entName.CombineEntityName(entName.HeaderPart, entName.HostPart, entReplace); if (extension != null) { newName += extension; } // LogManager.Log.Log(LogLevel.DRENDERDETAIL, "ConvertToOgreName: " + entName.ToString() + " => " + newName); return(newName); }