From a777d7447010f99676b253ffe0c9fb2bf8204b69 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 9 Dec 2022 13:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Viewer/fg=5Fos=5Fosgv?= =?UTF-8?q?iewer.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Viewer/fg_os_osgviewer.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index c723049..08f1794 100755 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -137,6 +137,20 @@ static void setStereoMode(const char* mode) } else { 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()->setStereoMode(stereoMode); }