Exemple #1
0
 private void GlControlLoad(object sender, EventArgs e)
 {
     GL.ClearColor(1, 1, 1, 1);
     GL.Viewport(0, 0, glControl.Width, glControl.Height);
     GL.ShadeModel(ShadingModel.Smooth);
     GL.Hint(HintTarget.PolygonSmoothHint, HintMode.Nicest);
     GL.Enable(EnableCap.Blend);
     GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);
     _graph  = new CaptureGraph();
     _loaded = true;
 }