vertex format cleanups

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2175 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-22 08:04:48 +00:00
parent 1dbcd0bf21
commit c3da156658
5 changed files with 43 additions and 43 deletions
+4 -4
View File
@@ -223,10 +223,10 @@ void draw_text(const char *str, int left, int top)
float tc_right = (info.x + info.w + curfont->offsetw) / float(curfont->tex->xs);
float tc_bottom = (info.y + info.h + curfont->offseth) / float(curfont->tex->ys);
glTexCoord2f(tc_left, tc_top ); glVertex2i(x, y);
glTexCoord2f(tc_right, tc_top ); glVertex2i(x + info.w, y);
glTexCoord2f(tc_right, tc_bottom); glVertex2i(x + info.w, y + info.h);
glTexCoord2f(tc_left, tc_bottom); glVertex2i(x, y + info.h);
glTexCoord2f(tc_left, tc_top ); glVertex2f(x, y);
glTexCoord2f(tc_right, tc_top ); glVertex2f(x + info.w, y);
glTexCoord2f(tc_right, tc_bottom); glVertex2f(x + info.w, y + info.h);
glTexCoord2f(tc_left, tc_bottom); glVertex2f(x, y + info.h);
xtraverts += 4;
x += info.w + 1;