|
From: John L. <jla...@gm...> - 2009-01-21 04:37:48
|
2009/1/19 Mateusz Czaplinski <cza...@gm...>: > Hello! > I'd like to draw a polygon. I found the wxDC:DrawPolygonsList() method, but > I can't get it to work. It requires a wxList as a first argument - which, as > far as I understand, should be a list of wxPoints. However, wxLua's > implementation of wxList seems to allow only wxObjects as it's elements, > while wxPoint is not a descendant of wxObject. Does it mean I can't draw > polygons at all? Or am I missing something? You're right, there is no way to put wxPoints into a wxList. This is a oversight, I'll add it for the next version in the next few weeks. -John |