aboutsummaryrefslogtreecommitdiff
path: root/src/scene/mod.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-10 23:06:48 +0100
committerJulian T <julian@jtle.dk>2021-02-10 23:06:48 +0100
commit49c6adb0db70ffc30eaac33b66eacf7574b34e26 (patch)
tree60f828ce8abf962fe2d88fdeb4e04db1d7663253 /src/scene/mod.rs
parent3a144c8c1fc83150fc06d792082db5cc4bce3cc5 (diff)
Fixed most clippy warnings
Diffstat (limited to 'src/scene/mod.rs')
-rw-r--r--src/scene/mod.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/scene/mod.rs b/src/scene/mod.rs
deleted file mode 100644
index cd07236..0000000
--- a/src/scene/mod.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-//! Defines the scene type which contains all the objects in the scene.
-//!
-//! Also handles finding intersections between rays and shapes
-pub mod shapes;
-
-mod scene;
-pub use scene::*;
-
-use std::rc::Rc;
-use crate::core::Hittable;
-use crate::material::Material;
-
-pub struct Object {
- pub shape: Box<dyn Hittable>,
- pub mat: Rc<dyn Material>,
-}
-
-impl Object {
- pub fn new(mat: Rc<dyn Material>, shape: Box<dyn Hittable>) -> Self {
- Object {
- mat,
- shape,
- }
- }
-}