diff options
author | pixel <pixel> | 2002-12-17 00:10:04 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-17 00:10:04 +0000 |
commit | 4489f76a69b677006a7dd8d7cd4629d795bfb168 (patch) | |
tree | 7b1149323549a8daff30e8ca0654060d81be9eb7 /include | |
parent | d5ff9795dab4aba0aa0e2fa8d62e3cc4808acb5e (diff) |
Commit of the day.
Diffstat (limited to 'include')
-rw-r--r-- | include/Color.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Color.h b/include/Color.h index 293c55c..1d262d4 100644 --- a/include/Color.h +++ b/include/Color.h @@ -5,6 +5,9 @@ struct Color { Color(unsigned char aR, unsigned char aG, unsigned char aB, unsigned char aA = 255) : R(aR), G(aG), B(aB), A(aA) { } unsigned char R, G, B, A; +#ifdef GL_COLOR + void Bind() { glColor4d((double) R / 255, (double) G / 255, (double) B / 255, (double) A / 255); } +#endif }; #endif |