mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
5f413165cc
* cmake: use imported targets for 3rd party libs * Fix casing of skateboard.h include * cmake: tglrl realtime viewmanager mxgeometry * cmake: spin off some source in static libraries * dx5 for everyone * ci: bump actions/checkout to v4 * move LEGO1/realtime/realtimeview.cpp to lego1 because it exports symbols * add misc library * Add omni library * Return of the .def's * Remove COMPAT_CONST in MxVideoParam::MxVideoParam * Run clang-format * move LEGO1/realtime/realtimeview.cpp to realtime lib * Add 3dmanager library * Rename .def files * Remove incorrect deps to Omni * Remove DLL expor decls * Remove unnecessary library dep from ROI * Remove COMPAT_CONST * Move 3dmanager lib before Omni * Remove mxgeometry lib (`geom` is actually `lego/sources/geom`, which we don't have in our decomp yet) * viewmanager has a dependency on realtime + fix mingw's def * Remove Smacker::Smacker from lego1 link libraries --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#ifndef MXVIDEOPARAM_H
|
|
#define MXVIDEOPARAM_H
|
|
|
|
#include "compat.h"
|
|
#include "mxpalette.h"
|
|
#include "mxrect32.h"
|
|
#include "mxtypes.h"
|
|
#include "mxvariabletable.h"
|
|
#include "mxvideoparamflags.h"
|
|
|
|
#include <ddraw.h>
|
|
|
|
// SIZE 0x24
|
|
class MxVideoParam {
|
|
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);
|
|
|
|
inline MxVideoParamFlags& Flags() { return m_flags; }
|
|
|
|
inline void SetPalette(MxPalette* p_palette) { this->m_palette = p_palette; }
|
|
inline void SetBackBuffers(MxU32 p_backBuffers) { this->m_backBuffers = p_backBuffers; }
|
|
|
|
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; }
|
|
|
|
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
|
|
};
|
|
|
|
#endif // MXVIDEOPARAM_H
|