MCPcopy Create free account
hub / github.com/RenderKit/ospray / ospPick

Function ospPick

ospray/api/API.cpp:714–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712OSPRAY_CATCH_END(0.f)
713
714extern "C" void ospPick(OSPPickResult *result,
715 OSPFrameBuffer fb,
716 OSPRenderer renderer,
717 OSPCamera camera,
718 OSPWorld world,
719 float screenPos_x,
720 float screenPos_y) OSPRAY_CATCH_BEGIN
721{
722 THROW_IF_NULL(fb, "framebuffer");
723 THROW_IF_NULL(renderer, "renderer");
724 THROW_IF_NULL(camera, "camera");
725 THROW_IF_NULL(world, "world");
726
727 ASSERT_DEVICE();
728 if (!result)
729 return;
730 *result = currentDevice().pick(
731 fb, renderer, camera, world, vec2f(screenPos_x, screenPos_y));
732}
733OSPRAY_CATCH_END()

Callers 4

pickFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
pickMethod · 0.85

Calls 1

pickMethod · 0.45

Tested by

no test coverage detected