added linedrawing; move rect drawing to glrect