Added: D3D9 project and window creation

This commit is contained in:
2026-09-29 21:35:40 +02:00
parent ce7dd786ea
commit 1b6e8938e5
21 changed files with 1200 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <d3d9.h>
#pragma comment(lib, "d3d9.lib")
class Direct3D
{
public:
INT init(HWND hWnd, UINT width, UINT height, BOOL isFullscreen);
void beginScene();
void endScene();
void deInit();
IDirect3DDevice9* getDevice() const { return _pD3DDevice; }
private:
IDirect3DDevice9* _pD3DDevice = nullptr; // our interface for api communication
};