void MainLoop() { while (true) { renderer.Update(); renderer.Draw(); try { simpleOpenGlControl1.Refresh(); } catch { } } }
private void simpleOpenGlControl1_Paint(object sender, PaintEventArgs e) { renderer.Update(); renderer.Draw(); }