backward compatibility fix
This commit is contained in:
@@ -19,7 +19,7 @@ class BulletURDFImporter : public URDFImporterInterface
|
|||||||
struct BulletURDFInternalData* m_data;
|
struct BulletURDFInternalData* m_data;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BulletURDFImporter(struct GUIHelperInterface* helper, UrdfRenderingInterface* customConverter, struct CommonFileIOInterface* fileIO,double globalScaling, int flags);
|
BulletURDFImporter(struct GUIHelperInterface* helper, UrdfRenderingInterface* customConverter, struct CommonFileIOInterface* fileIO=0,double globalScaling=1, int flags=0);
|
||||||
|
|
||||||
virtual ~BulletURDFImporter();
|
virtual ~BulletURDFImporter();
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
#include "LinearMath/btVector3.h"
|
#include "LinearMath/btVector3.h"
|
||||||
#include "Bullet3Common/b3Logging.h"
|
#include "Bullet3Common/b3Logging.h"
|
||||||
#include "../CommonInterfaces/CommonFileIOInterface.h"
|
#include "../CommonInterfaces/CommonFileIOInterface.h"
|
||||||
|
#include "../Utils/b3BulletDefaultFileIO.h"
|
||||||
|
|
||||||
struct DepthShader : public IShader
|
struct DepthShader : public IShader
|
||||||
{
|
{
|
||||||
Model* m_model;
|
Model* m_model;
|
||||||
@@ -370,6 +372,12 @@ void TinyRenderObjectData::registerMesh2(btAlignedObjectArray<btVector3>& vertic
|
|||||||
|
|
||||||
void TinyRenderObjectData::createCube(float halfExtentsX, float halfExtentsY, float halfExtentsZ, CommonFileIOInterface* fileIO)
|
void TinyRenderObjectData::createCube(float halfExtentsX, float halfExtentsY, float halfExtentsZ, CommonFileIOInterface* fileIO)
|
||||||
{
|
{
|
||||||
|
b3BulletDefaultFileIO defaultFileIO;
|
||||||
|
|
||||||
|
if (fileIO==0)
|
||||||
|
{
|
||||||
|
fileIO = &defaultFileIO;
|
||||||
|
}
|
||||||
m_model = new Model();
|
m_model = new Model();
|
||||||
|
|
||||||
char relativeFileName[1024];
|
char relativeFileName[1024];
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ struct TinyRenderObjectData
|
|||||||
virtual ~TinyRenderObjectData();
|
virtual ~TinyRenderObjectData();
|
||||||
|
|
||||||
void loadModel(const char* fileName, struct CommonFileIOInterface* fileIO);
|
void loadModel(const char* fileName, struct CommonFileIOInterface* fileIO);
|
||||||
void createCube(float HalfExtentsX, float HalfExtentsY, float HalfExtentsZ, struct CommonFileIOInterface* fileIO);
|
void createCube(float HalfExtentsX, float HalfExtentsY, float HalfExtentsZ, struct CommonFileIOInterface* fileIO=0);
|
||||||
void registerMeshShape(const float* vertices, int numVertices, const int* indices, int numIndices, const float rgbaColor[4],
|
void registerMeshShape(const float* vertices, int numVertices, const int* indices, int numIndices, const float rgbaColor[4],
|
||||||
unsigned char* textureImage = 0, int textureWidth = 0, int textureHeight = 0);
|
unsigned char* textureImage = 0, int textureWidth = 0, int textureHeight = 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user