pub fn with_current_framebuffer<T>( window: &Window, f: impl FnOnce(&mut Framebuffer<'_>) -> T, ) -> T