move GL map rendering stuff into an object

No match.