mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
54a76f6e0c
(as usual, work-in-progress)
36 lines
773 B
C++
36 lines
773 B
C++
#ifndef BT_PHYSICS_CLIENT_API_H
|
|
#define BT_PHYSICS_CLIENT_API_H
|
|
|
|
#include "SharedMemoryCommands.h"
|
|
|
|
|
|
class PhysicsClientSharedMemory //: public CommonPhysicsClientInterface
|
|
{
|
|
struct PhysicsClientSharedMemoryInternalData* m_data;
|
|
protected:
|
|
|
|
public:
|
|
|
|
PhysicsClientSharedMemory();
|
|
virtual ~PhysicsClientSharedMemory();
|
|
|
|
//todo: implement 'allocateSharedMemory' from client side in 'connect' call
|
|
virtual bool connect(bool allowSharedMemoryInitialization = true);
|
|
|
|
virtual bool isConnected() const;
|
|
|
|
virtual void processServerStatus();
|
|
|
|
virtual bool getLastServerStatus(ServerStatus& status)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
virtual bool canSubmitCommand() const;
|
|
|
|
virtual bool submitClientCommand(const SharedMemoryCommand& command);
|
|
|
|
};
|
|
|
|
#endif //BT_PHYSICS_CLIENT_API_H
|