Add operator*= to colors

This commit is contained in:
Eryn Wells 2013-09-11 08:56:53 -07:00
parent 51c79b9b76
commit c6c11ca95a
2 changed files with 14 additions and 2 deletions

View file

@ -42,7 +42,7 @@ struct Ray
Ray();
Ray(Vector3 o, Vector3 d);
Vector3 parameterize(float t);
Vector3 parameterize(const float t) const;
Vector3 origin, direction;
};
@ -54,6 +54,7 @@ struct Color
Color(float r, float g, float b, float a);
Color &operator=(const Color &c);
Color &operator*=(const float c);
static const Color Black;
static const Color White;