Files
bullet3/Demos3/ImportURDFDemo/ImportURDFSetup.h
Erwin Coumans f199a4a972 add fileOpenDialog and enable loading of urdf from GUI
(will add .bullet file support soon)
Uses native Windows (getFileOpenFileName) and Mac OSX NSOpenPanel,
on Linux using pipe popen to zenity)
2014-08-31 11:53:44 -07:00

22 lines
446 B
C++

#ifndef IMPORT_URDF_SETUP_H
#define IMPORT_URDF_SETUP_H
#include "../../Demos/CommonMultiBodySetup.h"
class ImportUrdfDemo : public CommonMultiBodySetup
{
char m_fileName[1024];
public:
ImportUrdfDemo();
virtual ~ImportUrdfDemo();
virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge);
virtual void stepSimulation(float deltaTime);
void setFileName(const char* urdfFileName);
};
#endif //IMPORT_URDF_SETUP_H