Пример #1
0
 public void RemoveRenderQuene(AdaptiveRenderQueue _renderQuene)
 {
     if (_renderQuene == null)
     {
         return;
     }
     this.renderQuenes.Remove(_renderQuene);
     this.renderQuenes.Sort(new BetterList <AdaptiveRenderQueue> .CompareFunc(AdaptiveRenderQueue.RenderQueueCompareFunc));
 }
Пример #2
0
 public static int RenderQueueCompareFunc(AdaptiveRenderQueue left, AdaptiveRenderQueue right)
 {
     if (left.mEffectDepth < right.mEffectDepth)
     {
         return(-1);
     }
     if (left.mEffectDepth > right.mEffectDepth)
     {
         return(1);
     }
     return(0);
 }
Пример #3
0
 public void AddRenderQuene(AdaptiveRenderQueue _renderQuene)
 {
     if (_renderQuene == null)
     {
         return;
     }
     if (!this.renderQuenes.Contains(_renderQuene))
     {
         this.renderQuenes.Add(_renderQuene);
     }
     this.renderQuenes.Sort(new BetterList <AdaptiveRenderQueue> .CompareFunc(AdaptiveRenderQueue.RenderQueueCompareFunc));
 }