Exemplo n.º 1
0
        /// <summary>
        /// Draw the viewports
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPaint(PaintEventArgs e)
        {
            if (DesignMode)
            {
                e.Graphics.Clear(Color.DodgerBlue);
            }
            else
            {
                graphics.Clear(Color.Black);

                for (int i = 0; i < VIEWPORT_COUNT; i++)
                {
                    viewports[i].Render(graphics);
                }

                SwapBuffers();
            }
        }