comparison 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
comparison
equal deleted inserted replaced
679:6020e33d4fc4 680:ef2dbd676a91
32 } 32 }
33 33
34 /// A 2D box around something. 34 /// A 2D box around something.
35 #[derive(Debug, Clone)] 35 #[derive(Debug, Clone)]
36 pub struct Box2D { 36 pub struct Box2D {
37 width: f32, 37 /// Width.
38 height: f32, 38 pub width: f32,
39
40 /// Height.
41 pub height: f32,
39 } 42 }
40 43
41 /// A quad in the 3D space. 44 /// A quad in the 3D space.
42 #[derive(Debug, Clone)] 45 #[derive(Debug, Clone)]
43 pub struct Quad { 46 pub struct Quad {