Bind pipeline and draw function.