use mainthread on __APPLE__

remove duplicate SimpleCamera.cpp from cmakelists.txt
This commit is contained in:
Erwin Coumans 2021-11-11 21:18:57 -08:00
parent e3b98615f1
commit a3005879bb
2 changed files with 6 additions and 3 deletions

View File

@ -20,8 +20,6 @@ SET(RobotSimulator_SRCS
../../examples/ExampleBrowser/InProcessExampleBrowser.cpp
../../examples/SharedMemory/plugins/tinyRendererPlugin/tinyRendererPlugin.cpp
../../examples/SharedMemory/plugins/tinyRendererPlugin/TinyRendererVisualShapeConverter.cpp
../../examples/OpenGLWindow/SimpleCamera.cpp
../../examples/OpenGLWindow/SimpleCamera.h
../../examples/TinyRenderer/geometry.cpp
../../examples/TinyRenderer/model.cpp
../../examples/TinyRenderer/tgaimage.cpp

View File

@ -29,7 +29,12 @@ std::map<std::string, int> jointNameToId;
int main(int argc, char* argv[])
{
#ifdef __APPLE__
kPhysClient = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv);
#else
kPhysClient = b3CreateInProcessPhysicsServerAndConnect(argc, argv);
#endif
if (!kPhysClient)
return -1;
// visualizer
@ -131,4 +136,4 @@ int main(int argc, char* argv[])
}
b3DisconnectSharedMemory(kPhysClient);
return 0;
}
}