bullet3/examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp

12 lines
304 B
C++
Raw Normal View History

#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;
}