isle-portable/LEGO1/mxvideoparam.h

43 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 "mxpalette.h"
#include "mxrect32.h"
#include "mxtypes.h"
2023-04-27 22:19:39 -04:00
#include "mxvariabletable.h"
#include "mxvideoparamflags.h"
2023-10-24 19:38:27 -04:00
#include <ddraw.h>
class MxVideoParam {
2023-04-27 22:19:39 -04:00
public:
2023-10-24 19:38:27 -04:00
__declspec(dllexport) MxVideoParam();
__declspec(dllexport) MxVideoParam(MxVideoParam&);
__declspec(dllexport)
MxVideoParam(COMPAT_CONST MxRect32& rect, MxPalette* pal, MxULong p3, COMPAT_CONST MxVideoParamFlags& flags);
__declspec(dllexport) MxVideoParam& operator=(const MxVideoParam&);
__declspec(dllexport) ~MxVideoParam();
2023-04-27 22:19:39 -04:00
2023-10-24 19:38:27 -04:00
__declspec(dllexport) void SetDeviceName(char* id);
2023-04-27 22:19:39 -04:00
2023-10-24 19:38:27 -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; }
2023-04-27 22:19:39 -04:00
private:
2023-10-24 19:38:27 -04:00
MxRect32 m_rect;
MxPalette* m_palette;
MxU32 m_backBuffers;
MxVideoParamFlags m_flags;
int m_unk1c;
char* m_deviceId;
2023-04-27 22:19:39 -04:00
};
#endif // MXVIDEOPARAM_H