World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
EngineConfig.cpp
См. документацию.
1 #include "Engine/EngineConfig.h"
2 
4 
5 
6 void EngineConfig::SetSaturateFaces(bool saturate) {
7  if (saturate)
8  flags2 |= GAME_FLAGS_2_SATURATE_LIGHTMAPS;
9  else
10  flags2 &= ~GAME_FLAGS_2_SATURATE_LIGHTMAPS;
11 }
12 
13 void EngineConfig::SetForceRedraw(bool redraw) {
14  if (redraw)
15  flags2 |= GAME_FLAGS_2_FORCE_REDRAW;
16  else
17  flags2 &= ~GAME_FLAGS_2_FORCE_REDRAW;
18 }
Engine_::EngineConfig
Definition: EngineConfig.h:35
Engine_::EngineConfig::flags2
int flags2
Definition: EngineConfig.h:94
EngineConfig.h
Engine_::EngineConfig::SetForceRedraw
void SetForceRedraw(bool redraw)
Definition: EngineConfig.cpp:13