1
\$\begingroup\$

I have some code that captures the screen and save data into a surface.

g_pDirect3D_Device->GetFrontBufferData(0, pSurface);

All is ok, now I want to display pSurface in my window. I want to have the image in my whole window.

Is it possible, or should I use a texture?

\$\endgroup\$
1
  • \$\begingroup\$ I have very little knowledge in DirectX, but couldn't you create a RenderTarget from the surface, and then draw [to] the RenderTarget? \$\endgroup\$ Mar 20 '16 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.