pub fn setup_render_loop(
render_engine: Rc<RefCell<RenderEngine>>,
waterfall: Rc<RefCell<Waterfall>>,
)Expand description
Sets up a render loop for the waterfall.
This function sets up a render loop using requestAnimationFrame(). Each
time the the callback triggers, the waterfall is prepared for rendering and
the render engine is called. Then, the rendering of the next frame is
scheduled using requestAnimationFrame().