summaryrefslogtreecommitdiff
path: root/src/color.h
diff options
context:
space:
mode:
authorSimponic <loganthebean222@gmail.com>2020-08-04 23:36:21 -0600
committerSimponic <loganthebean222@gmail.com>2020-08-04 23:36:21 -0600
commitebd81999b71ada201a316060fa47a7a66a277935 (patch)
tree930be8337e1144ba227bedb3e72e4473309c28e8 /src/color.h
parentb323ae0ca067deb0a48e3d9088160383d698a28f (diff)
downloadsimple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.tar.gz
simple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.zip
Added files
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/color.h b/src/color.h
new file mode 100644
index 0000000..11516f0
--- /dev/null
+++ b/src/color.h
@@ -0,0 +1,19 @@
+#ifndef COLOR_H
+#define COLOR_H
+
+typedef struct COLOR {
+ unsigned char red;
+ unsigned char green;
+ unsigned char blue;
+} COLOR;
+
+static inline COLOR createColor(unsigned char red, unsigned char green, unsigned char blue) {
+ // Create a color given values
+ COLOR temp;
+ temp.red = red;
+ temp.green = green;
+ temp.blue = blue;
+ return temp;
+}
+
+#endif // COLOR_H