diff options
author | Evan Goers <mega@osirion.org> | 2012-11-26 07:33:32 +0000 |
---|---|---|
committer | Evan Goers <mega@osirion.org> | 2012-11-26 07:33:32 +0000 |
commit | 7a5b8cc4b9f7343db13491941088c95c96833c18 (patch) | |
tree | 6d9c5e879c3ae1bc1b66ca1559e36d01f5c10826 /src/render/text.cc | |
parent | a3a57df0be5c9d1d4ebbd153cabadbca48d16e79 (diff) |
More gl::-ization.
Diffstat (limited to 'src/render/text.cc')
-rw-r--r-- | src/render/text.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/text.cc b/src/render/text.cc index c45357d..1c039ef 100644 --- a/src/render/text.cc +++ b/src/render/text.cc @@ -106,16 +106,16 @@ void Text::draw(const float x, const float y, const char ascii) gl::begin(gl::Quads); - glTexCoord2f(fcol, frow); + gl::texcoord(fcol, frow); gl::vertex(x, y, 0); - glTexCoord2f(fcol + 0.0625f, frow); + gl::texcoord(fcol + 0.0625f, frow); gl::vertex(x + text_fontwidth, y, 0); - glTexCoord2f(fcol + 0.0625f, frow + 0.0625f); + gl::texcoord(fcol + 0.0625f, frow + 0.0625f); gl::vertex(x + text_fontwidth, y + text_fontheight, 0); - glTexCoord2f(fcol, frow + 0.0625f); + gl::texcoord(fcol, frow + 0.0625f); gl::vertex(x, y + text_fontheight, 0); gl::end(); |