/// <summary>
        /// Window resize event to adjusts perspective.
        /// </summary>
        private void GlControl1_SizeChanged(object sender, EventArgs e)
        {
            if (WindowState == FormWindowState.Minimized)
            {
                return;
            }

            view.Resize(glControl1.Bounds, glControl1.Bounds.Width, glControl1.Bounds.Height);
            view.UpdateProjection();

            textRenderer.Resize(glControl1.Bounds.Size);

            GLState.Viewport = view.Viewport;
            GLState.Apply(glControl1.Size);
        }