mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 01:17:55 -05:00
e16249b672
* define MxLong/MxULong The "long" type has different sizes on different platforms, and this may cause issues. * use DWORD to match RegQueryValueExA arg
38 lines
1,013 B
C++
38 lines
1,013 B
C++
#ifndef MXVIDEOPARAM_H
|
|
#define MXVIDEOPARAM_H
|
|
|
|
#include <ddraw.h>
|
|
|
|
#include "compat.h"
|
|
#include "mxpalette.h"
|
|
#include "mxrect32.h"
|
|
#include "mxtypes.h"
|
|
#include "mxvariabletable.h"
|
|
#include "mxvideoparamflags.h"
|
|
|
|
class MxVideoParam
|
|
{
|
|
public:
|
|
__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();
|
|
|
|
__declspec(dllexport) void SetDeviceName(char *id);
|
|
|
|
inline MxVideoParamFlags &flags() { return m_flags; }
|
|
|
|
inline void SetPalette(MxPalette *p_palette) { this->m_palette = p_palette; }
|
|
inline MxPalette *GetPalette() { return this->m_palette; }
|
|
|
|
private:
|
|
MxRect32 m_rect;
|
|
MxPalette *m_palette;
|
|
unsigned int m_backBuffers;
|
|
MxVideoParamFlags m_flags;
|
|
int m_unk1c;
|
|
char *m_deviceId;
|
|
};
|
|
|
|
#endif // MXVIDEOPARAM_H
|