History

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

Atlante45 committed 11 years ago

Commit bfeb0952 parents ee3a8b1 cac239a78 files · +1744 −685Browse files

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

Unified · Split

interface/src/Application.cpp+2−12
@@ -1022,6 +1022,7 @@ void Application::paintGL() { · 1021 unmodified lines
1022 1022
1023void Application::runTests() {1023void Application::runTests() {
1024 runTimingTests();1024 runTimingTests();
1025 runUnitTests();
1025}1026}
1026 1027
1027void Application::audioMuteToggled() {1028void Application::audioMuteToggled() {
@@ -1190,7 +1191,6 @@ bool Application::event(QEvent* event) { · 162 unmodified lines
1190}1191}
1191 1192
1192bool Application::eventFilter(QObject* object, QEvent* event) {1193bool Application::eventFilter(QObject* object, QEvent* event) {
1193
1194 if (event->type() == QEvent::ShortcutOverride) {1194 if (event->type() == QEvent::ShortcutOverride) {
1195 if (DependencyManager::get<OffscreenUi>()->shouldSwallowShortcut(event)) {1195 if (DependencyManager::get<OffscreenUi>()->shouldSwallowShortcut(event)) {
1196 event->accept();1196 event->accept();
@@ -1795,6 +1795,7 @@ void Application::checkFPS() { · 598 unmodified lines
1795}1795}
1796 1796
1797void Application::idle() {1797void Application::idle() {
1798 PROFILE_RANGE(__FUNCTION__);
1798 static SimpleAverage<float> interIdleDurations;1799 static SimpleAverage<float> interIdleDurations;
1799 static uint64_t lastIdleEnd{ 0 };1800 static uint64_t lastIdleEnd{ 0 };
1800 1801
@@ -3403,14 +3404,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 1602 unmodified lines
3403 // load the view frustum3404 // load the view frustum
3404 loadViewFrustum(theCamera, _displayViewFrustum);3405 loadViewFrustum(theCamera, _displayViewFrustum);
3405 3406
3406 // flip x if in mirror mode (also requires reversing winding order for backface culling)
3407 if (theCamera.getMode() == CAMERA_MODE_MIRROR) {
3408 //glScalef(-1.0f, 1.0f, 1.0f);
3409 //glFrontFace(GL_CW);
3410 } else {
3411 glFrontFace(GL_CCW);
3412 }
3413
3414 // transform view according to theCamera3407 // transform view according to theCamera
3415 // could be myCamera (if in normal mode)3408 // could be myCamera (if in normal mode)
3416 // or could be viewFrustumOffsetCamera if in offset mode3409 // or could be viewFrustumOffsetCamera if in offset mode
@@ -3428,9 +3421,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 11 unmodified lines
3428 Transform viewTransform;3421 Transform viewTransform;
3429 viewTransform.setTranslation(theCamera.getPosition());3422 viewTransform.setTranslation(theCamera.getPosition());
3430 viewTransform.setRotation(rotation);3423 viewTransform.setRotation(rotation);
3431 if (theCamera.getMode() == CAMERA_MODE_MIRROR) {
3432// viewTransform.setScale(Transform::Vec3(-1.0f, 1.0f, 1.0f));
3433 }
3434 if (renderArgs->_renderSide != RenderArgs::MONO) {3424 if (renderArgs->_renderSide != RenderArgs::MONO) {
3435 glm::mat4 invView = glm::inverse(_untranslatedViewMatrix);3425 glm::mat4 invView = glm::inverse(_untranslatedViewMatrix);
3436 3426

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t