Put glBegin() & glEnd() into drawing functions