diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-23 21:41:27 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-23 21:41:27 +0200 |
commit | 9d592045317ca66be415e60ba4c2db90b5d7ad3e (patch) | |
tree | 921dd92c63b6260ea27d70eb7521e3a054d7f142 /src/math/point.h | |
parent | 8797569d33c4917eb8f8a1dc2341aac7b5815315 (diff) | |
download | colobot-9d592045317ca66be415e60ba4c2db90b5d7ad3e.tar.gz colobot-9d592045317ca66be415e60ba4c2db90b5d7ad3e.tar.bz2 colobot-9d592045317ca66be415e60ba4c2db90b5d7ad3e.zip |
Cursor drawing
- fixed cursor drawing in CEngine
- changed event loop to generate more events
Diffstat (limited to 'src/math/point.h')
-rw-r--r-- | src/math/point.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/point.h b/src/math/point.h index 80f80f4..740b275 100644 --- a/src/math/point.h +++ b/src/math/point.h @@ -74,6 +74,12 @@ struct Point return (float*)this; } + //! Returns the struct cast to <tt>const float*</tt> array; use with care! + inline const float* Array() const + { + return (const float*)this; + } + //! Returns the distance from (0,0) to the point (x,y) inline float Length() { |