OpenGL/D3D: How do I get a screen grab of a game running full screen in Windows?

后端 未结 3 688
感情败类
感情败类 2020-12-05 16:38

Suppose I have an OpenGL game running full screen (Left 4 Dead 2). I\'d like to programmatically get a screen grab of it and then write it to a video file.

I\'ve tr

3条回答
  •  情书的邮戳
    2020-12-05 17:01

    I've written screen grabbers in the past (DirectX7-9 era). I found good old DirectDraw worked remarkably well and would reliably grab bits of hardware-accelerated/video screen content which other methods (D3D, GDI, OpenGL) seemed to leave blank or scrambled. It was very fast too.

提交回复
热议问题