1st person camera, "free view" style

Why use globals at all?
Write a proper class that does one thing and it’s good.
No namespace pollution, no random stuff lurking around.