* Embree has a notion of devices, which are entities that can run * raytracing kernels. * We initialize our device here, and then register the error handler so that * we don't miss any errors. * * rtcNewDevice() takes a configuration string as an argument. See the API docs * for more information. * * Note that RTCDevice is reference-counted. */
| 64 | * Note that RTCDevice is reference-counted. |
| 65 | */ |
| 66 | RTCDevice initializeDevice() |
| 67 | { |
| 68 | RTCDevice device = rtcNewDevice(NULL); |
| 69 | |
| 70 | if (!device) |
| 71 | printf("error %d: cannot create device\n", rtcGetDeviceError(NULL)); |
| 72 | |
| 73 | rtcSetDeviceErrorFunction(device, errorFunction, NULL); |
| 74 | return device; |
| 75 | } |
| 76 | |
| 77 | /* |
| 78 | * Create a scene, which is a collection of geometry objects. Scenes are |
no test coverage detected