- glEnd ();
-
- // LordHavoc: revert to LINEAR mode
-// if (vid.realwidth < (int) vid.conwidth)
-// {
-// glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
-// glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
-// }
-}
-
-void Draw_AdditiveString (int x, int y, char *str, int maxlen)
-{
- if (!r_render.value)
- return;
- glBlendFunc(GL_SRC_ALPHA, GL_ONE);
- Draw_String(x, y, str, maxlen);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
-}
-
-void Draw_GenericPic (rtexture_t *tex, float red, float green, float blue, float alpha, int x, int y, int width, int height)
-{
- if (!r_render.value)
- return;
- if (lighthalf)
- glColor4f(red * 0.5f, green * 0.5f, blue * 0.5f, alpha);
- else
- glColor4f(red, green, blue, alpha);
- glBindTexture(GL_TEXTURE_2D, R_GetTexture(tex));
- glBegin (GL_QUADS);
- glTexCoord2f (0, 0);glVertex2f (x, y);
- glTexCoord2f (1, 0);glVertex2f (x+width, y);
- glTexCoord2f (1, 1);glVertex2f (x+width, y+height);
- glTexCoord2f (0, 1);glVertex2f (x, y+height);
- glEnd ();
-}
-
-/*
-=============
-Draw_AlphaPic
-=============
-*/
-void Draw_AlphaPic (int x, int y, qpic_t *pic, float alpha)
-{
- if (pic)
- Draw_GenericPic(((glpic_t *)pic->data)->tex, 1,1,1,alpha, x,y,pic->width, pic->height);
-}
-