예제 #1
0
 /// <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;
 }
예제 #2
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         base.Dispose();
         SwapSettings = null;
         Window = null;
     }
 }
예제 #3
0
 /// <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;
 }