run GUI on main thread for Mac OSX/__APPLE__, due to OS limitation
add b3CreateInProcessPhysicsServerAndConnectMainThread to test.c
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user