diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
commit | a4b36e6d1e20b5036d1ed7cf9f61a48dbbf77812 (patch) | |
tree | 7efd0048fd8c10b1f04d427c78e3ac8da402f059 /src/math/color.h | |
parent | fe95954f9d17c9dade1827fe5d4cf8cffffddbce (diff) |
3D flight
Diffstat (limited to 'src/math/color.h')
-rw-r--r-- | src/math/color.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/math/color.h b/src/math/color.h index 7fa0d68..0dd5fc8 100644 --- a/src/math/color.h +++ b/src/math/color.h @@ -46,7 +46,10 @@ public: /// multiply rgb values with scalar value. Color operator*(const float scalar) const; - /// clam color values to the 0-1 range + /// pointer to the internal data + inline float *ptr() const { return (float *) rgba_data; }; + + /// clamp color values to the 0-1 range void clamp(); float &r; @@ -54,6 +57,8 @@ public: float &b; float &a; + +private: float rgba_data[4]; }; |