mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -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>
51 lines
2.1 KiB
C++
51 lines
2.1 KiB
C++
#ifndef MXVIDEOPARAMFLAGS_H
|
|
#define MXVIDEOPARAMFLAGS_H
|
|
|
|
#include "mxtypes.h"
|
|
|
|
#include <windows.h>
|
|
|
|
class MxVideoParamFlags {
|
|
public:
|
|
MxVideoParamFlags();
|
|
|
|
inline void SetFullScreen(BOOL p_e) { m_flags1.m_bit0 = p_e; }
|
|
inline void SetFlipSurfaces(BOOL p_e) { m_flags1.m_bit1 = p_e; }
|
|
inline void SetBackBuffers(BOOL p_e) { m_flags1.m_bit2 = p_e; }
|
|
inline void SetF1bit3(BOOL p_e) { m_flags1.m_bit3 = p_e; }
|
|
inline void SetF1bit4(BOOL p_e) { m_flags1.m_bit4 = p_e; }
|
|
inline void Set16Bit(BYTE p_e) { m_flags1.m_bit5 = p_e; }
|
|
inline void SetWideViewAngle(BOOL p_e) { m_flags1.m_bit6 = p_e; }
|
|
inline void SetF1bit7(BOOL p_e) { m_flags1.m_bit7 = p_e; }
|
|
inline void SetF2bit0(BOOL p_e) { m_flags2.m_bit0 = p_e; }
|
|
inline void SetF2bit1(BOOL p_e) { m_flags2.m_bit1 = p_e; }
|
|
inline void SetF2bit2(BOOL p_e) { m_flags2.m_bit2 = p_e; }
|
|
inline void SetF2bit3(BOOL p_e) { m_flags2.m_bit3 = p_e; }
|
|
inline void SetF2bit4(BOOL p_e) { m_flags2.m_bit4 = p_e; }
|
|
inline void SetF2bit5(BOOL p_e) { m_flags2.m_bit5 = p_e; }
|
|
inline void SetF2bit6(BOOL p_e) { m_flags2.m_bit6 = p_e; }
|
|
inline void SetF2bit7(BOOL p_e) { m_flags2.m_bit7 = p_e; }
|
|
|
|
inline BYTE GetFullScreen() { return m_flags1.m_bit0; }
|
|
inline BYTE GetFlipSurfaces() { return m_flags1.m_bit1; }
|
|
inline BYTE GetBackBuffers() { return m_flags1.m_bit2; }
|
|
inline BYTE GetF1bit3() { return m_flags1.m_bit3; }
|
|
inline BYTE GetF1bit4() { return m_flags1.m_bit4; }
|
|
inline BYTE Get16Bit() { return m_flags1.m_bit5; }
|
|
inline BYTE GetWideViewAngle() { return m_flags1.m_bit6; }
|
|
inline BYTE GetF1bit7() { return m_flags1.m_bit7; }
|
|
inline BYTE GetF2bit0() { return m_flags2.m_bit0; }
|
|
inline BYTE GetF2bit1() { return m_flags2.m_bit1; }
|
|
inline BYTE GetF2bit2() { return m_flags2.m_bit2; }
|
|
inline BYTE GetF2bit3() { return m_flags2.m_bit3; }
|
|
inline BYTE GetF2bit4() { return m_flags2.m_bit4; }
|
|
inline BYTE GetF2bit5() { return m_flags2.m_bit5; }
|
|
inline BYTE GetF2bit6() { return m_flags2.m_bit6; }
|
|
inline BYTE GetF2bit7() { return m_flags2.m_bit7; }
|
|
|
|
private:
|
|
FlagBitfield m_flags1;
|
|
FlagBitfield m_flags2;
|
|
};
|
|
|
|
#endif // MXVIDEOPARAMFLAGS_H
|