summaryrefslogtreecommitdiff
path: root/engine/src/draw_flags.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-04 17:49:18 +0200
committerHampusM <hampus@hampusmat.com>2024-08-04 17:49:18 +0200
commita83164950aedb40ab3f213d50a757ed07eabd7cc (patch)
treef096e6793caa6933797df5b99cee358e7587388d /engine/src/draw_flags.rs
parenta1649c20c7af13844f46b9da18a79a83a0fc01e1 (diff)
feat(engine): add component making a object not be drawn
Diffstat (limited to 'engine/src/draw_flags.rs')
-rw-r--r--engine/src/draw_flags.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/src/draw_flags.rs b/engine/src/draw_flags.rs
index c8c11c9..23ea22f 100644
--- a/engine/src/draw_flags.rs
+++ b/engine/src/draw_flags.rs
@@ -47,3 +47,7 @@ pub enum PolygonModeFace
#[default]
FrontAndBack,
}
+
+/// Component that makes a object not be drawn.
+#[derive(Debug, Clone, Copy, Component)]
+pub struct NoDraw;