summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Color.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r--Runtime/Graphics/Color.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h
index af8d3ba..ebccafe 100644
--- a/Runtime/Graphics/Color.h
+++ b/Runtime/Graphics/Color.h
@@ -14,6 +14,13 @@ namespace Internal
this->b = b;
this->a = a;
}
+ void Set(float r = 0, float g = 0, float b = 0, float a = 0)
+ {
+ this->r = r;
+ this->g = g;
+ this->b = b;
+ this->a = a;
+ }
float r, g, b, a;
};
@@ -26,6 +33,13 @@ namespace Internal
this->b = b;
this->a = a;
}
+ void Set(unsigned char r = 0, unsigned char g = 0, unsigned char b = 0, unsigned char a = 0)
+ {
+ this->r = r;
+ this->g = g;
+ this->b = b;
+ this->a = a;
+ }
unsigned char r, g, b, a;
};