2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXVIDEOPARAM_H
|
|
|
|
#define MXVIDEOPARAM_H
|
|
|
|
|
2023-07-02 02:53:54 -04:00
|
|
|
#include "compat.h"
|
2023-04-27 22:19:39 -04:00
|
|
|
#include "mxrect32.h"
|
2023-06-27 22:04:07 -04:00
|
|
|
#include "mxtypes.h"
|
2023-04-27 22:19:39 -04:00
|
|
|
#include "mxvideoparamflags.h"
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include <ddraw.h>
|
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxPalette;
|
|
|
|
|
2023-12-07 07:13:31 -05:00
|
|
|
// SIZE 0x24
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxVideoParam {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2024-01-24 21:16:29 -05:00
|
|
|
MxVideoParam();
|
|
|
|
__declspec(dllexport)
|
|
|
|
MxVideoParam(MxRect32& p_rect, MxPalette* p_palette, MxULong p_backBuffers, MxVideoParamFlags& p_flags);
|
2024-06-06 17:15:57 -04:00
|
|
|
MxVideoParam(MxVideoParam& p_videoParam);
|
2024-01-24 21:16:29 -05:00
|
|
|
~MxVideoParam();
|
|
|
|
void SetDeviceName(char* p_deviceId);
|
2024-06-06 17:15:57 -04:00
|
|
|
MxVideoParam& operator=(const MxVideoParam& p_videoParam);
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2024-06-06 17:15:57 -04:00
|
|
|
// FUNCTION: BETA10 0x100886e0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxVideoParamFlags& Flags() { return m_flags; }
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2024-06-06 17:15:57 -04:00
|
|
|
// FUNCTION: BETA10 0x100d81f0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxRect32& GetRect() { return m_rect; }
|
2024-06-06 17:15:57 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x100d8210
|
2024-07-04 19:06:32 -04:00
|
|
|
MxPalette* GetPalette() { return m_palette; }
|
2024-06-06 17:15:57 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x100d8240
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetPalette(MxPalette* p_palette) { m_palette = p_palette; }
|
2024-06-06 17:15:57 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x100d8270
|
2024-07-04 19:06:32 -04:00
|
|
|
char* GetDeviceName() { return m_deviceId; }
|
2024-06-06 17:15:57 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10141f60
|
2024-07-04 19:06:32 -04:00
|
|
|
MxU32 GetBackBuffers() { return m_backBuffers; }
|
2023-08-28 05:49:15 -04:00
|
|
|
|
2024-06-06 17:15:57 -04:00
|
|
|
// FUNCTION: BETA10 0x10141fe0
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetBackBuffers(MxU32 p_backBuffers) { m_backBuffers = p_backBuffers; }
|
2023-06-24 13:09:46 -04:00
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
private:
|
2023-12-07 07:13:31 -05:00
|
|
|
MxRect32 m_rect; // 0x00
|
|
|
|
MxPalette* m_palette; // 0x10
|
|
|
|
MxU32 m_backBuffers; // 0x14
|
|
|
|
MxVideoParamFlags m_flags; // 0x18
|
2023-12-13 05:48:14 -05:00
|
|
|
int m_unk0x1c; // 0x1c
|
2023-12-07 07:13:31 -05:00
|
|
|
char* m_deviceId; // 0x20
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVIDEOPARAM_H
|