rust/lib-hedgewars-engine/src/world.rs
changeset 14718 5915a199cb81
parent 14716 8e74d4eb89f5
child 15190 e2adb40c7988
equal deleted inserted replaced
14717:16024046d458 14718:5915a199cb81
   116             unsafe {
   116             unsafe {
   117                 gl::ClearColor(0.4f32, 0f32, 0.2f32, 1f32);
   117                 gl::ClearColor(0.4f32, 0f32, 0.2f32, 1f32);
   118                 gl::Clear(gl::COLOR_BUFFER_BIT);
   118                 gl::Clear(gl::COLOR_BUFFER_BIT);
   119             }
   119             }
   120 
   120 
   121             renderer.render(self.camera.viewport());
   121             renderer.render(&self.camera);
   122         }
   122         }
   123     }
   123     }
   124 
   124 
   125     fn get_unused_gear_id(&mut self) -> GearId {
   125     fn get_unused_gear_id(&mut self) -> GearId {
   126         let id = self.last_gear_id;
   126         let id = self.last_gear_id;