Skip to content

Commit cf8d140

Browse files
committed
update Demo to new RPRS API
1 parent c1f3ba0 commit cf8d140

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

tutorials/30_tiled_render/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ int main()
217217

218218

219219
rpr_scene scene = NULL;
220-
status = rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, false); CHECK(status);
220+
status = rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, false, nullptr); CHECK(status);
221221

222222

223223
#ifdef NO_TILE

tutorials/60_mesh_export/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ int main()
162162

163163

164164
///////// Mesh Export to RPRS ( native RPR file format ) //////////
165-
CHECK(rprsxExport("cube_floor.rprs", context, nullptr, scene, 0, 0, 0, 0, 0, 0, 0));
165+
CHECK(rprsxExport("cube_floor.rprs", context, nullptr, scene, 0, 0, 0, 0, 0, 0, 0, nullptr));
166166

167167
///////// Mesh Export to GLTF //////////
168-
CHECK(rprExportToGLTF("cube_floor.gltf", context, nullptr, &scene, 1, 0));
168+
CHECK(rprExportToGLTF("cube_floor.gltf", context, nullptr, &scene, 1, 0, nullptr));
169169

170170
// Progressively render an image
171171
CHECK(rprContextSetParameterByKey1u(context,RPR_CONTEXT_ITERATIONS,NUM_ITERATIONS));

tutorials/61_mesh_import/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main()
8181
CHECK(rprContextSetScene(context, scene_rprs));
8282

8383
// make sure to execute the demo "60_mesh_export" in order to create the cube_floor.rprs file first.
84-
CHECK(rprsImport("cube_floor.rprs", context, matsys, &scene_rprs, true));
84+
CHECK(rprsImport("cube_floor.rprs", context, matsys, &scene_rprs, true, nullptr));
8585

8686
// Progressively render an image
8787
CHECK(rprContextSetParameterByKey1u(context,RPR_CONTEXT_ITERATIONS,NUM_ITERATIONS));
@@ -110,7 +110,7 @@ int main()
110110
CHECK(rprContextSetScene(context, scene_gltf));
111111

112112
// make sure to execute the demo "60_mesh_export" in order to create the cube_floor.gltf file first.
113-
CHECK(rprImportFromGLTF("cube_floor.gltf", context, matsys, &scene_gltf, nullptr, 0));
113+
CHECK(rprImportFromGLTF("cube_floor.gltf", context, matsys, &scene_gltf, nullptr, 0, nullptr));
114114

115115
// Progressively render an image
116116
CHECK(rprContextSetParameterByKey1u(context,RPR_CONTEXT_ITERATIONS,NUM_ITERATIONS));

tutorials/62_matball_demo/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main()
7878
CHECK(rprContextSetAOV(context, RPR_AOV_COLOR, frame_buffer));
7979

8080
/////////Mesh Import//////////
81-
CHECK(rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, true));
81+
CHECK(rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, true, nullptr));
8282

8383
// Progressively render an image
8484
std::cout << "Rendering scene 1... ";

tutorials/63_hybrid/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int main()
9191
CHECK(rprContextSetAOV(context, RPR_AOV_COLOR, frame_buffer));
9292

9393
/////////Mesh Import//////////
94-
CHECK(rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, true));
94+
CHECK(rprsImport("../../Resources/Meshes/matball.rprs", context, matsys, &scene, true, nullptr));
9595

9696
//
9797
// parse the shapes from matball.rprs : we are going to change the material assigned on each shapes.

0 commit comments

Comments
 (0)