3D Camera Effect? (like in Five Nights at Freddy's)

In Five Nights at Freddy’s the game has some sort of “3D camera vision” like so:

http://webmup.com/riR0o/vid.webm

I think it’s called the fish eye lens effect? It’s basically just a long flat image stretched/curved(?) to look like the player was looking around I guess. The game has surveillance cameras too, and they have the same effect when moving left and right.

I was wondering how I could achieve the same effect? Preferably with Libgdx or using GL functions :slight_smile: