Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 public Manager(MathboxRenderer mathboxRenderer)
 {
     MathboxRenderer = mathboxRenderer;
     Pool            = new ResourcePool(mathboxRenderer);
     WIP             = Pool.Get();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a DisplayList so it may be re-used
 /// </summary>
 /// <param name="displayList"></param>
 public void Return(DisplayList displayList)
 {
     Pool.Return(displayList);
 }
Exemplo n.º 4
0
 public void Return(DisplayList displayList)
 {
     Queue.Enqueue(displayList);
 }