Exemplo n.º 1
0
		public void EndFrame()
		{
			var renderCommands = new RenderCommand[_updatingRenderCommands.Count];
			_updatingRenderCommands.CopyTo(renderCommands, 0);
			_concurrentRenderCommandsThatRepresentAFrame.Add(renderCommands);
			_updatingRenderCommands.Clear();
		}
Exemplo n.º 2
0
		public void EndFrame()
		{
			var renderCommands = new RenderCommand[_updatingRenderCommands.Count];
			// TODO: Copy the render commands you added via Addcube into renderCommands . Then use the concurrent collection
            // so that the info there is stored.
            // Finally there will be some cleaning up to do, but where?
            
		}