Isle
Loading...
Searching...
No Matches
mxvideoparamflags.h
Go to the documentation of this file.
1#ifndef MXVIDEOPARAMFLAGS_H
2#define MXVIDEOPARAMFLAGS_H
3
4#include "mxtypes.h"
5
6#include <windows.h>
7
20public:
21
26
31 void SetFullScreen(MxBool p_e) { m_flags1.m_bit0 = p_e; }
32
37 void SetFlipSurfaces(MxBool p_e) { m_flags1.m_bit1 = p_e; }
38
43 void SetBackBuffers(MxBool p_e) { m_flags1.m_bit2 = p_e; }
44
49 void SetF1bit3(MxBool p_e) { m_flags1.m_bit3 = p_e; }
50
55 void Set16Bit(MxBool p_e) { m_flags1.m_bit5 = p_e; }
56
61 void SetWideViewAngle(MxBool p_e) { m_flags1.m_bit6 = p_e; }
62
67 void SetF1bit7(MxBool p_e) { m_flags1.m_bit7 = p_e; }
68
73 void SetF2bit0(MxBool p_e) { m_flags2.m_bit0 = p_e; }
74
79 void SetF2bit1(MxBool p_e) { m_flags2.m_bit1 = p_e; }
80
85 MxBool GetFullScreen() { return m_flags1.m_bit0; }
86
91 MxBool GetFlipSurfaces() { return m_flags1.m_bit1; }
92
97 MxBool GetBackBuffers() { return m_flags1.m_bit2; }
98
103 MxBool GetF1bit3() { return m_flags1.m_bit3; }
104
109 MxBool Get16Bit() { return m_flags1.m_bit5; }
110
115 MxBool GetWideViewAngle() { return m_flags1.m_bit6; }
116
121 MxBool GetF2bit0() { return m_flags2.m_bit0; }
122
127 MxBool GetF2bit1() { return m_flags2.m_bit1; }
128
129private:
130 FlagBitfield m_flags1;
131 FlagBitfield m_flags2;
132};
133
134#endif // MXVIDEOPARAMFLAGS_H
[AI] Manages video parameter flags, providing an abstraction for various video settings such as fulls...
MxBool GetWideViewAngle()
[AI] Get whether a wide view angle is enabled.
MxBool GetFullScreen()
[AI] Get whether fullscreen mode is enabled.
MxBool Get16Bit()
[AI] Get whether 16-bit rendering mode is selected.
void SetF1bit7(MxBool p_e)
[AI] Set an additional flag (purpose unknown; originally used by the engine for extension).
void SetF2bit1(MxBool p_e)
[AI] Set secondary flag 1 (often used for internal video logic).
void SetWideViewAngle(MxBool p_e)
[AI] Enable or disable a wider field of view for 3D rendering.
void SetBackBuffers(MxBool p_e)
[AI] Toggle the use of a back buffer (double-buffered rendering).
void SetF2bit0(MxBool p_e)
[AI] Set secondary flag 0 (often used for internal video logic).
void SetF1bit3(MxBool p_e)
[AI] Set an additional primary flag; exact usage is unknown but may control a video mode detail.
void Set16Bit(MxBool p_e)
[AI] Specify whether 16-bit color depth should be used for rendering.
MxBool GetF2bit1()
[AI] Get the value of secondary flag 1.
MxBool GetF2bit0()
[AI] Get the value of secondary flag 0.
MxBool GetFlipSurfaces()
[AI] Get whether page flipping of surfaces is enabled.
MxVideoParamFlags()
[AI] Constructs an MxVideoParamFlags instance and sets default values as found in the original game.
MxBool GetF1bit3()
[AI] Get the value of primary flag 3.
void SetFlipSurfaces(MxBool p_e)
[AI] Toggle the use of flip (page flipping) for surfaces.
void SetFullScreen(MxBool p_e)
[AI] Enable or disable fullscreen mode.
MxBool GetBackBuffers()
[AI] Get whether back buffering (double buffering) is enabled.
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
[AI] Union that provides a convenient bit field view of a byte for flag manipulation.
Definition: mxtypes.h:169
MxU8 m_bit0
[AI] Least significant bit of the flag byte.
Definition: mxtypes.h:171
MxU8 m_bit6
[AI]
Definition: mxtypes.h:177
MxU8 m_bit5
[AI]
Definition: mxtypes.h:176
MxU8 m_bit3
[AI]
Definition: mxtypes.h:174
MxU8 m_bit7
[AI] Most significant bit of the flag byte.
Definition: mxtypes.h:178
MxU8 m_bit2
[AI]
Definition: mxtypes.h:173
MxU8 m_bit1
[AI]
Definition: mxtypes.h:172