move GL map rendering stuff into an object