更新 'src/Viewer/fg_os_osgviewer.cxx'
This commit is contained in:
parent
cda0a32612
commit
027b4a59d3
@ -147,6 +147,12 @@ static void setStereoMode(const char* mode)
|
|||||||
cmode = fgGetString("/sim/current-view/name", "飞行员");
|
cmode = fgGetString("/sim/current-view/name", "飞行员");
|
||||||
SG_LOG(SG_VIEW, SG_INFO, "当前视角: " << cmode);
|
SG_LOG(SG_VIEW, SG_INFO, "当前视角: " << cmode);
|
||||||
|
|
||||||
|
if ( cmode =="飞行员" || cmode == "副驾驶" || cmode== "领航" || cmode== "货仓" || cmode== "") {
|
||||||
|
fgSetInt("/sim/rendering/osg-displaysettings/screen-distance",0.6);
|
||||||
|
} else {
|
||||||
|
fgSetInt("/sim/rendering/osg-displaysettings/screen-distance",30);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -160,9 +166,6 @@ static const char* getStereoMode()
|
|||||||
DisplaySettings::StereoMode stereoMode = DisplaySettings::instance()->getStereoMode();
|
DisplaySettings::StereoMode stereoMode = DisplaySettings::instance()->getStereoMode();
|
||||||
bool stereoOn = DisplaySettings::instance()->getStereo();
|
bool stereoOn = DisplaySettings::instance()->getStereo();
|
||||||
|
|
||||||
//zhongjin
|
|
||||||
SG_LOG(SG_VIEW, SG_INFO, "立体模式: " << stereoOn);
|
|
||||||
|
|
||||||
if (!stereoOn) return "OFF";
|
if (!stereoOn) return "OFF";
|
||||||
if (stereoMode == DisplaySettings::QUAD_BUFFER) {
|
if (stereoMode == DisplaySettings::QUAD_BUFFER) {
|
||||||
return "QUAD_BUFFER";
|
return "QUAD_BUFFER";
|
||||||
|
Loading…
Reference in New Issue
Block a user