A fileIO plugin can override custom file IO operations. As a small test, load files from a zipfile in memory. Default fileIO implementation is in examples/Utils/b3BulletDefaultFileIO.h Affects URDF, SDF, MJCF, Wavefront OBJ, STL, DAE, images.
23 lines
509 B
C++
23 lines
509 B
C++
#ifndef B3_IMPORT_MESH_UTILITY_H
|
|
#define B3_IMPORT_MESH_UTILITY_H
|
|
|
|
#include <string>
|
|
|
|
struct b3ImportMeshData
|
|
{
|
|
struct GLInstanceGraphicsShape* m_gfxShape;
|
|
|
|
unsigned char* m_textureImage1; //in 3 component 8-bit RGB data
|
|
bool m_isCached;
|
|
int m_textureWidth;
|
|
int m_textureHeight;
|
|
};
|
|
|
|
class b3ImportMeshUtility
|
|
{
|
|
public:
|
|
static bool loadAndRegisterMeshFromFileInternal(const std::string& fileName, b3ImportMeshData& meshData, struct CommonFileIOInterface* fileIO);
|
|
};
|
|
|
|
#endif //B3_IMPORT_MESH_UTILITY_H
|