| 467 | |
| 468 | /* called by the C++ code to render */ |
| 469 | extern "C" void device_render (int* pixels, |
| 470 | const unsigned int width, |
| 471 | const unsigned int height, |
| 472 | const float time, |
| 473 | const ISPCCamera& camera) |
| 474 | { |
| 475 | |
| 476 | if (!pause) updateScene(); |
| 477 | //else PRINT(cur_time); |
| 478 | |
| 479 | if (benchmark && cur_time == 128) { |
| 480 | std::cout << "collision time = " << 1000.0f*total_collision_time << " ms" << std::endl; |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | /* called by the C++ code for cleanup */ |
| 485 | extern "C" void device_cleanup () |