public override RenderItem CreateRenderItem(IPointRender render)
        {
            Debug.Assert(!_isFreezed);
            var item = new RenderItem(render);

            item.AllocateResource();
            _items.Add(item);
            return(item);
        }
Beispiel #2
0
 public ViewRenderItemPool(IPointRender render, Dispatcher dispatcher)
 {
     _dispatcher = dispatcher;
     _size       = StorageBlock.StorageBlockSize / Viewport.ViewportSize * 2;
     _items      = new RenderItem[_size];
     for (int i = 0; i < _size; i++)
     {
         _items[i] = new RenderItem(render);
     }
     _newIndex    = 0;
     _rendreIndex = _size - 1;
 }