Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-04-27 13:08:12 +0000
committerStijn Buys <ingar@osirion.org>2008-04-27 13:08:12 +0000
commita4b36e6d1e20b5036d1ed7cf9f61a48dbbf77812 (patch)
tree7efd0048fd8c10b1f04d427c78e3ac8da402f059 /src/math/color.h
parentfe95954f9d17c9dade1827fe5d4cf8cffffddbce (diff)
3D flight
Diffstat (limited to 'src/math/color.h')
-rw-r--r--src/math/color.h7
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];
};