- // TODO: this API needs fixing (wxPointList, why (!const) "wxList *"?)
- void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3)
- {
- wxList point_list;
-
- wxPoint *point1 = new wxPoint;
- point1->x = x1; point1->y = y1;
- point_list.Append((wxObject*)point1);
-
- wxPoint *point2 = new wxPoint;
- point2->x = x2; point2->y = y2;
- point_list.Append((wxObject*)point2);
-
- wxPoint *point3 = new wxPoint;
- point3->x = x3; point3->y = y3;
- point_list.Append((wxObject*)point3);
-
- DrawSpline(&point_list);
-
- for( wxNode *node = point_list.First(); node; node = node->Next() )
- {
- wxPoint *p = (wxPoint *)node->Data();
- delete p;
- }
- }
-
- void DrawSpline(int n, wxPoint points[])
- {
- wxList list;
- for (int i =0; i < n; i++)
- {
- list.Append((wxObject*)&points[i]);
- }
-
- DrawSpline(&list);
- }
+// TODO: this API needs fixing (wxPointList, why (!const) "wxList *"?)
+ void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3);
+ void DrawSpline(int n, wxPoint points[]);