fart/util/Color.h
Josh Holtrop f087488b39 using Color instead of Vector where appropriate, updated main/Light to use diffuse and specular lights
git-svn-id: svn://anubis/fart/trunk@67 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-30 01:25:57 +00:00

30 lines
648 B
C++

#ifndef COLOR_H
#define COLOR_H COLOR_H
class Color
{
public:
double r, g, b;
Color();
Color(double r, double g, double b);
Color operator*(double scale);
Color operator/(double scale);
Color & operator+=(const Color & other);
Color & operator-=(const Color & other);
static const Color black;
static const Color white;
static const Color red;
static const Color green;
static const Color blue;
};
Color operator+(const Color & c1, const Color & c2);
Color operator-(const Color & c1, const Color & c2);
#endif