2023-07-21 21:28:13 -04:00
|
|
|
#ifndef MXDISPLAYSURFACE_H
|
|
|
|
#define MXDISPLAYSURFACE_H
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "decomp.h"
|
2023-10-07 12:48:36 -04:00
|
|
|
#include "mxbitmap.h"
|
2023-07-21 21:28:13 -04:00
|
|
|
#include "mxcore.h"
|
|
|
|
#include "mxpalette.h"
|
|
|
|
#include "mxvideoparam.h"
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include <ddraw.h>
|
2023-07-21 21:28:13 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc768
|
2023-08-03 14:13:27 -04:00
|
|
|
// SIZE 0xac
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDisplaySurface : public MxCore {
|
2023-07-21 21:28:13 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDisplaySurface();
|
|
|
|
virtual ~MxDisplaySurface() override;
|
|
|
|
|
|
|
|
void Reset();
|
|
|
|
|
|
|
|
void FUN_100ba640();
|
|
|
|
|
|
|
|
virtual MxResult Init(
|
|
|
|
MxVideoParam& p_videoParam,
|
|
|
|
LPDIRECTDRAWSURFACE p_ddSurface1,
|
|
|
|
LPDIRECTDRAWSURFACE p_ddSurface2,
|
|
|
|
LPDIRECTDRAWCLIPPER p_ddClipper
|
|
|
|
);
|
|
|
|
virtual MxResult Create(MxVideoParam& p_videoParam);
|
|
|
|
virtual void Clear();
|
|
|
|
virtual void SetPalette(MxPalette* p_palette);
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual void VTable0x24(
|
2023-10-24 19:38:27 -04:00
|
|
|
LPDDSURFACEDESC,
|
|
|
|
MxBitmap*,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4
|
|
|
|
);
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual MxBool VTable0x28(undefined4, undefined4, undefined4, undefined4, undefined4, undefined4, undefined4);
|
|
|
|
virtual MxBool VTable0x2c(
|
2023-10-24 19:38:27 -04:00
|
|
|
LPDDSURFACEDESC,
|
|
|
|
MxBitmap*,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
MxBool
|
|
|
|
);
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual MxBool VTable0x30(
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
undefined4,
|
|
|
|
MxBool
|
|
|
|
);
|
|
|
|
virtual undefined4 VTable0x34(undefined4, undefined4, undefined4, undefined4, undefined4, undefined4);
|
2023-12-26 17:20:20 -05:00
|
|
|
virtual void Display(MxS32 p_left, MxS32 p_top, MxS32 p_left2, MxS32 p_top2, MxS32 p_width, MxS32 p_height);
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual void GetDC(HDC* p_hdc);
|
|
|
|
virtual void ReleaseDC(HDC p_hdc);
|
2023-12-13 05:48:14 -05:00
|
|
|
virtual LPDIRECTDRAWSURFACE VTable0x44(MxBitmap*, undefined4*, undefined4, undefined4);
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
inline LPDIRECTDRAWSURFACE GetDirectDrawSurface1() { return this->m_ddSurface1; }
|
|
|
|
inline LPDIRECTDRAWSURFACE GetDirectDrawSurface2() { return this->m_ddSurface2; }
|
2023-12-21 10:44:54 -05:00
|
|
|
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
|
2023-09-29 12:09:46 -04:00
|
|
|
|
2023-08-03 14:13:27 -04:00
|
|
|
private:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxVideoParam m_videoParam;
|
|
|
|
LPDIRECTDRAWSURFACE m_ddSurface1;
|
|
|
|
LPDIRECTDRAWSURFACE m_ddSurface2;
|
|
|
|
LPDIRECTDRAWCLIPPER m_ddClipper;
|
|
|
|
MxBool m_initialized;
|
|
|
|
DDSURFACEDESC m_surfaceDesc;
|
|
|
|
MxU16* m_16bitPal;
|
2023-07-21 21:28:13 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDISPLAYSURFACE_H
|