diff src/th06/std.rs @ 680:ef2dbd676a91

Add missing quad size override to stdrenderer.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 16 Aug 2019 13:44:43 +0200
parents 6020e33d4fc4
children 377c241be559
line wrap: on
line diff
--- a/src/th06/std.rs
+++ b/src/th06/std.rs
@@ -34,8 +34,11 @@ struct Box3D {
 /// A 2D box around something.
 #[derive(Debug, Clone)]
 pub struct Box2D {
-    width: f32,
-    height: f32,
+    /// Width.
+    pub width: f32,
+
+    /// Height.
+    pub height: f32,
 }
 
 /// A quad in the 3D space.