示例#1
0
 private void Display_SizeChanged(object sender, System.EventArgs e)
 {
     display.MakeCurrent();
     GL.Viewport(0, 0, display.Width, display.Height);
     renderer.SetViewport(display.Width, display.Height);
     display.Invalidate();
 }