Introduce draw_mesh_cache in mesh::Renderer
This commit is contained in:
parent
42bc4af972
commit
afb3b8fce6
8 changed files with 119 additions and 69 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue