summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index b8a14c4..95e2eae 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,9 +36,10 @@ fn main() -> Result<(), Box<dyn Error>>
let mut engine = Engine::new();
- let mut transform = Transform::new();
-
- transform.set_position(Vec3 { x: 1.6, y: 0.0, z: 0.0 });
+ let transform = Transform {
+ position: Vec3 { x: 1.6, y: 0.0, z: 0.0 },
+ ..Default::default()
+ };
let texture = Texture::open(Path::new("vent.png"))?;