allow to enable/disable GUI, shadows, wireframe of OpenGL Visualizer from API

(pybullet.configureDebugVisualizer)
This commit is contained in:
Erwin Coumans
2017-02-21 17:36:54 -08:00
parent 5c74b0a199
commit 37890e5a4d
14 changed files with 183 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ enum EnumSharedMemoryClientCommand
CMD_SET_VR_CAMERA_STATE,
CMD_SYNC_BODY_INFO,
CMD_STATE_LOGGING,
CMD_CONFIGURE_OPENGL_VISUALIZER,
//don't go beyond this command!
CMD_MAX_CLIENT_COMMANDS,
@@ -126,6 +127,7 @@ enum EnumSharedMemoryServerStatus
CMD_STATE_LOGGING_COMPLETED,
CMD_STATE_LOGGING_START_COMPLETED,
CMD_STATE_LOGGING_FAILED,
//don't go beyond 'CMD_MAX_SERVER_COMMANDS!
CMD_MAX_SERVER_COMMANDS
};
@@ -398,4 +400,10 @@ enum EnumRenderer
//ER_FIRE_RAYS=(1<<18),
};
enum EnumConfigureOpenGLVisualizer
{
COV_ENABLE_GUI=1,
COV_ENABLE_SHADOWS,
COV_ENABLE_WIREFRAME,
};
#endif//SHARED_MEMORY_PUBLIC_H