aboutsummaryrefslogtreecommitdiff
path: root/src/raytracer/raytracer.cpp
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-12 13:59:38 -0500
committerDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-12 13:59:38 -0500
commit33082ca5ec4c20d34b79b3b1f24f3b3152db2816 (patch)
tree7adb26edf8302ec33e53645a516ceaa3803fbe83 /src/raytracer/raytracer.cpp
parent58c896801817ac67913644ccd9373cd18774232a (diff)
should be building
Diffstat (limited to 'src/raytracer/raytracer.cpp')
-rw-r--r--src/raytracer/raytracer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raytracer/raytracer.cpp b/src/raytracer/raytracer.cpp
index acb229a..2e47ec7 100644
--- a/src/raytracer/raytracer.cpp
+++ b/src/raytracer/raytracer.cpp
@@ -63,6 +63,7 @@ void RayTracer::render(RGBA *imageData, const RayTraceScene &scene) {
}
}
}
+ settings.rotation += 0.5f;
}
@@ -230,6 +231,10 @@ void RayTracer::settingsChanged(QLabel* imageLabel) {
QImage flippedImage = image.mirrored(false, false);
flippedImage = flippedImage.scaled(width, height, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
imageLabel->setPixmap(QPixmap::fromImage(flippedImage));
+ // QTimer::singleShot(3500, this, [this, imageLabel]() {
+ // // This code will be executed after a 2-second delay
+ // emit rotationChanged(settings.rotation);
+ // });
}
void RayTracer::keyPressEvent(QKeyEvent *event) {