(physical_w: f64, physical_h: f64, logical_w: f64, logical_h: f64)
| 144 | /// the renderer. |
| 145 | #[wasm_bindgen] |
| 146 | pub fn bloom_resize(physical_w: f64, physical_h: f64, logical_w: f64, logical_h: f64) { |
| 147 | let pw = (physical_w as u32).max(1); |
| 148 | let ph = (physical_h as u32).max(1); |
| 149 | let lw = (logical_w as u32).max(1); |
| 150 | let lh = (logical_h as u32).max(1); |
| 151 | unsafe { |
| 152 | if let Some(eng) = ENGINE.get_mut() { |
| 153 | if pw != eng.renderer.physical_width() || ph != eng.renderer.physical_height() { |
| 154 | eng.renderer.resize(pw, ph, lw, lh); |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | #[wasm_bindgen] |
| 161 | pub fn bloom_window_should_close() -> f64 { |
nothing calls this directly
no test coverage detected