History

Merge branch 'master' of https://github.com/worklist/hifi into 20224

Thijs Wenker committed 11 years ago

Commit 719f76d2 parents 9e51bec 5a621ba58 files · +3970 −4172Browse files

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

Unified · Split

interface/src/Application.cpp+0−8
@@ -191,9 +191,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 190 unmodified lines
191191 _frameCount(0),
192192 _fps(60.0f),
193193 _justStarted(true),
194−#ifdef USE_BULLET_PHYSICS
195194 _physicsEngine(glm::vec3(0.0f)),
196−#endif // USE_BULLET_PHYSICS
197195 _entities(true, this, this),
198196 _entityCollisionSystem(),
199197 _entityClipboardRenderer(false, this, this),
@@ -1726,12 +1724,10 @@ void Application::init() { · 1526 unmodified lines
17261724 // save settings when avatar changes
17271725 connect(_myAvatar, &MyAvatar::transformChanged, this, &Application::bumpSettings);
17281726
1729−#ifdef USE_BULLET_PHYSICS
17301727 EntityTree* tree = _entities.getTree();
17311728 _physicsEngine.setEntityTree(tree);
17321729 tree->setSimulation(&_physicsEngine);
17331730 _physicsEngine.init(&_entityEditSender);
1734−#endif // USE_BULLET_PHYSICS
17351731 // make sure our texture cache knows about window size changes
17361732 DependencyManager::get<TextureCache>()->associateWithWidget(glCanvas.data());
17371733
@@ -2042,12 +2038,10 @@ void Application::update(float deltaTime) { · 304 unmodified lines
20422038 updateDialogs(deltaTime); // update various stats dialogs if present
20432039 updateCursor(deltaTime); // Handle cursor updates
20442040
2045−#ifdef USE_BULLET_PHYSICS
20462041 {
20472042 PerformanceTimer perfTimer("physics");
20482043 _physicsEngine.stepSimulation();
20492044 }
2050−#endif // USE_BULLET_PHYSICS
20512045
20522046 if (!_aboutToQuit) {
20532047 PerformanceTimer perfTimer("entities");
@@ -3685,7 +3679,6 @@ void Application::openUrl(const QUrl& url) { · 1631 unmodified lines
36853679
36863680 void Application::updateMyAvatarTransform() {
36873681 bumpSettings();
3688−#ifdef USE_BULLET_PHYSICS
36893682 const float SIMULATION_OFFSET_QUANTIZATION = 16.0f; // meters
36903683 glm::vec3 avatarPosition = _myAvatar->getPosition();
36913684 glm::vec3 physicsWorldOffset = _physicsEngine.getOriginOffset();
@@ -3699,7 +3692,6 @@ void Application::updateMyAvatarTransform() { · 7 unmodified lines
36993692 // TODO: Andrew to replace this with method that actually moves existing object positions in PhysicsEngine
37003693 _physicsEngine.setOriginOffset(newOriginOffset);
37013694 }
3702−#endif // USE_BULLET_PHYSICS
37033695 }
37043696
37053697 void Application::domainSettingsReceived(const QJsonObject& domainSettingsObject) {

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