/// <summary> /// Commits the assembled display list for rendering and initializes a new batch for assembly /// </summary> /// <param name="erase">indicates whether the target buffer should be erased before redering this display list</param> public void CommitDisplayList(bool erase) { WIP.Commit(erase); RenderQueue.Enqueue(WIP); WIP = Pool.Get(); }
public Manager(MathboxRenderer mathboxRenderer) { MathboxRenderer = mathboxRenderer; Pool = new ResourcePool(mathboxRenderer); WIP = Pool.Get(); }
/// <summary> /// Returns a DisplayList so it may be re-used /// </summary> /// <param name="displayList"></param> public void Return(DisplayList displayList) { Pool.Return(displayList); }
public void Return(DisplayList displayList) { Queue.Enqueue(displayList); }