isle-portable/LEGO1/omni/include/mxvideoparam.h

44 lines
1.2 KiB
C
Raw Normal View History

2023-04-27 22:19:39 -04:00
#ifndef MXVIDEOPARAM_H
#define MXVIDEOPARAM_H
#include "compat.h"
2023-04-27 22:19:39 -04:00
#include "mxrect32.h"
#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>
class MxPalette;
// SIZE 0x24
2023-10-24 19:38:27 -04:00
class MxVideoParam {
2023-04-27 22:19:39 -04:00
public:
MxVideoParam();
MxVideoParam(MxVideoParam& p_videoParam);
__declspec(dllexport)
MxVideoParam(MxRect32& p_rect, MxPalette* p_palette, MxULong p_backBuffers, MxVideoParamFlags& p_flags);
MxVideoParam& operator=(const MxVideoParam& p_videoParam);
~MxVideoParam();
void SetDeviceName(char* p_deviceId);
2023-04-27 22:19:39 -04:00
inline MxVideoParamFlags& Flags() { return m_flags; }
2023-04-27 22:19:39 -04:00
2023-10-24 19:38:27 -04:00
inline void SetPalette(MxPalette* p_palette) { this->m_palette = p_palette; }
inline void SetBackBuffers(MxU32 p_backBuffers) { this->m_backBuffers = p_backBuffers; }
2023-10-24 19:38:27 -04:00
inline MxRect32& GetRect() { return this->m_rect; }
inline MxPalette* GetPalette() { return this->m_palette; }
inline MxU32 GetBackBuffers() { return this->m_backBuffers; }
inline char* GetDeviceName() { return this->m_deviceId; }
2023-04-27 22:19:39 -04:00
private:
MxRect32 m_rect; // 0x00
MxPalette* m_palette; // 0x10
MxU32 m_backBuffers; // 0x14
MxVideoParamFlags m_flags; // 0x18
int m_unk0x1c; // 0x1c
char* m_deviceId; // 0x20
2023-04-27 22:19:39 -04:00
};
#endif // MXVIDEOPARAM_H