public async Task Render(IChroma chroma) { var canvas = new ChromaCanvas(); foreach (var layer in Layers) { layer.Render(canvas); } await canvas.SetEffect(chroma).ConfigureAwait(false); }
public async Task Render(IChroma chroma, object state) { var canvas = new ChromaCanvas(); for (var i = 0; i < _layers.Count; i++) { _layers[i].Render(canvas, state); } await canvas.SetEffect(chroma).ConfigureAwait(false); }
internal void Render(ChromaCanvas canvas) => OnRender(canvas);
protected abstract void OnRender(ChromaCanvas canvas);
internal void Render(ChromaCanvas canvas, object state) => OnRender(canvas, state);
protected abstract void OnRender(ChromaCanvas canvas, object state);