Exemple #1
0
        private void RegenerateRT()
        {
            if (renderTexture != null)
            {
                renderTexture.Dispose();
            }
            var desiredW = (uint)Pipeline.Context.Screen.Width;
            var desiredH = (uint)Pipeline.Context.Screen.Height;

            renderTexture = new SFML.Graphics.RenderTexture(desiredW, desiredH);
        }
Exemple #2
0
 public void Dispose()
 {
     nativeTexture.Dispose();
     nativeRenderTexture?.Dispose();
 }