summaryrefslogtreecommitdiff
path: root/main_simple_scanner.cpp
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-13 13:23:25 +0800
committerKeuin <[email protected]>2022-04-13 13:24:48 +0800
commitd1a748cea4c1c33d6979c32181ff4a17da9ecd71 (patch)
treebf0d2d0879053be76c1632ac1b14bb51a45e4e80 /main_simple_scanner.cpp
parent8c3cbfaeec0f3055aba9bfe4b2bdfab7ff93bf1b (diff)
Rename viewport to basic_viewport.
Extract interface viewport.
Diffstat (limited to 'main_simple_scanner.cpp')
-rw-r--r--main_simple_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp
index 6dadf30..06476d8 100644
--- a/main_simple_scanner.cpp
+++ b/main_simple_scanner.cpp
@@ -19,7 +19,7 @@
void generate_image(uint16_t image_width, uint16_t image_height, double viewport_width, double focal_length,
double sphere_z, double sphere_r, const std::string &caption = "", unsigned caption_scale = 1) {
double r = 1.0 * image_width / image_height;
- viewport vp{viewport_width, viewport_width / r, vec3d{0, 0, -focal_length}};
+ basic_viewport vp{viewport_width, viewport_width / r, vec3d{0, 0, -focal_length}};
hitlist world;
bias_ctx bias{false, 0};
world.add_object(std::make_shared<sphere>(