Implement MxDirect3D::Clear (not yet matching)

This commit is contained in:
Joshua Peisach 2023-08-25 21:52:44 -04:00
parent 5a300e8b89
commit da79eef03f
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 15 additions and 0 deletions

View File

@ -9,4 +9,18 @@ MxDirect3D::MxDirect3D()
this->m_pDirect3dDevice = NULL; this->m_pDirect3dDevice = NULL;
this->m_unk88c = NULL; this->m_unk88c = NULL;
this->m_pDeviceModeFinder = NULL; this->m_pDeviceModeFinder = NULL;
}
// OFFSET: LEGO1 0x1009b290
void MxDirect3D::Clear()
{
if(this->m_pDirect3dDevice) {
this->m_pDirect3dDevice->Release();
this->m_pDirect3dDevice = NULL;
}
if(this->m_pDirect3d) {
this->m_pDirect3d->Release();
this->m_pDirect3d = NULL;
}
Destroy();
} }

View File

@ -14,6 +14,7 @@ class MxDirect3D : public MxDirectDraw
public: public:
MxDirect3D(); MxDirect3D();
void Clear();
inline MxDeviceModeFinder *GetDeviceModeFinder() { return this->m_pDeviceModeFinder; }; inline MxDeviceModeFinder *GetDeviceModeFinder() { return this->m_pDeviceModeFinder; };
private: private: