How to capture in game view and display it?

yes someting like gta 5 and did you find someting in c++?