mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 09:38:14 -05:00
6e39e87613
* Some beta addrs and asserts to start * Create mxdirectxinfo * include fix * CONFIG annotations * Beta matching * Match format function better, add dead code function * LegoDeviceEnumerate
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
#ifndef MXDIRECT3D_H
|
|
#define MXDIRECT3D_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxdirectdraw.h"
|
|
#include "mxdirectxinfo.h"
|
|
#include "mxstl/stlcompat.h"
|
|
|
|
#include <d3d.h>
|
|
|
|
// VTABLE: LEGO1 0x100db800
|
|
// SIZE 0x894
|
|
class MxDirect3D : public MxDirectDraw {
|
|
public:
|
|
MxDirect3D();
|
|
~MxDirect3D() override;
|
|
|
|
BOOL Create(
|
|
HWND hWnd,
|
|
BOOL fullscreen_1,
|
|
BOOL surface_fullscreen,
|
|
BOOL onlySystemMemory,
|
|
int width,
|
|
int height,
|
|
int bpp,
|
|
const PALETTEENTRY* pPaletteEntries,
|
|
int paletteEntryCount
|
|
) override; // vtable+0x04
|
|
void Destroy() override; // vtable+0x08
|
|
void DestroyButNotDirectDraw() override; // vtable+0x0c
|
|
|
|
inline MxAssignedDevice* AssignedDevice() { return this->m_assignedDevice; }
|
|
inline IDirect3D2* Direct3D() { return this->m_pDirect3d; }
|
|
inline IDirect3DDevice2* Direct3DDevice() { return this->m_pDirect3dDevice; }
|
|
|
|
BOOL SetDevice(MxDeviceEnumerate& p_deviceEnumerate, MxDriver* p_driver, Direct3DDeviceInfo* p_device);
|
|
|
|
protected:
|
|
BOOL D3DCreate();
|
|
BOOL D3DSetMode();
|
|
|
|
int ZBufferDepth(MxAssignedDevice* p_assignedDevice);
|
|
|
|
// SYNTHETIC: LEGO1 0x1009b120
|
|
// 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
|
|
};
|
|
|
|
#endif // MXDIRECT3D_H
|