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

@ -5,6 +5,7 @@ use crate::graphics;
use crate::graphics::Mesh;
use crate::graphics::color;
use crate::graphics::layer;
use crate::graphics::mesh;
use crate::graphics::text::{Editor, Paragraph};
use crate::image::{self, Image};
use crate::primitive::{self, Primitive};
@ -230,7 +231,7 @@ impl Layer {
pub fn draw_mesh_cache(
&mut self,
cache: triangle::Cache,
cache: mesh::Cache,
transformation: Transformation,
) {
self.flush_meshes();