medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0dcaa4b9de86010153ccce66c4f349fa36ea76b5
parent c2abbc2a9d8a9ddde24c9687557dbed377c70b63
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Nov  5 16:55:50 +0200

Remove v2 -> GLfloat * cast overload

Diffstat:
linear_algebra.h | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/linear_algebra.h b/linear_algebra.h @@ -14,10 +14,7 @@ */ struct v2 { - union { - struct { float x, y; }; - float elems[ 2 ]; - }; + float x, y; v2() { } @@ -31,10 +28,6 @@ struct v2 { y = b; } - operator const GLfloat *() { - return elems; - } - v2 xx() const { return v2( x, x ); } v2 xy() const { return v2( x, y ); } v2 yx() const { return v2( y, x ); }