Add RGB constructor to color

This commit is contained in:
Eryn Wells 2013-09-13 14:10:52 -07:00
parent 6fcfcd09b5
commit 9fef3c33d2
2 changed files with 13 additions and 2 deletions

View file

@ -58,7 +58,8 @@ struct Ray
struct Color
{
Color();
Color(float r, float g, float b, float a);
Color(const float &r, const float &g, const float &b);
Color(const float &r, const float &g, const float &b, const float &a);
Color &operator*=(const float &rhs);
Color &operator/=(const float &rhs);