public void ResetOpenGL(SharpGL.OpenGL gl,int width,int height)
        {
            gl.Viewport(0, 0, width, height);

            gl.Color(1.0, 1.0, 1.0, 1.0); // reset gl color

            gl.MatrixMode(MatrixMode.Projection);
            gl.LoadIdentity();
            gl.Ortho(0, width, height, 0, -10, 10);

            gl.MatrixMode(MatrixMode.Modelview);

            gl.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT);
            gl.LoadIdentity();
        }