X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ffont.cpp;h=637569f205358a8a08edf846fbac8c55a480e7e1;hp=60090e0148de8e3ebc587da94f04261c4b629fe6;hb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;hpb=19583522999f9ca2cddb178691633bc20f714b01 diff --git a/source/font.cpp b/source/font.cpp index 60090e01..637569f2 100644 --- a/source/font.cpp +++ b/source/font.cpp @@ -5,7 +5,7 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#include +#include "gl.h" #include "font.h" #include "texture2d.h" @@ -105,6 +105,9 @@ void Font::draw_glyph(unsigned code) const if(i==glyphs.end()) return; + const Glyph &glyph=i->second; + (void)glyph; + glDrawArrays(GL_QUADS, i->second.index*4, 4); glTranslatef(i->second.advance, 0, 0);