run GUI on main thread for Mac OSX/__APPLE__, due to OS limitation

add b3CreateInProcessPhysicsServerAndConnectMainThread to test.c
This commit is contained in:
Erwin Coumans
2016-04-14 08:51:20 -07:00
parent 0ca56e756f
commit 2cbfeb9590
8 changed files with 225 additions and 78 deletions

View File

@@ -1,4 +1,24 @@
#include "InProcessExampleBrowserMainThread.h"
int main(int argc, char* argv[])
{
btInProcessExampleBrowserMainThreadInternalData* data = btCreateInProcessExampleBrowserMainThread(argc,argv);
while (!btIsExampleBrowserMainThreadTerminated(data))
{
btUpdateInProcessExampleBrowserMainThread(data, 1./60.);
}
btShutDownExampleBrowserMainThread(data);
return 0;
}
#if 0
//#define EXAMPLE_CONSOLE_ONLY
#ifdef EXAMPLE_CONSOLE_ONLY
#include "EmptyBrowser.h"
@@ -43,3 +63,4 @@ int main(int argc, char* argv[])
return 0;
}
#endif