mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
78 lines
1.5 KiB
C++
78 lines
1.5 KiB
C++
#ifndef MXDIRECT3D_H
|
|
#define MXDIRECT3D_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxdirectdraw.h"
|
|
#include "mxtypes.h"
|
|
|
|
#include <d3d.h>
|
|
|
|
// SIZE 0xe4
|
|
class MxDeviceModeFinder {
|
|
public:
|
|
MxDeviceModeFinder();
|
|
~MxDeviceModeFinder();
|
|
|
|
undefined4 m_pad[56];
|
|
MxDirectDraw::DeviceModesInfo* m_deviceInfo; // +0xe0
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100db814
|
|
// or is it 0x100d9cc8?
|
|
// SIZE 0x198
|
|
class MxDeviceEnumerate {
|
|
public:
|
|
MxDeviceEnumerate();
|
|
virtual MxResult DoEnumerate();
|
|
|
|
BOOL FUN_1009c070();
|
|
|
|
const char* EnumerateErrorToString(HRESULT p_error);
|
|
|
|
undefined4 m_unk0x004;
|
|
undefined4 m_unk0x008;
|
|
undefined4 m_unk0x00c;
|
|
MxBool m_unk0x010; // +0x10
|
|
|
|
undefined4 m_unk0x014[97];
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100db800
|
|
// SIZE 0x894
|
|
class MxDirect3D : public MxDirectDraw {
|
|
public:
|
|
MxDirect3D();
|
|
|
|
void Clear();
|
|
inline MxDeviceModeFinder* GetDeviceModeFinder() { return this->m_pDeviceModeFinder; };
|
|
|
|
virtual ~MxDirect3D();
|
|
virtual BOOL Create(
|
|
HWND hWnd,
|
|
BOOL fullscreen_1,
|
|
BOOL surface_fullscreen,
|
|
BOOL onlySystemMemory,
|
|
int width,
|
|
int height,
|
|
int bpp,
|
|
const PALETTEENTRY* pPaletteEntries,
|
|
int paletteEntryCount
|
|
);
|
|
virtual void Destroy();
|
|
|
|
BOOL CreateIDirect3D();
|
|
BOOL D3DSetMode();
|
|
|
|
static void BuildErrorString(const char*, ...);
|
|
|
|
private:
|
|
MxDeviceModeFinder* m_pDeviceModeFinder; // +0x880
|
|
IDirect3D* m_pDirect3d; // +0x884
|
|
IDirect3DDevice* m_pDirect3dDevice;
|
|
undefined4 m_unk0x88c;
|
|
undefined4 m_unk0x890;
|
|
};
|
|
|
|
BOOL FAR PASCAL EnumerateCallback(GUID FAR*, LPSTR, LPSTR, LPVOID);
|
|
|
|
#endif // MXDIRECT3D_H
|