diff options
author | Ixtli <cg@325i.org> | 2010-03-09 13:57:10 +0900 |
---|---|---|
committer | Enne Walker <ennewalker@users.sourceforge.net> | 2010-04-24 10:19:43 -0400 |
commit | 38e5cb7bf0c123ed0ae0442684a63442a354e67b (patch) | |
tree | 5d7052d5451b7ad1c0db4769f1f625da2b45dcf7 /crawl-ref/source/glwrapper.h | |
parent | cd3e3d5b0563f32c2ce4007d6c42462351b408a8 (diff) | |
download | crawl-ref-38e5cb7bf0c123ed0ae0442684a63442a354e67b.tar.gz crawl-ref-38e5cb7bf0c123ed0ae0442684a63442a354e67b.zip |
Cleaned up glwrapper
Diffstat (limited to 'crawl-ref/source/glwrapper.h')
-rw-r--r-- | crawl-ref/source/glwrapper.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h index 4918e32a8d..3244ced304 100644 --- a/crawl-ref/source/glwrapper.h +++ b/crawl-ref/source/glwrapper.h @@ -21,9 +21,9 @@ struct GLW_3VF z = n; } - float x; - float y; - float z; + union {float x; float r;}; + union {float y; float g;}; + union {float z; float b;}; }; struct GLW_4VF @@ -39,10 +39,10 @@ struct GLW_4VF t = p; } - float x; - float y; - float z; - float t; + union {float x; float r;}; + union {float y; float g;}; + union {float z; float b;}; + union {float t; float a;}; }; enum MipMapOptions @@ -113,7 +113,7 @@ public: static void pixelstore_unpack_alignment(unsigned int bpp); static void reset_view_for_redraw(float x, float y); static void reset_view_for_resize(coord_def &m_windowsz); - static void set_transform(GLW_3VF *translate, GLW_3VF *scale); + static void set_transform(const GLW_3VF *trans, const GLW_3VF *scale); static void reset_transform(); static void set_current_color(GLW_3VF &color); static void set_current_color(GLW_4VF &color); |