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

Function ospNewMaterial

ospray/api/API.cpp:443–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441///////////////////////////////////////////////////////////////////////////////
442
443extern "C" OSPMaterial ospNewMaterial(
444 const char *material_type) OSPRAY_CATCH_BEGIN
445{
446 THROW_IF_NULL_STRING(material_type);
447
448 ASSERT_DEVICE();
449 auto material = currentDevice().newMaterial(material_type);
450 return material;
451}
452OSPRAY_CATCH_END(nullptr)
453
454extern "C" OSPTransferFunction ospNewTransferFunction(

Callers 3

newMaterialFunction · 0.85
mainFunction · 0.85
MaterialMethod · 0.85

Calls 1

newMaterialMethod · 0.45

Tested by

no test coverage detected