summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-14 13:09:46 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-14 18:18:54 -0400
commit46bd9b7116d87b6ebd461b75deefd767fa96895b (patch)
tree338f925084a9215c0f44dfd0d44eb766ec9d847f /crawl-ref/source/glwrapper.h
parenta9d79ac529bee0a27b15aaec8124ac324fc21389 (diff)
downloadcrawl-ref-46bd9b7116d87b6ebd461b75deefd767fa96895b.tar.gz
crawl-ref-46bd9b7116d87b6ebd461b75deefd767fa96895b.zip
Clean up unions in glwrapper.h.
Diffstat (limited to 'crawl-ref/source/glwrapper.h')
-rw-r--r--crawl-ref/source/glwrapper.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/crawl-ref/source/glwrapper.h b/crawl-ref/source/glwrapper.h
index 6fc92e9926..44bc9dfec8 100644
--- a/crawl-ref/source/glwrapper.h
+++ b/crawl-ref/source/glwrapper.h
@@ -55,8 +55,8 @@ struct GLW_2VF
y = in.y;
}
- union {float x; float u; float s;};
- union {float y; float v; float t;};
+ float x;
+ float y;
};
struct GLW_3VF
@@ -79,9 +79,9 @@ struct GLW_3VF
z = in.z;
}
- union {float x; float r;};
- union {float y; float g;};
- union {float z; float b;};
+ float x;
+ float y;
+ float z;
};
enum drawing_modes
@@ -117,17 +117,12 @@ struct GLWRect
col_tr = tr;
}
- inline void set_col(VColour const *s, VColour const *e)
- {
- col_s = s;
- col_e = e;
- }
-
float pos_sx, pos_sy, pos_ex, pos_ey, pos_z;
float tex_sx, tex_sy, tex_ex, tex_ey;
- union {VColour const *col_bl; VColour const *col_s;};
- union {VColour const *col_br; VColour const *col_e;};
- VColour const *col_tl, *col_tr;
+ VColour const *col_bl;
+ VColour const *col_br;
+ VColour const *col_tl;
+ VColour const *col_tr;
};
// This struct defines all of the state that any particular rendering needs.