extern IDirect3DDevice9* g_pd3dDevice; void MainFrame::TakeScreenShot() { // F***ing find a way to do this alreadY GRR O_O IDirect3DSurface9* pSurface; g_pd3dDevice->CreateOffscreenPlainSurface(800, 600,D3DFMT_A8R8G8B8, D3DPOOL_SCRATCH, &pSurface, NULL); g_pd3dDevice->GetFrontBufferData(0, pSurface); D3DXSaveSurfaceToFile("Desktop.bmp",D3DXIFF_BMP,pSurface,NULL,NULL); pSurface->Release(); }
#include <d3dx9tex.h>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)