added resetgl command to restart renderer in-game

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1642 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-02-12 03:30:52 +00:00
parent 968bbcca96
commit 072cc6d525
9 changed files with 229 additions and 73 deletions
+7
View File
@@ -234,3 +234,10 @@ void draw_text(const char *str, int left, int top)
glEnd();
}
void reloadfonts()
{
enumerate(fonts, font, f,
if(!reloadtexture(*f.tex)) fatal("failed to reload font texture");
);
}