Exemplo n.º 1
0
 public void SetRenderTarget(IPlatformRenderTexture2D texture)
 {
     if (renderTarget != texture)
     {
         renderTarget      = (PlatformRenderTexture2D)texture;
         renderTargetDirty = true;
     }
 }
Exemplo n.º 2
0
 public IPlatformRenderTexture2D GetPlatformTexture()
 {
     if (platformTexture == null)
     {
         platformTexture = PlatformRenderer.Context.CreateRenderTexture2D(Format, size.Width, size.Height, textureParams);
     }
     return(platformTexture);
 }
Exemplo n.º 3
0
 private void DisposeInternal()
 {
     MemoryUsed = 0;
     if (platformTexture != null)
     {
         var platformTextureCopy = platformTexture;
         Window.Current.InvokeOnRendering(() => {
             platformTextureCopy.Dispose();
         });
         platformTexture = null;
     }
 }