2016-03-07 22:56:16 +00:00
|
|
|
|
|
|
|
#ifndef IN_PROCESS_PHYSICS_C_API_H
|
|
|
|
#define IN_PROCESS_PHYSICS_C_API_H
|
|
|
|
|
|
|
|
#include "PhysicsClientC_API.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
///think more about naming. The b3ConnectPhysicsLoopback
|
2017-09-21 06:18:18 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnect(int argc, char* argv[]);
|
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectSharedMemory(int argc, char* argv[]);
|
2016-04-14 15:51:20 +00:00
|
|
|
|
2017-09-21 06:18:18 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThread(int argc, char* argv[]);
|
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory(int argc, char* argv[]);
|
2016-04-14 15:51:20 +00:00
|
|
|
|
2018-05-07 23:59:06 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect(void* guiHelperPtr);
|
2018-05-07 22:57:36 +00:00
|
|
|
//create a shared memory physics server, with a DummyGUIHelper (no graphics)
|
2018-06-05 01:36:54 +00:00
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect2(void* guiHelperPtr, int sharedMemoryKey);
|
2017-05-13 20:37:49 +00:00
|
|
|
|
|
|
|
///ignore the following APIs, they are for internal use for example browser
|
2017-05-13 18:15:20 +00:00
|
|
|
void b3InProcessRenderSceneInternal(b3PhysicsClientHandle clientHandle);
|
2017-05-13 20:37:49 +00:00
|
|
|
void b3InProcessDebugDrawInternal(b3PhysicsClientHandle clientHandle, int debugDrawMode);
|
|
|
|
int b3InProcessMouseMoveCallback(b3PhysicsClientHandle clientHandle,float x,float y);
|
|
|
|
int b3InProcessMouseButtonCallback(b3PhysicsClientHandle clientHandle, int button, int state, float x, float y);
|
|
|
|
|
2016-03-07 22:56:16 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //IN_PROCESS_PHYSICS_C_API_H
|