예제 #1
0
        public async Task Render(IChroma chroma)
        {
            var canvas = new ChromaCanvas();

            foreach (var layer in Layers)
            {
                layer.Render(canvas);
            }

            await canvas.SetEffect(chroma).ConfigureAwait(false);
        }
예제 #2
0
        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);
        }
예제 #3
0
 internal void Render(ChromaCanvas canvas) => OnRender(canvas);
예제 #4
0
 protected abstract void OnRender(ChromaCanvas canvas);
예제 #5
0
 internal void Render(ChromaCanvas canvas, object state) => OnRender(canvas, state);
예제 #6
0
 protected abstract void OnRender(ChromaCanvas canvas, object state);