From 101b455e51f9b702da5517cabe2c3b1086fcb2e7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 14 Apr 2024 12:34:52 +0200 Subject: feat(engine): use ECS architecture --- engine/src/mesh.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/src/mesh.rs') diff --git a/engine/src/mesh.rs b/engine/src/mesh.rs index 67b26cc..e07ed35 100644 --- a/engine/src/mesh.rs +++ b/engine/src/mesh.rs @@ -1,6 +1,8 @@ +use ecs::Component; + use crate::vertex::Vertex; -#[derive(Debug)] +#[derive(Debug, Clone, Component)] pub struct Mesh { vertices: Vec, -- cgit v1.2.3-18-g5258