| 20 | |
| 21 | template <typename OSTREAM_T> |
| 22 | static inline void installErrorMsgFunc(Device &device, OSTREAM_T &stream) |
| 23 | { |
| 24 | device.error_fcn = [&](void *, OSPError e, const char *msg) { |
| 25 | stream << "OSPRAY ERROR [" << e << "]: " << msg << std::endl; |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | // Device definitions ///////////////////////////////////////////////////////// |
| 30 |