summaryrefslogtreecommitdiffstats
path: root/graphics/src/triangle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/triangle.rs')
-rw-r--r--graphics/src/triangle.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/src/triangle.rs b/graphics/src/triangle.rs
index f019d55d..39359cfb 100644
--- a/graphics/src/triangle.rs
+++ b/graphics/src/triangle.rs
@@ -7,6 +7,8 @@ pub struct Mesh2D {
/// The vertices of the mesh
pub vertices: Vec<Vertex2D>,
/// The list of vertex indices that defines the triangles of the mesh.
+ ///
+ /// Therefore, this list should always have a length that is a multiple of 3.
pub indices: Vec<u32>,
}