expose width/height as ExampleBrowser options.
suppress lack of 'site' support message in MJCF importer suppress lack of 'plane' visual support in urdf/sdf import getBodyName default to "" to avoid breaking cloudsim expose bodyName when requesting body info (sdf/mjcf import) pass optional "options" string to pybullet.connect method. this can be used for --opengl2 flag in GUI mode (or other flags)
This commit is contained in:
@@ -871,6 +871,16 @@ bool OpenGLExampleBrowser::init(int argc, char* argv[])
|
||||
|
||||
int width = 1024;
|
||||
int height=768;
|
||||
|
||||
if (args.CheckCmdLineFlag("width"))
|
||||
{
|
||||
args.GetCmdLineArgument("width",width );
|
||||
}
|
||||
if (args.CheckCmdLineFlag("height"))
|
||||
{
|
||||
args.GetCmdLineArgument("height",height);
|
||||
}
|
||||
|
||||
#ifndef NO_OPENGL3
|
||||
SimpleOpenGL3App* simpleApp=0;
|
||||
sUseOpenGL2 =args.CheckCmdLineFlag("opengl2");
|
||||
|
||||
Reference in New Issue
Block a user