MCPcopy Create free account
hub / github.com/RenderKit/ospray / ospNewRenderer

Function ospNewRenderer

ospray/api/API.cpp:642–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640///////////////////////////////////////////////////////////////////////////////
641
642extern "C" OSPRenderer ospNewRenderer(const char *_type) OSPRAY_CATCH_BEGIN
643{
644 THROW_IF_NULL_STRING(_type);
645 ASSERT_DEVICE();
646
647 std::string type(_type);
648 for (size_t i = 0; i < type.size(); i++) {
649 if (type[i] == '-' || type[i] == ':')
650 type[i] = '_';
651 }
652 OSPRenderer renderer = currentDevice().newRenderer(type.c_str());
653 return renderer;
654}
655OSPRAY_CATCH_END(nullptr)
656
657extern "C" OSPFuture ospRenderFrame(OSPFrameBuffer fb,

Callers 7

newRendererFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
buildScene1Function · 0.85
buildScene2Function · 0.85
mainFunction · 0.85
RendererMethod · 0.85

Calls 2

sizeMethod · 0.45
newRendererMethod · 0.45

Tested by

no test coverage detected