From 15cbf21f69d7166fe759f8a7ab9462deceadcbd8 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Thu, 12 Dec 2024 13:01:12 +0100 Subject: [PATCH] Add small explanation to trait --- crates/eframe/src/web/web_painter.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/eframe/src/web/web_painter.rs b/crates/eframe/src/web/web_painter.rs index 513ca09746a..fe751bf169f 100644 --- a/crates/eframe/src/web/web_painter.rs +++ b/crates/eframe/src/web/web_painter.rs @@ -17,6 +17,8 @@ pub(crate) trait WebPainter { fn max_texture_side(&self) -> usize; /// Update all internal textures and paint gui. + /// When `capture` isn't empty, the rendered screen should be captured. + /// Once the screenshot is ready, the screenshot should be returned via [`Self::handle_screenshots`]. fn paint_and_update_textures( &mut self, clear_color: [f32; 4],