Пример #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();
 }
Пример #2
0
 public Manager(MathboxRenderer mathboxRenderer)
 {
     MathboxRenderer = mathboxRenderer;
     Pool            = new ResourcePool(mathboxRenderer);
     WIP             = Pool.Get();
 }
Пример #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);
 }
Пример #4
0
 public void Return(DisplayList displayList)
 {
     Queue.Enqueue(displayList);
 }