Пример #1
0
 /*
  * Changes the texture mode to external, if it isn't already, and sets the
  * file name of the new texture location.
  * \param[in] The new file name for the external texture.
  */
 public void SetExternalTexture(string file_name)
 {
     if (src_tex != null)
     {
         src_tex.SetExternalTexture(file_name); return;
     }
     else if (image != null)
     {
         image.SetExternalTexture(file_name);
     }
     //Texture not found
     else
     {
         throw new Exception("TextureWrapper holds no data.  This should not be able to happen.");
     }
 }