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

Method run

tutorials/common/tutorial/tutorial.cpp:1047–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045 }
1046
1047 void TutorialApplication::run(int argc, char** argv)
1048 {
1049 /* set debug values */
1050 rtcSetDeviceProperty(nullptr,(RTCDeviceProperty) 1000000, debug0);
1051 rtcSetDeviceProperty(nullptr,(RTCDeviceProperty) 1000001, debug1);
1052 rtcSetDeviceProperty(nullptr,(RTCDeviceProperty) 1000002, debug2);
1053 rtcSetDeviceProperty(nullptr,(RTCDeviceProperty) 1000003, debug3);
1054
1055 /* initialize ray tracing core */
1056 device_init(rtcore.c_str());
1057
1058 /* render to disk */
1059 if (outputImageFilename.str() != "")
1060 renderToFile(outputImageFilename);
1061
1062 /* compare to reference image */
1063 if (referenceImageFilename.str() != "")
1064 compareToReferenceImage(referenceImageFilename);
1065
1066#if defined(USE_GLFW)
1067
1068 /* interactive mode */
1069 if (interactive)
1070 renderInteractive();
1071
1072#else
1073 if (interactive)
1074 std::cout << "GLFW is disabled, you can only render to disk using -o command line option." << std::endl;
1075#endif
1076 }
1077
1078 void TutorialApplication::create_device()
1079 {

Callers

nothing calls this directly

Calls 4

rtcSetDevicePropertyFunction · 0.85
device_initFunction · 0.50
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected