| 441 | /////////////////////////////////////////////////////////////////////////////// |
| 442 | |
| 443 | extern "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 | } |
| 452 | OSPRAY_CATCH_END(nullptr) |
| 453 | |
| 454 | extern "C" OSPTransferFunction ospNewTransferFunction( |
no test coverage detected