Proof of concept. Very hacky code, globals for whatever, control flow everywhere, etc.
Build with g++ -o dolly dolly.cpp -lSDL -lGL
Controls A/D rotate around origin W/S move up and down without repointing camera because lazy Up/Down adjust fov/distance.