wrapper functions for passing the render function to glut