From 9d592045317ca66be415e60ba4c2db90b5d7ad3e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 23 Jul 2012 21:41:27 +0200 Subject: Cursor drawing - fixed cursor drawing in CEngine - changed event loop to generate more events --- src/math/vector.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/math/vector.h') diff --git a/src/math/vector.h b/src/math/vector.h index 65fc2f9..148d648 100644 --- a/src/math/vector.h +++ b/src/math/vector.h @@ -79,6 +79,12 @@ struct Vector return (float*)this; } + //! Returns the struct cast to const float* array; use with care! + inline const float* Array() const + { + return (const float*)this; + } + //! Returns the vector length inline float Length() const { -- cgit v1.2.3-1-g7c22