#include "SharedMemoryInProcessPhysicsC_API.h" #include "PhysicsClientSharedMemory.h" #include"../ExampleBrowser/InProcessExampleBrowser.h" class InProcessPhysicsClientSharedMemoryMainThread : public PhysicsClientSharedMemory { btInProcessExampleBrowserMainThreadInternalData* m_data; public: InProcessPhysicsClientSharedMemoryMainThread(int argc, char* argv[]) { int newargc = argc+2; char** newargv = (char**)malloc(sizeof(void*)*newargc); for (int i=0;isetSharedMemoryKey(SHARED_MEMORY_KEY); cl->connect(); return (b3PhysicsClientHandle ) cl; } class InProcessPhysicsClientSharedMemory : public PhysicsClientSharedMemory { btInProcessExampleBrowserInternalData* m_data; public: InProcessPhysicsClientSharedMemory(int argc, char* argv[]) { int newargc = argc+2; char** newargv = (char**)malloc(sizeof(void*)*newargc); for (int i=0;isetSharedMemoryKey(SHARED_MEMORY_KEY); cl->connect(); return (b3PhysicsClientHandle ) cl; }