Ejemplo n.º 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;
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
        }