Ejemplo n.º 1
0
 /// <summary>
 /// Requests that texture filters be re-configured as soon as possible.
 /// This is called when the texture settings are changed.
 ///
 /// This method may only be called from the UI thread.
 /// </summary>
 public void RequestReconfigureTextures()
 {
     SetTexturesChangedFlag();
     foreach (var tex in TextureSet.GetLoadedTexturesCollectionThreadsafe())
     {
         if (tex.State == Texture.TextureState.GlTextureCreated)
         {
             tex.ReconfigureUploadedTextureRequested = true;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Requests that all textures be re-uploaded as soon as possible.
 /// This is called when the texture settings are changed.
 ///
 /// This method may only be called from the UI thread.
 /// </summary>
 public void RequestReuploadTextures()
 {
     SetTexturesChangedFlag();
     foreach (var tex in TextureSet.GetLoadedTexturesCollectionThreadsafe())
     {
         if (tex.State == Texture.TextureState.GlTextureCreated)
         {
             tex.ReleaseUpload();
             // tex.Upload();//??????????
         }
     }
 }