public void RemoveRenderQuene(AdaptiveRenderQueue _renderQuene) { if (_renderQuene == null) { return; } this.renderQuenes.Remove(_renderQuene); this.renderQuenes.Sort(new BetterList <AdaptiveRenderQueue> .CompareFunc(AdaptiveRenderQueue.RenderQueueCompareFunc)); }
public static int RenderQueueCompareFunc(AdaptiveRenderQueue left, AdaptiveRenderQueue right) { if (left.mEffectDepth < right.mEffectDepth) { return(-1); } if (left.mEffectDepth > right.mEffectDepth) { return(1); } return(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)); }