更新 'src/Viewer/fg_os_osgviewer.cxx'
This commit is contained in:
parent
8bea02b7de
commit
a777d74470
@ -137,6 +137,20 @@ static void setStereoMode(const char* mode)
|
|||||||
} else {
|
} else {
|
||||||
stereoOn = false;
|
stereoOn = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//zhongjin
|
||||||
|
SG_LOG(SG_VIEW, SG_DEBUG, "立体模式: " << mode);
|
||||||
|
|
||||||
|
if (stereoOn) {
|
||||||
|
SG_LOG(SG_VIEW, SG_DEBUG, "修改立体参数");
|
||||||
|
std::string cmode;
|
||||||
|
cmode = fgGetString("/sim/current-view/name", "飞行员");
|
||||||
|
SG_LOG(SG_VIEW, SG_DEBUG, "当前视角: " << cmode);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DisplaySettings::instance()->setStereo(stereoOn);
|
DisplaySettings::instance()->setStereo(stereoOn);
|
||||||
DisplaySettings::instance()->setStereoMode(stereoMode);
|
DisplaySettings::instance()->setStereoMode(stereoMode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user