show preview of textures during editing

When textures of the map geometry are changed, five textures around the
current pick from the "last used" stack are shown. The texture assigned
to the "sky" slot is not shown. Instead, a plain blue rectangle is used.

hudtexttl
  Time to show texture preview (in milliseconds).

DOCREF hudtexttl
This commit is contained in:
ac-stef
2015-06-10 14:22:11 +02:00
parent 4e3c40c3be
commit bdf53a5ab8
2 changed files with 47 additions and 0 deletions
+3
View File
@@ -1054,6 +1054,9 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
if(!m_botmode) draw_textf("SCROLL to change player", left - (text_width("SCROLL to change player") + FONTH/2), top+80);
}
void renderhudtexturepreviews();
if(editmode) renderhudtexturepreviews();
/* * /
glLoadIdentity();
glOrtho(0, VIRTW*3/2, VIRTH*3/2, 0, -1, 1);