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

Function device_init

tutorials/collide/collide_device.cpp:437–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436/* called by the C++ code for initialization */
437extern "C" void device_init (char* cfg)
438{
439
440 g_scene = rtcNewScene(g_device);
441 rtcSetSceneBuildQuality(g_scene,RTC_BUILD_QUALITY_LOW);
442
443 // createGroundPlane (g_scene);
444 createTriangulatedSphere(g_scene,Vec3fa(0, 0., 0),1.f);
445 clothID = createClothSheet (g_scene);
446 rtcCommitScene (g_scene);
447
448 /* set error handler */
449 rtcSetDeviceErrorFunction(g_device,error_handler,nullptr);
450}
451
452extern "C" void renderFrameStandard (int* pixels,
453 const unsigned int width,

Callers 1

runMethod · 0.50

Calls 7

rtcNewSceneFunction · 0.85
rtcSetSceneBuildQualityFunction · 0.85
createClothSheetFunction · 0.85
rtcCommitSceneFunction · 0.85
createTriangulatedSphereFunction · 0.70
Vec3faClass · 0.50

Tested by

no test coverage detected