mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 10:31:16 +00:00
* Use strcasecmp, strncasecmp, strlwr, strupr and itoa from SDL * Use SDL_GetTicks instead of timeGetTime * Use MxDSFile::OPEN_READ instead of OF_READ * Use SDL_IOStream to read bitmaps * Use SDL_LogXXX instead of OutputDebugString * Undo mxvideoparam.h change * Revert "Undo mxvideoparam.h change" This reverts commit4a20cf6c46. * Fix _MxTrace * Reapply "Undo mxvideoparam.h change" This reverts commitb3a09dc520. * fix _MxTrace * Use __declspec(dllexport) for exporting symbols from dll Refactored CMake script such that all objects are passed to the lego1 library. * clang-format * fix msvc build * MSVC fixed for real now? * Forgot about d3drm_guid * Fix naming issue * Use Uint64 in LegoCarBuild::Tickle for dTime
70 lines
1.7 KiB
C++
70 lines
1.7 KiB
C++
#ifndef MXVIDEOPARAMFLAGS_H
|
|
#define MXVIDEOPARAMFLAGS_H
|
|
|
|
#include "lego1_export.h"
|
|
#include "mxtypes.h"
|
|
|
|
#include <windows.h>
|
|
|
|
class MxVideoParamFlags {
|
|
public:
|
|
LEGO1_EXPORT MxVideoParamFlags();
|
|
|
|
// inlined in ISLE
|
|
void SetFullScreen(MxBool p_e) { m_flags1.m_bit0 = p_e; }
|
|
|
|
// FUNCTION: BETA10 0x10141f80
|
|
void SetFlipSurfaces(MxBool p_e) { m_flags1.m_bit1 = p_e; }
|
|
|
|
// FUNCTION: BETA10 0x10141fb0
|
|
void SetBackBuffers(MxBool p_e) { m_flags1.m_bit2 = p_e; }
|
|
|
|
// FUNCTION: BETA10 0x100d9250
|
|
void SetF1bit3(MxBool p_e) { m_flags1.m_bit3 = p_e; }
|
|
|
|
// inlined in ISLE
|
|
void Set16Bit(MxBool p_e) { m_flags1.m_bit5 = p_e; }
|
|
|
|
// inlined in ISLE
|
|
void SetWideViewAngle(MxBool p_e) { m_flags1.m_bit6 = p_e; }
|
|
|
|
// inlined in ISLE
|
|
void SetF1bit7(MxBool p_e) { m_flags1.m_bit7 = p_e; }
|
|
|
|
// FUNCTION: BETA10 0x100d81b0
|
|
void SetF2bit0(MxBool p_e) { m_flags2.m_bit0 = p_e; }
|
|
|
|
// inlined in ISLE
|
|
void SetF2bit1(MxBool p_e) { m_flags2.m_bit1 = p_e; }
|
|
|
|
// FUNCTION: BETA10 0x1009e770
|
|
MxBool GetFullScreen() { return m_flags1.m_bit0; }
|
|
|
|
// FUNCTION: BETA10 0x100d80f0
|
|
MxBool GetFlipSurfaces() { return m_flags1.m_bit1; }
|
|
|
|
// FUNCTION: BETA10 0x100d8120
|
|
MxBool GetBackBuffers() { return m_flags1.m_bit2; }
|
|
|
|
// FUNCTION: BETA10 0x10142010
|
|
MxBool GetF1bit3() { return m_flags1.m_bit3; }
|
|
|
|
// FUNCTION: BETA10 0x100d8150
|
|
MxBool Get16Bit() { return m_flags1.m_bit5; }
|
|
|
|
// FUNCTION: BETA10 0x100d8180
|
|
MxBool GetWideViewAngle() { return m_flags1.m_bit6; }
|
|
|
|
// FUNCTION: BETA10 0x100886b0
|
|
MxBool GetF2bit0() { return m_flags2.m_bit0; }
|
|
|
|
// FUNCTION: BETA10 0x10142050
|
|
MxBool GetF2bit1() { return m_flags2.m_bit1; }
|
|
|
|
private:
|
|
FlagBitfield m_flags1;
|
|
FlagBitfield m_flags2;
|
|
};
|
|
|
|
#endif // MXVIDEOPARAMFLAGS_H
|