I am doing this right now:
Code: Select all
wxPoint polygon[] = { {130,140},{180,170},{180,140},{220,110},{140,100} };
wxPointList pl;
for (auto& i : polygon)
pl.Append(&i);
dc.DrawPolygon(&pl);
and I can not find document about it......
Could someone tell me is there a offical way to initialize it?
sorry for my english