summaryrefslogtreecommitdiffstats
path: root/graphics/src/mesh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/mesh.rs')
-rw-r--r--graphics/src/mesh.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/src/mesh.rs b/graphics/src/mesh.rs
index 041986cf..20692b07 100644
--- a/graphics/src/mesh.rs
+++ b/graphics/src/mesh.rs
@@ -74,3 +74,9 @@ pub struct GradientVertex2D {
/// The packed vertex data of the gradient.
pub gradient: gradient::Packed,
}
+
+/// A renderer capable of drawing a [`Mesh`].
+pub trait Renderer {
+ /// Draws the given [`Mesh`].
+ fn draw_mesh(&mut self, mesh: Mesh);
+}