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? Thanks in advance - Mateusz Czapliński
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
On Wed, Jan 21, 2009 at 5:37 AM, John Labenski <jla...@gm...> wrote: > 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. > Ok, thanks! Mateusz Czapliński