don't begin/end on every single character draw

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5518 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-08-02 02:13:49 +00:00
parent 49e22ef1f5
commit 7b2096db3a
+2 -1
View File
@@ -241,11 +241,12 @@ font::charinfo *loadchar(int code)
*/
int draw_char(font &f, font::charinfo &info, int charcode, int x, int y)
{
/*
// fixme
glEnd();
glBindTexture(GL_TEXTURE_2D, f.tex->id);
glBegin(GL_QUADS);
*/
float tc_left = (info.x + f.offsetx) / float(f.tex->xs);
float tc_top = (info.y + f.offsety) / float(f.tex->ys);
float tc_right = (info.x + info.w + f.offsetw) / float(f.tex->xs);