feat(gx): add ctor to CGxDeviceD3d

This commit is contained in:
fallenoak 2023-03-07 00:18:44 -06:00 committed by GitHub
parent 0419802663
commit dad7f47b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -220,6 +220,17 @@ LRESULT CGxDeviceD3d::WindowProcD3d(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
CGxDeviceD3d::CGxDeviceD3d() : CGxDevice() {
// TODO
this->m_api = GxApi_D3d9;
// TODO
this->DeviceCreatePools();
this->DeviceCreateStreamBufs();
}
void CGxDeviceD3d::CapsWindowSize(CRect& dst) {
// TODO
}

View File

@ -43,6 +43,7 @@ class CGxDeviceD3d : public CGxDevice {
virtual int32_t StereoEnabled();
// Member functions
CGxDeviceD3d();
int32_t ICreateD3d();
int32_t ICreateD3dDevice(const CGxFormat& format);
bool ICreateWindow(CGxFormat& format);