Example #1
0
 public void AttachOutPut(string ShaderParameterName, Geometry2D Geometry, bool IsPing)
 {
     if (IsPing)
     {
         if (!OutputGeometries2DPing.ContainsKey(Geometry))
         {
             OutputGeometries2DPing.Add(Geometry, ShaderParameterName);
         }
     }
     else
     {
         if (!OutputGeometries2DPong.ContainsKey(Geometry))
         {
             OutputGeometries2DPong.Add(Geometry, ShaderParameterName);
         }
     }
 }
Example #2
0
 public void DetachOutPut(Geometry2D Geometry, bool IsPing)
 {
     if (IsPing)
     {
         if (OutputGeometries2DPing.ContainsKey(Geometry))
         {
             OutputGeometries2DPing.Remove(Geometry);
         }
     }
     else
     {
         if (OutputGeometries2DPong.ContainsKey(Geometry))
         {
             OutputGeometries2DPong.Remove(Geometry);
         }
     }
 }
Example #3
0
 public void AttachOutPutRange(Dictionary <Geometry2D, string> AddList, bool IsPing)
 {
     if (IsPing)
     {
         foreach (KeyValuePair <Geometry2D, string> Entry in AddList)
         {
             if (!OutputGeometries2DPing.ContainsKey(Entry.Key))
             {
                 OutputGeometries2DPing.Add(Entry.Key, Entry.Value);
             }
         }
     }
     else
     {
         foreach (KeyValuePair <Geometry2D, string> Entry in AddList)
         {
             if (!OutputGeometries2DPong.ContainsKey(Entry.Key))
             {
                 OutputGeometries2DPong.Add(Entry.Key, Entry.Value);
             }
         }
     }
 }