1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 
13 See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 
19 */
20 
21 #ifndef DRAW_H
22 #define DRAW_H
23 
24 #include "wad.h"
25 
26 // draw.h -- these are the only functions outside the refresh allowed
27 // to touch the vid buffer
28 
29 extern const qpic_t *draw_disc;	// also used on sbar
30 extern const byte *draw_chars;
31 
32 void Draw_Init(void);
33 void Draw_Character(int x, int y, int num);
34 void Draw_Pic(int x, int y, const qpic_t *pic);
35 void Draw_TransPic(int x, int y, const qpic_t *pic);
36 void Draw_TransPicTranslate(int x, int y, const qpic_t *pic,
37 			    byte *translation);
38 void Draw_ConsoleBackground(int lines);
39 void Draw_BeginDisc(void);
40 void Draw_EndDisc(void);
41 void Draw_TileClear(int x, int y, int w, int h);
42 void Draw_Fill(int x, int y, int w, int h, int c);
43 void Draw_FadeScreen(void);
44 void Draw_String(int x, int y, char *str);
45 void *Draw_PicFromWad(const char *name);
46 qpic_t *Draw_CachePic(const char *path);
47 
48 void Draw_Alt_String(int x, int y, const char *str);
49 void Draw_Crosshair(void);
50 void Draw_SubPic(int x, int y, const qpic_t *pic, int srcx, int srcy,
51 		 int width, int height);
52 
53 #endif /* DRAW_H */
54