2018-02-03 02:33:29 +00:00
|
|
|
#ifndef B3_ROBOT_SIMULATOR_CLIENT_API_GUI_H
|
|
|
|
#define B3_ROBOT_SIMULATOR_CLIENT_API_GUI_H
|
2017-02-24 23:34:11 +00:00
|
|
|
|
2018-06-05 01:41:41 +00:00
|
|
|
#include "../SharedMemory/b3RobotSimulatorClientAPI_NoGUI.h"
|
2017-02-24 23:34:11 +00:00
|
|
|
|
2018-02-03 02:33:29 +00:00
|
|
|
///The b3RobotSimulatorClientAPI_GUI is pretty much the C++ version of pybullet
|
2017-02-24 23:34:11 +00:00
|
|
|
///as documented in the pybullet Quickstart Guide
|
|
|
|
///https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA
|
2018-02-03 02:33:29 +00:00
|
|
|
class b3RobotSimulatorClientAPI : public b3RobotSimulatorClientAPI_NoGUI
|
2017-02-24 23:34:11 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
b3RobotSimulatorClientAPI();
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2017-02-24 23:34:11 +00:00
|
|
|
virtual ~b3RobotSimulatorClientAPI();
|
|
|
|
|
2018-02-03 02:33:29 +00:00
|
|
|
virtual bool connect(int mode, const std::string& hostName = "localhost", int portOrKey = -1);
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2017-05-13 20:37:49 +00:00
|
|
|
virtual void renderScene();
|
2018-02-03 02:33:29 +00:00
|
|
|
|
2017-05-13 20:37:49 +00:00
|
|
|
virtual void debugDraw(int debugDrawMode);
|
2018-02-03 02:33:29 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual bool mouseMoveCallback(float x, float y);
|
2017-05-13 20:37:49 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual bool mouseButtonCallback(int button, int state, float x, float y);
|
2017-02-24 23:34:11 +00:00
|
|
|
};
|
|
|
|
|
2017-03-16 00:09:17 +00:00
|
|
|
#endif //B3_ROBOT_SIMULATOR_CLIENT_API_H
|