문제

I'm trying to make a screen recording app. Is there a way to use DirectX to capture the entire screen and store it as a texture? This would be in WDM. I know there's a way to get the texture for windows, but what about the entire screen.

I've tried the GDI method of using getDC(null) but that's rather slow for my uses.

도움이 되었습니까?

해결책

There's three methods: gdi method, directx method and windows media api. When you need to capture entire screen as texture, you should use

IDirect3DSurface9->GetFrontBufferData()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top