diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-23 19:51:06 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-23 19:51:06 +0000 |
commit | 5c96b74c76b881b1533432a75d1a8cc42ecc5bda (patch) | |
tree | a1500e0149ba03d017dd5fdb169a6538a7a06a61 /src/math/color.h | |
parent | 1cf82068a2adff7c401fe0aba73466f045e460d3 (diff) |
fragment renderer
Diffstat (limited to 'src/math/color.h')
-rw-r--r-- | src/math/color.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math/color.h b/src/math/color.h index ea6fe1c..4f3df16 100644 --- a/src/math/color.h +++ b/src/math/color.h @@ -46,6 +46,9 @@ public: /// multiply rgb values with scalar value. Color operator*(const float scalar) const; + /// multiply rgb values with scalar value. + Color & operator*=(const float scalar); + inline float operator[](size_t index) const { return rgba_data[index]; } /// pointer to the internal data |