2021-10-04 14:45:36 +00:00
|
|
|
#ifndef SCREEN_CAPTURE
|
|
|
|
#define SCREEN_CAPTURE
|
|
|
|
|
|
|
|
#include <Windows.h>
|
2021-10-05 02:27:53 +00:00
|
|
|
#include <Wincodec.h> // we use WIC for saving images
|
|
|
|
#include <d3d9.h> // DirectX 9 header
|
2021-10-06 15:31:47 +00:00
|
|
|
#include <d3d9helper.h>
|
|
|
|
|
|
|
|
|
|
|
|
HRESULT Direct3D9TakeScreenshots(UINT adapter, UINT count);
|
|
|
|
|
2021-10-04 14:45:36 +00:00
|
|
|
|
|
|
|
class ScreenCapture
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScreenCapture();
|
|
|
|
void EnumScreen();
|
2021-10-06 15:31:47 +00:00
|
|
|
void PrintDisplayModeInfo(IDirect3D9 *pD3D, D3DFORMAT fmt);
|
|
|
|
private:
|
|
|
|
IDirect3D9* m_d3d9_dev = nullptr;
|
2021-10-04 14:45:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCREEN_CAPTURE_H
|
|
|
|
|