File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
crates/processing_render/src Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: module_inception) ]
2+
13pub mod geometry;
24pub mod gltf;
35mod graphics;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fn sketch() -> error::Result<()> {
7878 while glfw_ctx. poll_events ( ) {
7979 for z in 0 ..grid_size {
8080 for x in 0 ..grid_size {
81- let idx = ( z * grid_size + x) as u32 ;
81+ let idx = z * grid_size + x;
8282 let px = x as f32 * spacing - offset;
8383 let pz = z as f32 * spacing - offset;
8484 let wave = ( px * 0.1 + time) . sin ( ) * ( pz * 0.1 + time) . cos ( ) * 20.0 ;
Original file line number Diff line number Diff line change @@ -84,9 +84,8 @@ impl GlfwContext {
8484 self . glfw . poll_events ( ) ;
8585
8686 for ( _, event) in glfw:: flush_messages ( & self . events ) {
87- match event {
88- WindowEvent :: Close => return false ,
89- _ => { }
87+ if event == WindowEvent :: Close {
88+ return false ;
9089 }
9190 }
9291
You can’t perform that action at this time.
0 commit comments