mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Introduce clang-format (#240)
This commit is contained in:

committed by
GitHub

parent
e928fc9425
commit
b449da1fa3
@@ -1,78 +1,76 @@
|
||||
#ifndef MXDIRECT3D_H
|
||||
#define MXDIRECT3D_H
|
||||
|
||||
#include "decomp.h"
|
||||
#include "mxdirectdraw.h"
|
||||
#include "mxtypes.h"
|
||||
#include "decomp.h"
|
||||
|
||||
#include <d3d.h>
|
||||
|
||||
// SIZE 0xe4
|
||||
class MxDeviceModeFinder
|
||||
{
|
||||
class MxDeviceModeFinder {
|
||||
public:
|
||||
MxDeviceModeFinder();
|
||||
~MxDeviceModeFinder();
|
||||
MxDeviceModeFinder();
|
||||
~MxDeviceModeFinder();
|
||||
|
||||
undefined4 m_unknown[56];
|
||||
MxDirectDraw::DeviceModesInfo *m_deviceInfo; // +0xe0
|
||||
undefined4 m_unknown[56];
|
||||
MxDirectDraw::DeviceModesInfo* m_deviceInfo; // +0xe0
|
||||
};
|
||||
|
||||
// VTABLE 0x100db814 (or 0x100d9cc8?)
|
||||
// SIZE 0x198
|
||||
class MxDeviceEnumerate
|
||||
{
|
||||
class MxDeviceEnumerate {
|
||||
public:
|
||||
MxDeviceEnumerate();
|
||||
virtual MxResult _DoEnumerate();
|
||||
BOOL FUN_1009c070();
|
||||
MxDeviceEnumerate();
|
||||
virtual MxResult _DoEnumerate();
|
||||
BOOL FUN_1009c070();
|
||||
|
||||
const char *EnumerateErrorToString(HRESULT p_error);
|
||||
const char* EnumerateErrorToString(HRESULT p_error);
|
||||
|
||||
undefined4 m_unk004;
|
||||
undefined4 m_unk008;
|
||||
undefined4 m_unk00c;
|
||||
MxBool m_unk010_flag; // +0x10
|
||||
undefined4 m_unk004;
|
||||
undefined4 m_unk008;
|
||||
undefined4 m_unk00c;
|
||||
MxBool m_unk010_flag; // +0x10
|
||||
|
||||
undefined4 m_unknown[97];
|
||||
undefined4 m_unknown[97];
|
||||
};
|
||||
|
||||
// VTABLE 0x100db800
|
||||
// SIZE 0x894
|
||||
class MxDirect3D : public MxDirectDraw
|
||||
{
|
||||
class MxDirect3D : public MxDirectDraw {
|
||||
public:
|
||||
MxDirect3D();
|
||||
MxDirect3D();
|
||||
|
||||
void Clear();
|
||||
inline MxDeviceModeFinder *GetDeviceModeFinder() { return this->m_pDeviceModeFinder; };
|
||||
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();
|
||||
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();
|
||||
BOOL CreateIDirect3D();
|
||||
BOOL D3DSetMode();
|
||||
|
||||
static void BuildErrorString(const char *, ...);
|
||||
static void BuildErrorString(const char*, ...);
|
||||
|
||||
private:
|
||||
MxDeviceModeFinder *m_pDeviceModeFinder; // +0x880
|
||||
IDirect3D *m_pDirect3d; // +0x884
|
||||
IDirect3DDevice *m_pDirect3dDevice;
|
||||
undefined4 m_unk88c;
|
||||
undefined4 m_unk890;
|
||||
MxDeviceModeFinder* m_pDeviceModeFinder; // +0x880
|
||||
IDirect3D* m_pDirect3d; // +0x884
|
||||
IDirect3DDevice* m_pDirect3dDevice;
|
||||
undefined4 m_unk88c;
|
||||
undefined4 m_unk890;
|
||||
};
|
||||
|
||||
BOOL FAR PASCAL EnumerateCallback(GUID FAR *, LPSTR, LPSTR, LPVOID);
|
||||
BOOL FAR PASCAL EnumerateCallback(GUID FAR*, LPSTR, LPSTR, LPVOID);
|
||||
|
||||
#endif // MXDIRECT3D_H
|
||||
|
Reference in New Issue
Block a user