예제 #1
0
        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;
        }
예제 #2
0
 /// <summary>
 /// Draws an entire frame to the backbuffer
 /// </summary>
 /// <param name="buffer"></param>
 public void SetBackbuffer(FrameBuffer buffer)
 {
     buffer.Buffer.CopyTo(backBuffer, 0);
 }
예제 #3
0
 /// <summary>
 /// Draws an entire frame to the backbuffer
 /// </summary>
 /// <param name="buffer"></param>
 public void SetBackbuffer(FrameBuffer buffer)
 {
     buffer.Buffer.CopyTo(backBuffer, 0);
 }
예제 #4
0
        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;
        }