error reporting function */
| 76 | |
| 77 | /* error reporting function */ |
| 78 | void error_handler(void* userPtr, const RTCError code, const char* str) |
| 79 | { |
| 80 | if (code == RTC_ERROR_NONE) |
| 81 | return; |
| 82 | |
| 83 | printf("Embree: %s", rtcGetErrorString(code)); |
| 84 | if (str) { |
| 85 | printf(" ("); |
| 86 | while (*str) putchar(*str++); |
| 87 | printf(")\n"); |
| 88 | } else { |
| 89 | printf("\n"); |
| 90 | } |
| 91 | exit(1); |
| 92 | } |
| 93 | |
| 94 | TutorialApplication* TutorialApplication::instance = nullptr; |
| 95 |
no test coverage detected