Showing the changes to interface/src/main.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1,28 +1,31 @@ | |||
| 1 | // | 1 | // |
| 2 | // Interface | 2 | // Interface |
| 3 | // | 3 | // |
| 4 | // Allows you to connect to and see/hear the shared 3D space. | 4 | // Allows you to connect to and see/hear the shared 3D space. |
| 5 | // Optionally uses serialUSB connection to get gyro data for head movement. | 5 | // Optionally uses serialUSB connection to get gyro data for head movement. |
| 6 | // Optionally gets UDP stream from transmitter to animate controller/hand. | 6 | // Optionally gets UDP stream from transmitter to animate controller/hand. |
| 7 | // | 7 | // |
| 8 | // Usage: The interface client first attempts to contact a domain server to | 8 | // Usage: The interface client first attempts to contact a domain server to |
| 9 | // discover the appropriate audio, voxel, and avatar servers to contact. | 9 | // discover the appropriate audio, voxel, and avatar servers to contact. |
| 10 | // Right now, the default domain server is "highfidelity.below92.com" | 10 | // Right now, the default domain server is "highfidelity.below92.com" |
| 11 | // You can change the domain server to use your own by editing the | 11 | // You can change the domain server to use your own by editing the |
| 12 | // DOMAIN_HOSTNAME or DOMAIN_IP strings in the file AgentList.cpp | 12 | // DOMAIN_HOSTNAME or DOMAIN_IP strings in the file AgentList.cpp |
| 13 | // | 13 | // |
| 14 | // | 14 | // |
| 15 | // Welcome Aboard! | 15 | // Welcome Aboard! |
| 16 | // | 16 | // |
| 17 | 17 | ||
| 18 | #include "Application.h" | 18 | #include "Application.h" |
| 19 | #include "Log.h" | 19 | #include "Log.h" |
| 20 | 20 | ||
| 21 | int main(int argc, const char * argv[]) { | 21 | int main(int argc, const char * argv[]) { |
| 22 | 22 | ||
| 23 | Application app(argc, const_cast<char**>(argv)); | 23 | timeval startup_time; |
| 24 | printLog( "Created QT Application.\n" ); | 24 | gettimeofday(&startup_time, NULL); |
| 25 | int exitCode = app.exec(); | 25 | |
| 26 | printLog("Normal exit.\n"); | 26 | Application app(argc, const_cast<char**>(argv), startup_time); |
| 27 | return exitCode; | 27 | printLog( "Created QT Application.\n" ); |
| 28 | } | 28 | int exitCode = app.exec(); |
| 29 | printLog("Normal exit.\n"); | ||
| 30 | return exitCode; | ||
| 31 | } | ||