summaryrefslogtreecommitdiff
path: root/engine/src/color.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-12 21:29:36 +0200
committerHampusM <hampus@hampusmat.com>2023-10-12 21:29:36 +0200
commit341826e9a2b89713fc47ffbc914d18e23c7d9287 (patch)
treeb92b85bd85690d3e6475eac7e8c254700865bded /engine/src/color.rs
parenta4d66f8272c08c722a0a3fa6843ccf61e05d2928 (diff)
feat(engine): add vertex coloring
Diffstat (limited to 'engine/src/color.rs')
-rw-r--r--engine/src/color.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/src/color.rs b/engine/src/color.rs
new file mode 100644
index 0000000..339b427
--- /dev/null
+++ b/engine/src/color.rs
@@ -0,0 +1,8 @@
+#[derive(Debug, Clone)]
+#[repr(C)]
+pub struct Color<Value>
+{
+ pub red: Value,
+ pub green: Value,
+ pub blue: Value,
+}