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

Function device_init

tutorials/triangle_geometry/triangle_geometry_device.cpp:98–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97/* called by the C++ code for initialization */
98extern "C" void device_init (char* cfg)
99{
100 /* create scene */
101 TutorialData_Constructor(&data);
102 g_scene = data.g_scene = rtcNewScene(g_device);
103
104 /* add cube */
105 addCube(data.g_scene);
106
107 /* add ground plane */
108 addGroundPlane(data.g_scene);
109
110 /* commit changes to scene */
111 rtcCommitScene (data.g_scene);
112
113 /* get traversable handle for the scene */
114 data.g_traversable = rtcGetSceneTraversable(data.g_scene);
115}
116
117/* task that renders a single screen tile */
118void renderPixelStandard(const TutorialData& data,

Callers

nothing calls this directly

Calls 5

rtcNewSceneFunction · 0.85
rtcCommitSceneFunction · 0.85
TutorialData_ConstructorFunction · 0.70
addCubeFunction · 0.70
addGroundPlaneFunction · 0.70

Tested by

no test coverage detected