Various DirectDraw items (#1411)

This commit is contained in:
MS
2025-03-15 11:12:10 -04:00
committed by GitHub
parent b0b68052d4
commit 51fc69e49f
5 changed files with 184 additions and 93 deletions

View File

@@ -9,6 +9,7 @@
#include <d3d.h>
// VTABLE: LEGO1 0x100db800
// VTABLE: BETA10 0x101c1af8
// SIZE 0x894
class MxDirect3D : public MxDirectDraw {
public:
@@ -29,9 +30,13 @@ public:
void Destroy() override; // vtable+0x08
void DestroyButNotDirectDraw() override; // vtable+0x0c
MxAssignedDevice* AssignedDevice() { return this->m_assignedDevice; }
IDirect3D2* Direct3D() { return this->m_pDirect3d; }
IDirect3DDevice2* Direct3DDevice() { return this->m_pDirect3dDevice; }
MxAssignedDevice* AssignedDevice() { return m_currentDeviceInfo; }
// FUNCTION: BETA10 0x100d8b40
IDirect3D2* Direct3D() { return m_pDirect3d; }
// FUNCTION: BETA10 0x100d8b70
IDirect3DDevice2* Direct3DDevice() { return m_pDirect3dDevice; }
BOOL SetDevice(MxDeviceEnumerate& p_deviceEnumerate, MxDriver* p_driver, Direct3DDeviceInfo* p_device);
@@ -42,14 +47,19 @@ protected:
int ZBufferDepth(MxAssignedDevice* p_assignedDevice);
// SYNTHETIC: LEGO1 0x1009b120
// SYNTHETIC: BETA10 0x1011c0f0
// MxDirect3D::`scalar deleting destructor'
private:
MxAssignedDevice* m_assignedDevice; // 0x880
IDirect3D2* m_pDirect3d; // 0x884
IDirect3DDevice2* m_pDirect3dDevice; // 0x888
BOOL m_bTexturesDisabled; // 0x88c
undefined4 m_unk0x890; // 0x890
MxAssignedDevice* m_currentDeviceInfo; // 0x880
IDirect3D2* m_pDirect3d; // 0x884
IDirect3DDevice2* m_pDirect3dDevice; // 0x888
BOOL m_bTexturesDisabled; // 0x88c
undefined4 m_unk0x890; // 0x890
};
// GLOBAL: LEGO1 0x100dd1b0
// GLOBAL: BETA10 0x101c2de8
// IID_IDirect3D2
#endif // MXDIRECT3D_H