2023-08-06 16:26:14 -04:00
|
|
|
#ifndef MXDIRECT3D_H
|
|
|
|
#define MXDIRECT3D_H
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "decomp.h"
|
2023-08-06 16:26:14 -04:00
|
|
|
#include "mxdirectdraw.h"
|
2024-06-27 15:22:13 -04:00
|
|
|
#include "mxdirectxinfo.h"
|
2024-01-08 04:58:49 -05:00
|
|
|
#include "mxstl/stlcompat.h"
|
2023-08-06 16:26:14 -04:00
|
|
|
|
|
|
|
#include <d3d.h>
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100db800
|
2023-08-06 16:26:14 -04:00
|
|
|
// SIZE 0x894
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDirect3D : public MxDirectDraw {
|
2023-08-06 16:26:14 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDirect3D();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxDirect3D() override;
|
2024-01-01 19:17:38 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
BOOL Create(
|
2023-10-24 19:38:27 -04:00
|
|
|
HWND hWnd,
|
|
|
|
BOOL fullscreen_1,
|
|
|
|
BOOL surface_fullscreen,
|
|
|
|
BOOL onlySystemMemory,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
int bpp,
|
|
|
|
const PALETTEENTRY* pPaletteEntries,
|
|
|
|
int paletteEntryCount
|
2024-02-01 15:42:10 -05:00
|
|
|
) override; // vtable+0x04
|
|
|
|
void Destroy() override; // vtable+0x08
|
|
|
|
void DestroyButNotDirectDraw() override; // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxAssignedDevice* AssignedDevice() { return this->m_assignedDevice; }
|
|
|
|
IDirect3D2* Direct3D() { return this->m_pDirect3d; }
|
|
|
|
IDirect3DDevice2* Direct3DDevice() { return this->m_pDirect3dDevice; }
|
2024-02-09 18:40:52 -05:00
|
|
|
|
|
|
|
BOOL SetDevice(MxDeviceEnumerate& p_deviceEnumerate, MxDriver* p_driver, Direct3DDeviceInfo* p_device);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
BOOL D3DCreate();
|
2023-10-24 19:38:27 -04:00
|
|
|
BOOL D3DSetMode();
|
|
|
|
|
2024-02-09 18:40:52 -05:00
|
|
|
int ZBufferDepth(MxAssignedDevice* p_assignedDevice);
|
2023-09-10 08:56:16 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1009b120
|
|
|
|
// MxDirect3D::`scalar deleting destructor'
|
|
|
|
|
2023-08-06 16:26:14 -04:00
|
|
|
private:
|
2024-01-04 16:16:16 -05:00
|
|
|
MxAssignedDevice* m_assignedDevice; // 0x880
|
|
|
|
IDirect3D2* m_pDirect3d; // 0x884
|
|
|
|
IDirect3DDevice2* m_pDirect3dDevice; // 0x888
|
2024-02-09 18:40:52 -05:00
|
|
|
BOOL m_bTexturesDisabled; // 0x88c
|
2024-01-04 16:16:16 -05:00
|
|
|
undefined4 m_unk0x890; // 0x890
|
2023-08-06 16:26:14 -04:00
|
|
|
};
|
2024-01-14 16:28:46 -05:00
|
|
|
|
2023-10-24 19:24:29 -04:00
|
|
|
#endif // MXDIRECT3D_H
|