Introduce draw_mesh_cache in mesh::Renderer

This commit is contained in:
Héctor Ramón Jiménez 2025-11-29 17:33:01 +01:00
parent 42bc4af972
commit afb3b8fce6
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 119 additions and 69 deletions

View file

@ -65,6 +65,7 @@ use crate::core::renderer;
use crate::core::{
Background, Color, Font, Pixels, Point, Rectangle, Size, Transformation,
};
use crate::graphics::mesh;
use crate::graphics::text::{Editor, Paragraph};
use crate::graphics::{Shell, Viewport};
@ -845,6 +846,11 @@ impl graphics::mesh::Renderer for Renderer {
let (layer, transformation) = self.layers.current_mut();
layer.draw_mesh(mesh, transformation);
}
fn draw_mesh_cache(&mut self, cache: mesh::Cache) {
let (layer, transformation) = self.layers.current_mut();
layer.draw_mesh_cache(cache, transformation);
}
}
#[cfg(feature = "geometry")]