/// <summary> /// Deactivates the blending control object in the rendering pipeline, replacing it with whatever settings were active before. /// <para> </para> /// This method restores any previously active blending settings that were captured when Activate was called. /// </summary> public void Deactivate() { Window.BlendSettings = SwapSettings; SwapSettings = null; }
public override void Dispose() { if (!IsDisposed) { base.Dispose(); SwapSettings = null; Window = null; } }
/// <summary> /// Activates the blending control object in the rendering pipeline, replacing whatever settings were active before. /// <para> </para> /// This method captures a reference to the previously active blending settings before replacing them so that settings can easily be <para/> /// swapped for one another throughout the rendering loop. To restore those previous settings, simply call the Deactivate method of <para/> /// this class. /// </summary> public void Activate() { SwapSettings = Window.BlendSettings; Window.BlendSettings = this; }