Example #1
0
bool MgLines::_draw(GiGraphics& gs, const GiContext& ctx) const
{
    bool ret = false;
    if (_closed)
        ret = gs.drawPolygon(&ctx, _count, _points);
    else
        ret = gs.drawLines(&ctx, _count, _points);
    return __super::_draw(gs, ctx) || ret;
}