private void glControl1_SizeChanged(object sender, EventArgs e) { GlMain.Resize(glControl1.Width, glControl1.Height); glControl1.Invalidate(); }
private void glControl1_ContextCreated(object sender, OpenGL.GlControlEventArgs e) { GlMain.Initialize(); GlMain.Resize(glControl1.Width, glControl1.Height); }