private void Setup() { frame = new FrameBuffer(Size); renderer = new Renderer(); renderer.Size = this.Size; renderer.Init(); Controls.Add(renderer); timerUpdate = new Timer(); timerUpdate.Tick += new EventHandler(Update); timerUpdate.Interval = 10; }
/// <summary> /// Draws an entire frame to the backbuffer /// </summary> /// <param name="buffer"></param> public void SetBackbuffer(FrameBuffer buffer) { buffer.Buffer.CopyTo(backBuffer, 0); }