void DrawForeground()
        {
            int w = glControl1.Width;
            int h = glControl1.Height;

            Set2DView();

            /*gr2d.Rectangle(0,0,w,70,Color.RoyalBlue);
             * GL.Color3(Color.White);
             * gr2d.Image("cwlogo_round", w / 2 - 50, 0);*/
            if (!Render3dSpace)
            {
                gr2d.SetColor(Color.White);
                gr2d.Image((int)mColorBuffer, 0, 1, 1, 0, 0, 0, Width, Height);
            }
            guiconf.DrawForeground(gr2d, glControl1.Width, glControl1.Height);

            foreach (ctlBgnd cb in ctlBgndList)
            {
                gr2d.SetColor(cb.col);
                gr2d.Panel9(cb.imageName, cb.x, cb.y, cb.w, cb.h);
            }

            /*
             * if (ctlViewOptions.SliceVisible && (m_sliceTex != -1))
             * {
             *  int px = w - m_sliceViewW - 20;
             *  gr2d.SetColor(Color.FromArgb(50, 255, 255, 255));
             *  gr2d.Image(m_sliceTex, 0, 1, 0, 1, px, 90, m_sliceViewW, m_sliceViewH);
             * }
             */
            foreach (Control subctl in mainViewSplitContainer.Panel2.Controls)
            {
                if (subctl.GetType().IsSubclassOf(typeof(ctlUserPanel)))
                {
                    ((ctlUserPanel)subctl).GLRedraw(gr2d, subctl.Location.X, subctl.Location.Y);
                }
            }

            gr2d.ResetDrawingRegion();
            //SetAlpha(m_showalpha);
            Set3DView();
        }