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

Function ospDeviceSetStatusCallback

ospray/api/API.cpp:240–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238OSPRAY_CATCH_END()
239
240extern "C" void ospDeviceSetStatusCallback(OSPDevice _object,
241 OSPStatusCallback callback,
242 void *userData) OSPRAY_CATCH_BEGIN
243{
244 THROW_IF_NULL_OBJECT(_object);
245
246 auto *device = (Device *)_object;
247 if (callback == nullptr) {
248 device->msg_fcn = [](void *, const char *) {};
249 device->statusUserData = nullptr;
250 } else {
251 device->msg_fcn = callback;
252 device->statusUserData = userData;
253 }
254}
255OSPRAY_CATCH_END()
256
257extern "C" void ospDeviceSetErrorCallback(OSPDevice _object,

Callers 2

initializeOSPRayFunction · 0.85
setStatusCallbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected