public static Texture Add(Texture.Name name, string pTextureFile) { //ensure call Create() first TextureMan pMan = TextureMan.GetInstance(); Debug.Assert(pMan != null); //add Texture to active list Texture pTexture = (Texture)pMan.baseAdd(); Debug.Assert(pTexture != null); // set new texture Debug.Assert(pTextureFile != null); pTexture.set(name, pTextureFile); return(pTexture); }