Use QGLFunction as member to avoid construction of QGLFunction in each
methods call