diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-24 10:10:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-24 10:10:37 +0000 |
commit | a010f94390422eefa366a5f390c1f9e3ccc66fd5 (patch) | |
tree | 798f63addb6931fb08208927afff509185709c7c /src/math | |
parent | 4a4a5473b82d1f5b6f654cabac99272bce89854b (diff) |
text_length functions, improved lighting, r_bbox draws bounding boxes
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/color.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/color.h b/src/math/color.h index 0dd5fc8..ea6fe1c 100644 --- a/src/math/color.h +++ b/src/math/color.h @@ -46,6 +46,8 @@ public: /// multiply rgb values with scalar value. Color operator*(const float scalar) const; + inline float operator[](size_t index) const { return rgba_data[index]; } + /// pointer to the internal data inline float *ptr() const { return (float *) rgba_data; }; |