Add operator= to Vector3 and Color

This commit is contained in:
Eryn Wells 2013-09-10 16:25:12 -07:00
parent e5601e7f43
commit 6de49ae679
2 changed files with 25 additions and 0 deletions

View file

@ -17,6 +17,8 @@ struct Vector3
Vector3();
Vector3(float x, float y, float z);
Vector3 &operator=(const Vector3 &v);
Vector3 operator+(Vector3 v) const;
Vector3 operator*(float a) const;
Vector3 operator-(Vector3 v) const;
@ -51,6 +53,8 @@ struct Color
Color();
Color(float r, float g, float b, float a);
Color &operator=(const Color &c);
static const Color Black;
static const Color White;
static const Color Red;