DXGI

    DirectX 스크린 캡쳐 (DXGI 캡쳐 예제)

    GDI를 사용한 화면 덤프는 끔찍하게 느리다. 그래서 그래픽카드의 도움을 받기로 했다. #include #include #include #include #include #pragma comment (lib, "d3d11.lib") #pragma comment (lib, "dxgi.lib") /** @brief 텍스쳐 생성함수 */ ID3D11Texture2D* CreateTexture(ID3D11Device* d3d11, int width, int height, DXGI_FORMAT colorformat) { D3D11_TEXTURE2D_DESC td; ID3D11Texture2D* OutputTexVal; if (!d3d11) return NULL; memset(&td, 0, sizeof(td)); t..