| 96 | |
| 97 | /* called by the C++ code for initialization */ |
| 98 | extern "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 */ |
| 118 | void renderPixelStandard(const TutorialData& data, |
nothing calls this directly
no test coverage detected