Update name of method parameter

This commit is contained in:
Hanno Braun 2024-11-20 20:44:46 +01:00
parent 807692f497
commit f120f32590

View File

@ -88,7 +88,7 @@ impl Renderer {
}) })
} }
pub fn render(&self, mesh: &impl Operation) { pub fn render(&self, operation: &impl Operation) {
let frame = self.surface.get_current_texture().unwrap(); let frame = self.surface.get_current_texture().unwrap();
let frame_view = frame let frame_view = frame
.texture .texture
@ -101,7 +101,7 @@ impl Renderer {
let mut vertices = Vec::new(); let mut vertices = Vec::new();
let mut mesh_triangles = Vec::new(); let mut mesh_triangles = Vec::new();
mesh.triangles(&mut mesh_triangles); operation.triangles(&mut mesh_triangles);
for triangle in &mesh_triangles { for triangle in &mesh_triangles {
let triangle = triangle.vertices.map(|vertex| { let triangle = triangle.vertices.map(|vertex| {