Example #1
0
        private void GLDo(bool checkinit, GLDoHandler handler)
        {
            if (!GLSupported(checkinit))
            {
                return;
            }

            bool gl = d_ingl;

            if (!gl)
            {
                d_gl.MakeCurrent();
            }

            d_ingl = true;

            handler();

            d_ingl = gl;

            if (!gl)
            {
                d_gl.SwapBuffers();
            }
        }
Example #2
0
 private void GLDo(GLDoHandler handler)
 {
     GLDo(true, handler);
 }