public void Draw(IDrawableCom toDraw, int priority) { Debug.Assert(!toDraw.Owner.Destroyed); _drawQueue.Enqueue(toDraw.DrawableNode, priority); if (toDraw is DrawRectCom) { MaxDrawCountForType++; } }
public void Draw(IDrawableCom toDraw) { _drawQueue.Enqueue(toDraw.DrawableNode, 0); }