more warning cleanup. create user defined callbacks to set up the scene and opengl parameters