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

Method getRenderInterface

examples/SharedMemory/b3PluginManager.cpp:537–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537UrdfRenderingInterface* b3PluginManager::getRenderInterface()
538{
539 UrdfRenderingInterface* renderer = 0;
540
541 if (m_data->m_activeRendererPluginUid >= 0)
542 {
543 b3PluginHandle* plugin = m_data->m_plugins.getHandle(m_data->m_activeRendererPluginUid);
544 if (plugin && plugin->m_getRendererFunc)
545 {
546 b3PluginContext context = {0};
547 context.m_userPointer = plugin->m_userPointer;
548 context.m_physClient = (b3PhysicsClientHandle)m_data->m_physicsDirect;
549 renderer = plugin->m_getRendererFunc(&context);
550 }
551 }
552 return renderer;
553}
554
555void b3PluginManager::selectFileIOPlugin(int pluginUniqueId)
556{

Callers 15

renderSceneMethod · 0.45
getRayToMethod · 0.45
mouseMoveCallbackMethod · 0.45
mouseButtonCallbackMethod · 0.45
pickingPreTickCallbackFunction · 0.45
drawMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
initPhysicsMethod · 0.45
GpuRigidBodyDemoMethod · 0.45
initPhysicsMethod · 0.45
renderSceneMethod · 0.45

Calls 1

getHandleMethod · 0.45

Tested by

no test coverage detected