MCPcopy Create free account
hub / github.com/RenderKit/embree / device_render

Function device_render

tutorials/collide/collide_device.cpp:469–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467
468/* called by the C++ code to render */
469extern "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 */
485extern "C" void device_cleanup ()

Callers 1

renderMethod · 0.50

Calls 1

updateSceneFunction · 0.85

Tested by

no test coverage detected