예제 #1
0
 public void LineTo(Vector2 p)
 {
     if ((isUseWidth) && ((int)_width > 1))
     {
         LineTo(p, _width);
         return;
     }
     _basicDraw.LineTo(p);
 }
예제 #2
0
    private void PreRect(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)
    {
        ResetSubBuffer();

        ExpandBounds(p1);
        ExpandBounds(p2);
        ExpandBounds(p3);
        ExpandBounds(p4);

        basicDraw.MoveTo(p1);
        basicDraw.LineTo(p2);
        basicDraw.LineTo(p3);
        basicDraw.LineTo(p4);
        basicDraw.LineTo(p1);
    }