21 lines
448 B
C++
21 lines
448 B
C++
#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(BYTE red, BYTE green, BYTE blue);
|
|
void endScene();
|
|
void deInit();
|
|
|
|
IDirect3DDevice9* getDevice() const { return _pD3DDevice; }
|
|
|
|
private:
|
|
// COM object - Component Object Model
|
|
IDirect3DDevice9* _pD3DDevice = nullptr; // our interface for graphic card communication
|
|
};
|
|
|