Skip to content

Commit

Permalink
Simpler io (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy authored Jun 17, 2021
1 parent a6f3e28 commit d15e16c
Show file tree
Hide file tree
Showing 18 changed files with 4,883 additions and 5,201 deletions.
2 changes: 1 addition & 1 deletion apps/yimage/yimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ cli_state make_commands(
// Parse cli
void parse_cli(app_params& params, int argc, const char** argv) {
auto cli = make_commands("yimage", params, "Process and view images.");
parse_cli(cli, argc, argv);
parse_cli_and_handle_errors(cli, argc, argv);
}

int main(int argc, const char* argv[]) {
Expand Down
2 changes: 1 addition & 1 deletion apps/ymesh/ymesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ cli_state make_commands(
// Parse cli
void parse_cli(app_params& params, int argc, const char** argv) {
auto cli = make_commands("ymesh", params, "Process and view meshes.");
parse_cli(cli, argc, argv);
parse_cli_and_handle_errors(cli, argc, argv);
}

int main(int argc, const char* argv[]) {
Expand Down
2 changes: 1 addition & 1 deletion apps/yscene/yscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ cli_state make_commands(
// Parse cli
void parse_cli(app_params& params, int argc, const char** argv) {
auto cli = make_commands("yscene", params, "Process and view scenes.");
parse_cli(cli, argc, argv);
parse_cli_and_handle_errors(cli, argc, argv);
}

int main(int argc, const char* argv[]) {
Expand Down
2 changes: 1 addition & 1 deletion apps/yshape/yshape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ cli_state make_commands(
// Parse cli
void parse_cli(app_params& params, int argc, const char** argv) {
auto cli = make_commands("yshape", params, "Process and view shapes.");
parse_cli(cli, argc, argv);
parse_cli_and_handle_errors(cli, argc, argv);
}

int main(int argc, const char* argv[]) {
Expand Down
3 changes: 1 addition & 2 deletions docs/yocto/yocto_scene.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@ Yocto/Scene has a function to create a simple Cornell Box scene for testing.
There are plans to increase support for more test scenes in the future.

```cpp
auto scene = new sceneio_scene{...}; // create a complete scene
make_cornellbox(scene); // make cornell box
auto scene = make_cornellbox(); // make cornell box
```

## Procedural shapes
Expand Down
2 changes: 2 additions & 0 deletions libs/yocto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ add_library(yocto
yocto_image.h yocto_image.cpp
yocto_scene.h yocto_scene.cpp
yocto_trace.h yocto_trace.cpp
yocto_commonio.h yocto_commonio.cpp
yocto_sceneio.h yocto_sceneio.cpp
yocto_cli.h yocto_cli.cpp
yocto_parallel.h
ext/stb_image.h ext/stb_image_resize.h ext/stb_image_write.h ext/stb_image.cpp
ext/json.hpp
ext/tinyexr.h ext/tinyexr.cpp
Expand Down
Loading

0 comments on commit d15e16c

Please sign in to comment.