コード例 #1
0
 /// <summary>
 /// Attaches the elements to the specified host.
 /// </summary>
 /// <param name="host">The host.</param>
 public void Attach(IRenderHost host)
 {
     if (!IsAttached)
     {
         foreach (var e in this.OwnedRenderables)
         {
             e.Attach(host);
         }
         SharedModelContainerInternal?.Attach(host);
         foreach (var e in this.D2DRenderables)
         {
             e.Attach(host);
         }
         IsAttached = true;
     }
 }
コード例 #2
0
ファイル: Viewport3DX.cs プロジェクト: holance/helix-toolkit
 /// <summary>
 /// Attaches the elements to the specified host.
 /// </summary>
 /// <param name="host">The host.</param>
 public void Attach(IRenderHost host)
 {
     if (!IsAttached)
     {
         foreach (var e in this.OwnedRenderables)
         {
             e.Attach(EffectsManager);
             e.Invalidated += NodeInvalidated;
         }
         SharedModelContainerInternal?.Attach(host);
         foreach (var e in this.D2DRenderables)
         {
             e.Attach(host);
         }
         IsAttached = true;
     }
 }