mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-27 13:38:30 +00:00
Add pybullet.configureDebugVisualizer(rgbBackground=[red,green,blue]) (each component a float in the range [0,1])
This is an alternative to passing options="--background_color_red=red --background_color_green=green --background_color_blue=blue" in the connect method.
This commit is contained in:
@@ -236,13 +236,19 @@ OpenGLGuiHelper::OpenGLGuiHelper(CommonGraphicsApp* glApp, bool useOpenGL2)
|
||||
m_data->m_debugDraw = 0;
|
||||
}
|
||||
|
||||
OpenGLGuiHelper::~OpenGLGuiHelper()
|
||||
|
||||
OpenGLGuiHelper::~OpenGLGuiHelper()
|
||||
{
|
||||
delete m_data->m_debugDraw;
|
||||
|
||||
delete m_data;
|
||||
}
|
||||
|
||||
void OpenGLGuiHelper::setBackgroundColor(const double rgbBackground[3])
|
||||
{
|
||||
this->getRenderInterface()->setBackgroundColor(rgbBackground);
|
||||
}
|
||||
|
||||
struct CommonRenderInterface* OpenGLGuiHelper::getRenderInterface()
|
||||
{
|
||||
return m_data->m_glApp->m_renderer;
|
||||
|
||||
Reference in New Issue
Block a user