Alexandria.Engines.Sciagi.Resources.PictureRenderer.Render C# (CSharp) Method

Render() public method

Draw a set of instructions.
public Render ( IEnumerable instructions, int count ) : void
instructions IEnumerable
count int
return void
        public void Render(IEnumerable<PictureInstruction> instructions, int count)
        {
            int index = 0;

            Canvas.Lock();
            foreach (PictureInstruction instruction in instructions) {
                if (index++ >= count)
                    break;
                instruction.Render(this);
            }
            Canvas.Unlock();
        }

Same methods

PictureRenderer::Render ( ICollection instructions ) : void