MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / getFileIOInterface

Method getFileIOInterface

examples/SharedMemory/b3PluginManager.cpp:560–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560struct CommonFileIOInterface* b3PluginManager::getFileIOInterface()
561{
562 CommonFileIOInterface* fileIOInterface = 0;
563 if (m_data->m_activeFileIOPluginUid >= 0)
564 {
565 b3PluginHandle* plugin = m_data->m_plugins.getHandle(m_data->m_activeFileIOPluginUid);
566 if (plugin && plugin->m_getFileIOFunc)
567 {
568 b3PluginContext context = {0};
569 context.m_userPointer = plugin->m_userPointer;
570 context.m_physClient = (b3PhysicsClientHandle)m_data->m_physicsDirect;
571 fileIOInterface = plugin->m_getFileIOFunc(&context);
572 }
573 }
574 if (fileIOInterface==0)
575 {
576 return &m_data->m_defaultFileIO;
577 }
578 return fileIOInterface;
579}
580
581void b3PluginManager::selectCollisionPlugin(int pluginUniqueId)
582{

Callers 13

loadMjcfMethod · 0.45
loadSdfMethod · 0.45
loadUrdfMethod · 0.45
processDeformableMethod · 0.45

Calls 1

getHandleMethod · 0.45

Tested by

no test coverage detected