private void glControl1_Render(object sender, OpenGL.GlControlEventArgs e) { GlMain.Draw(); if (glControl1.Animation != GlMain.Animating) { glControl1.Animation = GlMain.Animating; } }
private void glControl1_ContextDestroying(object sender, OpenGL.GlControlEventArgs e) { GlMain.Destroy(); }
private void glControl1_ContextCreated(object sender, OpenGL.GlControlEventArgs e) { GlMain.Initialize(); GlMain.Resize(glControl1.Width, glControl1.Height); }