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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user