Ejemplo n.º 1
0
 private void On_MainForm_Paint(object sender, PaintEventArgs e)
 {
     if (cbUseDirectX.Checked)
     {
         if (cbHideEdges.Checked)
         {
             DrawObjectsWithDXWithoutHiddenEdges(objectsToDraw);
         }
         else
         {
             DrawObjectsWithDX(objectsToDraw);
         }
     }
     else
     {
         if (cbHideEdges.Checked)
         {
             polyShape.Erase(CreateGraphics());
             DrawObjectsWithoutHiddenEdges();
         }
         else
         {
             EraseObjects(objectsToDraw);
             DrawObjects(objectsToDraw);
         }
     }
     // CreateGraphics().DrawEllipse(Pens.Red, basePoint.X, basePoint.Y, 3F, 3F);
 }