| 168 | } |
| 169 | |
| 170 | void ospSetObjectAsData( |
| 171 | OSPObject o, const char *n, OSPDataType type, OSPObject p) |
| 172 | { |
| 173 | OSPData tmp = ospNewSharedData(&p, type, 1); |
| 174 | OSPData data = ospNewData(type, 1); |
| 175 | ospCopyData(tmp, data); |
| 176 | ospSetParam(o, n, OSP_DATA, &data); |
| 177 | ospRelease(tmp); |
| 178 | ospRelease(data); |
| 179 | } |
| 180 | |
| 181 | // Rendering helpers ////////////////////////////////////////////////////////// |
| 182 |
no test coverage detected