History

Merge branch 'master' of https://github.com/highfidelity/hifi into hmdHacking

Brad Hefta-Gaub committed 10 years ago

Commit 04679302 parents c4fc3e4 e3ae2ba65 files · +1374 −1633Browse files

Showing the changes to interface/src/Application.cpp (1 of 65 files). Show all

Unified · Split

interface/src/Application.cpp+5−5
@@ -829,8 +829,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 828 unmodified lines
829829 _applicationStateDevice->addInputVariant(QString("InHMD"), controller::StateController::ReadLambda([]() -> float {
830830 return (float)qApp->getAvatarUpdater()->isHMDMode();
831831 }));
832− _applicationStateDevice->addInputVariant(QString("ComfortMode"), controller::StateController::ReadLambda([]() -> float {
833− return (float)Menu::getInstance()->isOptionChecked(MenuOption::ComfortMode);
832+ _applicationStateDevice->addInputVariant(QString("SnapTurn"), controller::StateController::ReadLambda([]() -> float {
833+ return (float)qApp->getMyAvatar()->getSnapTurn();
834834 }));
835835 _applicationStateDevice->addInputVariant(QString("Grounded"), controller::StateController::ReadLambda([]() -> float {
836836 return (float)qApp->getMyAvatar()->getCharacterController()->onGround();
@@ -1515,7 +1515,7 @@ void Application::paintGL() { · 678 unmodified lines
15151515 // just relying on the left FOV in each case and hoping that the
15161516 // overall culling margin of error doesn't cause popping in the
15171517 // right eye. There are FIXMEs in the relevant plugins
1518− _myCamera.setProjection(displayPlugin->getProjection(Mono, _myCamera.getProjection()));
1518+ _myCamera.setProjection(displayPlugin->getCullingProjection(_myCamera.getProjection()));
15191519 renderArgs._context->enableStereo(true);
15201520 mat4 eyeOffsets[2];
15211521 mat4 eyeProjections[2];
@@ -1546,7 +1546,7 @@ void Application::paintGL() { · 24 unmodified lines
15461546
15471547 displayPlugin->setEyeRenderPose(_frameCount, eye, headPose);
15481548
1549− eyeProjections[eye] = displayPlugin->getProjection(eye, baseProjection);
1549+ eyeProjections[eye] = displayPlugin->getEyeProjection(eye, baseProjection);
15501550 });
15511551 renderArgs._context->setStereoProjections(eyeProjections);
15521552 renderArgs._context->setStereoViews(eyeOffsets);
@@ -5042,7 +5042,7 @@ void Application::updateInputModes() { · 3489 unmodified lines
50425042
50435043 mat4 Application::getEyeProjection(int eye) const {
50445044 if (isHMDMode()) {
5045− return getActiveDisplayPlugin()->getProjection((Eye)eye, _viewFrustum.getProjection());
5045+ return getActiveDisplayPlugin()->getEyeProjection((Eye)eye, _viewFrustum.getProjection());
50465046 }
50475047
50485048 return _viewFrustum.getProjection();