bullet3/examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp
2017-09-20 23:18:18 -07:00

12 lines
304 B
C++

#include "PhysicsClientSharedMemory_C_API.h"
#include "PhysicsClientSharedMemory.h"
B3_SHARED_API b3PhysicsClientHandle b3ConnectSharedMemory(int key)
{
PhysicsClientSharedMemory* cl = new PhysicsClientSharedMemory();
cl->setSharedMemoryKey(key);
cl->connect();
return (b3PhysicsClientHandle)cl;
}