Add a callback function that is run after each frame. Useful for example to have a point move around as a function of time.